hugo-theme-anubis2/README.md

89 lines
2.7 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
2024-06-14 09:40:38 +02:00
## Installation & Configuration
2020-01-12 07:51:51 +01:00
You need to install an extended version of Hugo to run this theme.
2024-06-14 09:40:38 +02:00
For more information read the [official setup guide of Hugo](https://gohugo.io/installation/).
### Install 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
2024-06-14 09:40:38 +02:00
That's all, let's configure anubis2.
2020-01-12 07:51:51 +01:00
2024-04-26 07:14:36 +02:00
### Configure your site
2024-06-14 09:40:38 +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-09-11 06:21:21 +02:00
title = "Anubis2 Demo Site"
2024-04-26 07:14:36 +02:00
2024-09-11 06:21:21 +02:00
[params.author]
name = "Junyi"
2024-04-26 07:14:36 +02:00
[markup.goldmark.renderer]
2024-09-11 06:21:21 +02:00
unsafe = true # true | false; Enable unsafe mode to have a better experience
2024-04-26 07:14:36 +02:00
[markup.highlight]
style = 'base16-snazzy' # Chroma style, find more at here: https://swapoff.org/chroma/playground/
2024-09-11 06:21:21 +02:00
2024-04-26 07:14:36 +02:00
```
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-06-14 09:40:38 +02:00
In the other way, you can check out the example site's [configuration file](exampleSiteMultilingual/hugo.toml)
2024-04-29 06:22:40 +02:00
## Run your site
2020-01-12 07:51:51 +01:00
2024-06-14 09:40:38 +02:00
In order to see your site, run Hugo's built-in local server.
2020-01-12 07:51:51 +01:00
2024-04-29 06:22:40 +02:00
```bash
hugo server
```
2024-06-14 09:40:38 +02:00
Now enter [`http://localhost:1313`](http://localhost:1313/) in the address bar of your browser to open your site.
2020-01-12 07:51:51 +01:00
2024-06-14 09:40:38 +02:00
## Update Anubis2 to the latest version
2024-04-29 06:22:40 +02:00
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-06-14 09:40:38 +02:00
2024-03-18 05:13:23 +01:00
MIT © Junyi, 2024