Add descriptions to list template #55
This commit is contained in:
parent
21a7537bab
commit
4343550d78
4 changed files with 10 additions and 0 deletions
1
NEWS.md
1
NEWS.md
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
+++
|
+++
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{define "aside" }}
|
||||||
|
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,7 @@
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{define "aside" }}
|
||||||
|
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue