gohugo-theme-ananke/README.md

105 lines
3.7 KiB
Markdown
Raw Normal View History

2017-04-16 03:15:49 +02:00
# Ananke, A theme for [Hugo](http://gohugo.io/), a framework for building websites.
2017-04-15 04:44:42 +02:00
2017-04-16 02:08:50 +02:00
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.
2017-04-15 15:23:06 +02:00
![screenshot](/images/screenshot.png)
2017-04-15 14:59:20 +02:00
2017-04-15 18:24:39 +02:00
[DEMO](https://gohugo-ananke-theme-demo.netlify.com/)
2017-04-11 03:27:13 +02:00
Features
2017-04-15 15:57:40 +02:00
2017-04-15 05:08:11 +02:00
- Responsive
- Accessible
2017-04-16 03:15:49 +02:00
- Contact form
2017-04-15 05:08:11 +02:00
- Custom Robots.txt (changes values based on environment)
- Internal templates for meta data and google analytics
2017-04-16 03:15:49 +02:00
Also includes examples of Hugo Features or Functions:
2017-04-15 05:08:11 +02:00
- Pagination (internal template)
- Archetypes
- Custom shortcode
- Hugo built-in menu
- `with`
- `HUGO_ENV`
- `first`
- `after`
- `sort`
- Site LanguageCode
- `where`
2017-04-11 03:27:13 +02:00
- Content Views
2017-04-15 05:08:11 +02:00
- Partials
- Template layouts (type "post" uses a special list template, single template, and a content view)
2017-04-15 05:08:11 +02:00
- Tags
- `len`
- Conditionals
- `ge` (greater than or equal to)
2017-04-11 03:27:13 +02:00
2017-04-14 18:53:13 +02:00
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/).
2017-04-15 15:03:13 +02:00
2017-04-16 03:15:49 +02:00
## Installation
Inside the folder of your Hugo site run:
$ cd themes
$ git clone https://github.com/budparr/gohugo-theme-ananke.git
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
## Getting started
After installing the Agency Theme successfully it requires a just a few more steps to get your site running.
### The config file
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.
### Change the hero background
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'`
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-"
example: `background_color_class = "bg-blue"` or `background_color_class = "bg-gray"`
### Activate the contact form
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:
```
{{< form-contact action="http://formspree.io/your@email.com" >}}
```
### Nearly finished
In order to see your site in action, run Hugo's built-in local server.
$ hugo server
Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.
## Contributing
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.
2017-04-15 15:03:13 +02:00
TODO:
2017-04-15 15:57:40 +02:00
2017-04-15 15:03:13 +02:00
- ADD INSTRUCTIONS
2017-04-15 15:06:30 +02:00
- fix hard-coded link to section https://github.com/budparr/gohugo-default-theme/blob/master/layouts/index.html#L32
2017-04-15 15:26:03 +02:00
- move SRC files to separate branch