Skip to content

Commit 720ed00

Browse files
committed
List: Added banner to list if front matter is present
1 parent 9c28d1c commit 720ed00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

layouts/_default/list.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
<h1>{{ .Title }}</h1>
3232
{{ .Content }}
3333

34+
{{- with .Params.banner -}}
35+
{{- if .enabled -}}
36+
<div class="banner banner-{{ .type }}">
37+
Some banner
38+
</div>
39+
{{- end -}}
40+
{{- end -}}
41+
3442
{{ if (lt .WordCount 1) }}
3543
{{ range .Pages.ByWeight }}
3644
<h2>

0 commit comments

Comments
 (0)