Add descriptions to list template #55

This commit is contained in:
Joe Roe 2023-08-29 10:11:16 +02:00
parent 21a7537bab
commit 4343550d78
4 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# risotto (development version) # risotto (development version)
* Fix overflow of code blocks with line numbers (#41) * Fix overflow of code blocks with line numbers (#41)
* Add descriptions to sidebar of list pages, where defined in the frontmatter of `_index.md` (#55)
# risotto 0.3.0 # risotto 0.3.0

View file

@ -2,5 +2,6 @@
aliases = ["posts", "articles", "blog", "showcase", "docs"] aliases = ["posts", "articles", "blog", "showcase", "docs"]
title = "Posts" title = "Posts"
author = "Hugo Authors" author = "Hugo Authors"
description = "Example posts demonstrating hugo's markup features"
tags = ["index"] tags = ["index"]
+++ +++

View file

@ -10,3 +10,7 @@
</ul> </ul>
{{ end }} {{ end }}
{{define "aside" }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
{{ end }}

View file

@ -20,3 +20,7 @@
</article> </article>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{define "aside" }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
{{ end }}