From 1f6787278d0e4c5a15a3f505b045226cf2ad0610 Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Wed, 17 Apr 2024 01:31:49 -0700 Subject: [PATCH 1/2] Fix template formatting in main.css --- assets/css/main.css | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 24f564c..4298b41 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -890,35 +890,13 @@ ul.footer-menu>li { } } - { - { - range site.Params.customCSS - } -} +{{ range site.Params.customCSS }} + {{ $custom := resources.Get . }} - { - { - $custom : =resources.Get . - } -} + {{ $custom.Content }} +{{ end }} - { - { - $custom.Content - } -} - - { - { - end - } -} - - { - { - if site.Params.isso.enabled - } -} +{{ if site.Params.isso.enabled }} #isso-thread .textarea { color: #000; @@ -929,8 +907,4 @@ ul.footer-menu>li { z-index: 1; } - { - { - end - } -} \ No newline at end of file +{{ end }} From a60fc4661f004159081b2a381a75c858f96ed66d Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 26 Apr 2024 13:14:36 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 84bc978..bfc5ed0 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,30 @@ Inside the folder of your Hugo site run: 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 relatively simple. + +**This is the minimum configuration:** + +```toml +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](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.