hugo-theme-anubis2/README.md

83 lines
2.4 KiB
Markdown
Raw Normal View History

2024-01-15 03:09:44 +01:00
# Anubis2 Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/750dfb45-73dc-4a96-8920-e701e0196959/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis2/deploys)
2020-01-12 07:51:51 +01:00
2024-01-15 13:59:34 +01:00
Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/), check our [Demo](https://www.junyi.dev/).
2020-01-12 07:51:51 +01:00
2024-03-27 09:36:38 +01:00
> 📝 Please note that anubis2 is under active maintenance, so please REMEMBER to keep your theme up to date!
>
2024-03-06 07:36:42 +01:00
![image](https://github.com/Junyi-99/hugo-theme-anubis2/assets/14367694/8d9a591b-e168-4328-a770-eb2e8f04f657)
2020-01-12 07:51:51 +01:00
2024-03-18 05:13:23 +01:00
## Highlighted Features
2020-01-12 07:51:51 +01:00
2024-03-18 05:13:23 +01:00
- Multilingual
2024-04-25 07:41:05 +02:00
- Dark / Light mode (Automatic switch based on system settings)
2023-07-04 21:29:38 +02:00
- Table of Contents
2024-03-18 05:13:23 +01:00
- Comment Support (Giscus, Disque, ISSO, Utterances, GraphComment)
- Analytics (Google, Umami)
2020-02-16 11:07:56 +01:00
- RSS feeds
2024-03-18 05:13:23 +01:00
- Mobile Support
2024-04-14 15:34:26 +02:00
- [Full Features](wiki/Full-Features)
2020-01-12 07:51:51 +01:00
## Installation
You need to install an extended version of Hugo to run this theme.
### As Git Submodule
2024-04-29 06:22:40 +02:00
Inside the folder of your Hugo site, run:
2020-01-12 07:51:51 +01:00
2024-04-29 06:22:40 +02:00
```bash
git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2
```
2020-01-12 07:51:51 +01:00
For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo.
2020-01-12 07:51:51 +01:00
2024-04-26 07:14:36 +02:00
### Configure your site
2024-04-29 06:22:40 +02:00
Don't be panic, configure Anubis2 is really simple.
2024-04-26 07:14:36 +02:00
**This is the minimum configuration:**
```toml
baseURL = "https://hugo-theme-anubis2.netlify.app/"
languageCode = "en-us"
theme = "anubis2"
2024-04-29 06:22:40 +02:00
title = "Your Site's Name"
2024-04-26 07:14:36 +02:00
[author]
2024-04-29 06:22:40 +02:00
name = "Your Name"
2024-04-26 07:14:36 +02:00
[markup.goldmark.renderer]
2024-04-29 06:22:40 +02:00
unsafe = true # Enable unsafe mode to have a better experience
2024-04-26 07:14:36 +02:00
[markup.highlight]
style = 'base16-snazzy' # Highlight.js style
```
2024-04-29 06:22:40 +02:00
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))
2024-04-26 07:14:36 +02:00
2024-04-29 06:22:40 +02:00
## Run your site
2020-01-12 07:51:51 +01:00
In order to see your site in action, run Hugo's built-in local server.
2024-04-29 06:22:40 +02:00
```bash
hugo server
```
Now enter [`http://localhost:1313`](http://localhost:1313/) in the address bar of your browser.
2020-01-12 07:51:51 +01:00
2024-04-29 06:22:40 +02:00
## Update to the latest version
In your Hugo site folder, run this command:
```bash
git submodule update --remote
```
2020-01-12 07:51:51 +01:00
## Contributing
2024-01-14 10:50:55 +01:00
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.
2020-01-12 07:51:51 +01:00
## License
2024-03-18 05:13:23 +01:00
MIT © Junyi, 2024