Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README.md 3.7KB

7 år sedan
7 år sedan
7 år sedan
7 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # Ananke, A theme for [Hugo](http://gohugo.io/), a framework for building websites.
  2. The intent of this theme is to provide a solid starting place for Hugo sites with basic features and include best practices for performance, accessibility, and rapid development.
  3. ![screenshot](/images/screenshot.png)
  4. [DEMO](https://gohugo-ananke-theme-demo.netlify.com/)
  5. Features
  6. - Responsive
  7. - Accessible
  8. - Contact form
  9. - Custom Robots.txt (changes values based on environment)
  10. - Internal templates for meta data and google analytics
  11. Also includes examples of Hugo Features or Functions:
  12. - Pagination (internal template)
  13. - Archetypes
  14. - Custom shortcode
  15. - Hugo built-in menu
  16. - `with`
  17. - `HUGO_ENV`
  18. - `first`
  19. - `after`
  20. - `sort`
  21. - Site LanguageCode
  22. - `where`
  23. - Content Views
  24. - Partials
  25. - Template layouts (type "post" uses a special list template, single template, and a content view)
  26. - Tags
  27. - `len`
  28. - Conditionals
  29. - `ge` (greater than or equal to)
  30. This theme uses the "Tachyons" CSS library. This will allow you to manipulate the design of the theme by changing class names in HTML without touching the original CSS files. For more information see the [Tachyons website](http://tachyons.io/).
  31. ## Installation
  32. Inside the folder of your Hugo site run:
  33. $ cd themes
  34. $ git clone https://github.com/budparr/gohugo-theme-ananke.git
  35. For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
  36. ## Getting started
  37. After installing the Agency Theme successfully it requires a just a few more steps to get your site running.
  38. ### The config file
  39. Take a look inside the [`exampleSite`](https://github.com/budparr/gohugo-theme-ananke/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](https://github.com/budparr/gohugo-theme-ananke/blob/master/exampleSite/config.toml). To use it, copy the [`config.toml`](https://github.com/budparr/gohugo-theme-ananke/blob/master/exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change the strings in this theme.
  40. ### Change the hero background
  41. For any page or post you can add a featured image by including the local path in front matter (see content in the ExampleSite folder for examples): `featured_image: '/images/gohugo-default-sample-hero-image.jpg'`
  42. You don't need an image though. The default background color is black, but you can change the color, by changing the default color class in the config.toml file. Choose a background color from any on the [Tachyons](http://tachyons.io/docs/themes/skins/) library site, and preface it with "bg-"
  43. example: `background_color_class = "bg-blue"` or `background_color_class = "bg-gray"`
  44. ### Activate the contact form
  45. This theme includes a shortcode for a contact form that you can add to any page (there is an example on the contact page in the exampleSite folder). One option is to use [formspree.io](//formspree.io/) as proxy to send the actual email. Each month, visitors can send you up to one thousand emails without incurring extra charges. Visit the Formspree site to get the "action" link and add it to your shortcode like this:
  46. ```
  47. {{< form-contact action="http://formspree.io/your@email.com" >}}
  48. ```
  49. ### Nearly finished
  50. In order to see your site in action, run Hugo's built-in local server.
  51. $ hugo server
  52. Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.
  53. ## Contributing
  54. Did you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know.
  55. TODO:
  56. - ADD INSTRUCTIONS
  57. - fix hard-coded link to section https://github.com/budparr/gohugo-default-theme/blob/master/layouts/index.html#L32
  58. - move SRC files to separate branch