-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I really like the clean, simple, elegance of the "whiteplain" theme. But there is one feature I wish it supported. An optional site "tagline" displayed below the title and navigation line in the page header. Such as is done by the Kiera theme (which seems to be no longer maintained and doesn't work with the current Hugo version).
See https://www.skepticism.us/ for an example where I've added the tagline "Musings on atheism, software, technology, and movies." I did that by adding the following to my config.toml:
[params]
tagline = "Musings on atheism, software, technology, and movies."
And modifying layouts/partials/header.html thusly:
diff whiteplain/layouts/partials/header.html whiteplain2/layouts/partials/header.html
10a11,13
> {{- if .Site.Params.tagline }}
> <h3>{{ .Site.Params.tagline }}</h3>
> {{- end }}
12c15
< <hr class="site-header-bottom">
\ No newline at end of file
---
> <hr class="site-header-bottom">
I tried HTML tag <h2> but felt there was insufficient contrast with the blog title. It may be preferable to use another tag and possibly a CSS class but for my purposes using <h3> is good enough aesthetically.