hugo-theme-anubis2/README.md
2024-04-26 13:14:36 +08:00

2.2 KiB

Anubis2 Theme for Hugo License: MIT Netlify Status

Anubis2 is another simple minimalist theme for Hugo blog engine, check our Demo.

📝 Please note that anubis2 is under active maintenance, so please REMEMBER to keep your theme up to date!

image

Highlighted Features

  • Multilingual
  • Dark / Light mode
  • Table of Contents
  • Comment Support (Giscus, Disque, ISSO, Utterances, GraphComment)
  • Analytics (Google, Umami)
  • RSS feeds
  • Mobile Support

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:

$ git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2

For more information read the official setup guide of Hugo.

Configure your site

Don't be panic, configure Anubis2 is relatively simple.

This is the minimum configuration:

baseURL = "https://hugo-theme-anubis2.netlify.app/"
languageCode = "en-us"
theme = "anubis2"
title = "Anubis2 Demo Site"

[author]
name = "Junyi"

[markup.goldmark.renderer]
unsafe = true # true | false; Enable unsafe mode to have a better experience

[markup.highlight]
style = 'base16-snazzy' # Highlight.js style

It's not too late to keep the other fields as defaults and fine-tune them when you have time! (see Configuration Example)

Run your site

In order to see your site in action, run Hugo's built-in local server.

$ hugo server

Now enter localhost:1313 in the address bar of your browser.

Contributing

If you find a bug or have an idea for a feature, feel free to write an issue or make a PR.

License

MIT © Junyi, 2024