Compare commits

...

5 Commits

5 changed files with 20 additions and 8 deletions

View File

@ -28,6 +28,10 @@ the
[archive](https://schlomp.space/tastytea/hugo-theme-nocolor/archive/main.tar.gz)
into `themes/nocolor`.
### Breaking changes:
- 2021-09-25: Don't automatically add RSS hyperlink.
## Configuration & Modification
Please take a look at the [configuration example for
@ -42,6 +46,10 @@ template `extra_head.html` or above the footer by overwriting
`layouts/partials/extra_head.html` or `layouts/partials/extra_foot.html`,
respectively.
Maybe the [configuration file for my
blog](https://schlomp.space/tastytea/blog/src/branch/main/config.toml) is
helpful, too.
### Custom ARIA labels
Some elements can't be labeled by default because we don't know what's going to
@ -78,7 +86,8 @@ pygmentize -f html -S <style> -a .highlight \
```
And add `:source-highlighter: pygments` at the top of your posts, below the
front matter. Make sure to include the generated CSS file.
front matter. Make sure to include the generated CSS file. You can also set the
`source-highlighter` attribute in your config file.[^1]
### Table of contents
@ -95,3 +104,5 @@ blog.
## Contributing
See <https://schlomp.space/tastytea/hugo-theme-nocolor/src/branch/main/CONTRIBUTING.adoc>.
[^1]: https://gohugo.io/content-management/formats/#external-helper-asciidoctor

View File

@ -1,6 +1,12 @@
html
{
font-family: serif;
hyphens: auto;
}
textarea, pre, code
{
hyphens: manual;
}
body

View File

@ -1,5 +1,5 @@
{{- define "main" }}
<section aria-labelledby="nocolor_list">
<section class="list" aria-labelledby="nocolor_list">
<h1 id="nocolor_list">{{ .Title }}:</h1>
<ul>
{{- range .Paginator.Pages }}

View File

@ -1,5 +1,5 @@
{{- define "main" }}
<section aria-labelledby="nocolor_terms">
<section class="terms" aria-labelledby="nocolor_terms">
<h1 id="nocolor_terms">{{ .Title }}:</h1>
<ul>
{{- range .Data.Terms.ByCount }}

View File

@ -13,11 +13,6 @@
</li>
{{ with .Post }}{{ . }}{{ end }}
{{- end }}
{{- with .Site.Home.OutputFormats.Get "RSS" }}
<li>
<a href="{{ .RelPermalink }}">RSS</a>
</li>
{{- end }}
</ul>
</nav>
{{- with .Site.Copyright }}