Archie
I use simple hugo theme Archie, it is very simple theme and I like. But there are several issues you need to notice
- bulletin issue:
Html of my bulletin is very strange ( * and bulletin are not on same line ) since I has sub-bulletin. Markdown requirement is list item includes “block content”, need to use to include block.
We need to change it it inline in custom.css.
<p>authentication mechanism and password scheme</p>
</li>
[params]
customcss = ["css/custom.css"]
li > p {
display: inline;
}
- menu: Default Archie theme has no menu and you need to create menu for posts, category, tag and rss.
mode="auto" # color-mode → light,dark,toggle or auto
useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
subtitle = "hongy19's blog"
mathjax = true # enable MathJax support
katex = true # enable KaTeX support
[taxonomies]
category = "categories"
tags = "tags"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "All posts"
url = "/posts"
weight = 2
[[menu.main]]
name = "Category"
url = "/categories"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags"
weight = 4
[[menu.main]]
name = "RSS"
url = "/index.xml"
weight = 5```
- title link: In hugo.toml, I set baseUrl but title link is ‘https://www.hongy19.net’, not ‘https://www.hongy19.net/blog/'
baseURL = 'https://www.hongy19.net/blog/'
With help of ChatGPT, fix is simple, update “themes/archie/layouts/partials/head.html”
<!-- <a href="{{ absLangURL "/" }}">{{ .Site.Title }}</a> -->
<a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a>
<!-- <a href="{{ .URL }}">{{ .Name }}</a> -->
<a href="{{ .URL | relURL }}">{{ .Name }}</a>
- wrong tags link: The tag link in post page is “https://www.hongy19.net/tags/hugo/" and it is wrong. Correct link should be “https://www.hongy19.net/blog/tags/hugo/". update “themes/archie/layouts/_default/single.html” :
<!--<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/">{{ . }}</a></li> -->
<li><a href="{{ (printf "tags/%s/" (. | urlize)) | relURL }}">{{ . }}</a></li>