83 lines
2.4 KiB
Markdown
83 lines
2.4 KiB
Markdown
# Anubis2 Theme for Hugo [](https://opensource.org/licenses/MIT) [](https://app.netlify.com/sites/hugo-theme-anubis2/deploys)
|
|
|
|
Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/), check our [Demo](https://www.junyi.dev/).
|
|
|
|
> 📝 Please note that anubis2 is under active maintenance, so please REMEMBER to keep your theme up to date!
|
|
>
|
|
|
|

|
|
|
|
## Highlighted Features
|
|
|
|
- Multilingual
|
|
- Dark / Light mode (Automatic switch based on system settings)
|
|
- Table of Contents
|
|
- Comment Support (Giscus, Disque, ISSO, Utterances, GraphComment)
|
|
- Analytics (Google, Umami)
|
|
- RSS feeds
|
|
- Mobile Support
|
|
- [Full Features](wiki/Full-Features)
|
|
|
|
## Installation
|
|
|
|
You need to install an extended version of Hugo to run this theme.
|
|
|
|
### As Git Submodule
|
|
|
|
Inside the folder of your Hugo site, run:
|
|
|
|
```bash
|
|
git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2
|
|
```
|
|
|
|
For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo.
|
|
|
|
### Configure your site
|
|
|
|
Don't be panic, configure Anubis2 is really simple.
|
|
|
|
**This is the minimum configuration:**
|
|
|
|
```toml
|
|
baseURL = "https://hugo-theme-anubis2.netlify.app/"
|
|
languageCode = "en-us"
|
|
theme = "anubis2"
|
|
title = "Your Site's Name"
|
|
|
|
[author]
|
|
name = "Your Name"
|
|
|
|
[markup.goldmark.renderer]
|
|
unsafe = true # Enable unsafe mode to have a better experience
|
|
|
|
[markup.highlight]
|
|
style = 'base16-snazzy' # Highlight.js style
|
|
```
|
|
|
|
You are encouraged keeping other fields as defaults and fine-tune them when you have time! (see [Full Configuration Examples](https://github.com/Junyi-99/hugo-theme-anubis2/wiki/Configuration-Example))
|
|
|
|
## Run your site
|
|
|
|
In order to see your site in action, run Hugo's built-in local server.
|
|
|
|
```bash
|
|
hugo server
|
|
```
|
|
|
|
Now enter [`http://localhost:1313`](http://localhost:1313/) in the address bar of your browser.
|
|
|
|
## Update to the latest version
|
|
|
|
In your Hugo site folder, run this command:
|
|
|
|
```bash
|
|
git submodule update --remote
|
|
```
|
|
|
|
## Contributing
|
|
|
|
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/Junyi-99/hugo-theme-anubis2/issues) or make a PR.
|
|
|
|
## License
|
|
MIT © Junyi, 2024
|