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-04-26 14:24:28 +02:00
|
|
|
- Translations (en, ru, fr)
|
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-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:
|
|
|
|
- images/og-featured.png
|
2020-04-26 14:24:28 +02:00
|
|
|
customCSS:
|
|
|
|
- css/my.css
|
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-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
|