2020-01-12 07:51:51 +01:00
# Anubis Theme for Hugo
Anubis is a simple minimalist theme for [Hugo blog engine ](https://gohugo.io/ ).
2020-02-16 11:02:57 +01:00
![Anubis Screenshot ](https://raw.githubusercontent.com/mitrichius/hugo-theme-anubis/master/images/screenshot.png )
2020-01-12 07:51:51 +01:00
## Features
- Pagination
2020-02-16 11:07:56 +01:00
- Tags/Categories support
2020-01-12 07:51:51 +01:00
- Archive
2020-02-16 11:07:56 +01:00
- Mobile support
- Google Analytics
- Disqus
- RSS feeds
2020-05-27 21:50:15 +02:00
- Translations (en, ru, fr, pl)
- Multilingual mode
2020-06-06 15:44:52 +02:00
- Robots.txt
2020-06-06 21:05:21 +02:00
- Favorite posts
2020-01-12 07:51:51 +01:00
## Installation
Inside the folder of your Hugo site run:
$ git submodule add https://github.com/mitrichius/hugo-theme-anubis.git themes/anubis
For more information read the official [setup guide ](//gohugo.io/overview/installing/ ) of Hugo.
## Getting started
After installing the theme successfully it requires a just a few more steps to get your site running.
### Update config file
2020-05-14 21:33:21 +02:00
If you have toml config (which is by default), you should rename it to config.yaml or adapt this config for toml syntax.
2020-01-12 07:51:51 +01:00
2020-05-14 21:33:21 +02:00
Example of config.yaml:
2020-01-12 07:51:51 +01:00
```yaml
languageCode: "en-us"
2020-04-26 14:24:28 +02:00
baseUrl: ""
2020-01-12 07:51:51 +01:00
title: "Anubis"
theme: "anubis"
paginate: 10
2020-01-21 19:57:57 +01:00
disqusShortname: yourdiscussshortname
2020-01-22 18:51:35 +01:00
googleAnalytics: UA-123-45
2020-06-06 15:44:52 +02:00
enableRobotsTXT: true
2020-01-12 07:51:51 +01:00
menu:
main:
- identifier: archive
name: Archive
title: Archive
url: /posts/
weight: 0
params:
2020-01-26 17:09:07 +01:00
author: ""
2020-01-12 07:51:51 +01:00
description: ""
2020-01-23 21:29:36 +01:00
images:
2020-05-30 14:25:44 +02:00
- images/og-featured.png # relative path to "static" directory
2020-04-26 14:24:28 +02:00
customCSS:
2020-05-30 14:25:44 +02:00
- css/my.css # relative path to "static" directory
2020-05-24 21:55:32 +02:00
dateFormat: "2006-01-02"
2020-01-12 07:51:51 +01:00
```
### Check your site
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.
2020-05-07 19:05:13 +02:00
## Feature Settings
### Google Analytics
Only works for production environment. You either build your site with variable like
`HUGO_ENV=production hugo --minify`
or just put `env: production` to `params` section of config.
2020-05-27 21:50:15 +02:00
### Multilingual mode
Check config/example usage in [exampleSiteMultilingual ](https://github.com/Mitrichius/hugo-theme-anubis/tree/master/exampleSiteMultilingual ) directory and documentation on [Hugo site ](https://gohugo.io/content-management/multilingual/ ).
2020-06-06 15:44:52 +02:00
### Robots.txt
2020-06-06 21:05:21 +02:00
Based on environment.
2020-06-06 15:56:33 +02:00
For production — allow all, for other — disallow all.
2020-06-06 15:44:52 +02:00
2020-06-06 21:05:21 +02:00
### Favorite posts
To mark posts as favorite just add `favorite: true` in post's front matter. It adds a "★" icon nearby post's title.
2020-01-12 07:51:51 +01:00
## Contributing
If you find a bug or have an idea for a feature, feel free to write an [issue ](https://github.com/mitrichius/hugo-theme-anubis/issues ).
## TODO
See [issues ](https://github.com/mitrichius/hugo-theme-anubis/issues ).
## License
MIT
(c) Dmitry Kolosov
2020-05-07 19:05:13 +02:00
2020