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)
|
||||
|
||||
* 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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
aliases = ["posts", "articles", "blog", "showcase", "docs"]
|
||||
title = "Posts"
|
||||
author = "Hugo Authors"
|
||||
description = "Example posts demonstrating hugo's markup features"
|
||||
tags = ["index"]
|
||||
+++
|
||||
|
|
|
|||
|
|
@ -10,3 +10,7 @@
|
|||
</ul>
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{define "aside" }}
|
||||
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -20,3 +20,7 @@
|
|||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{define "aside" }}
|
||||
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue