Files
cocoa-eh-hugo-theme/layouts/_default/list.html
Alexis Tacnet 4a5e3eb1f4 Change the default list display a content and a list
Inside a section, you can have a name_of_the_section.md with a content displayed before the list
2017-01-04 02:52:47 +01:00

25 lines
763 B
HTML

{{ partial "header.html" . }}
<section class="main">
<div class="container">
<div class="content">
{{ $globalTitle := .Title}}
<div class="markdown">
{{ range .Data.Pages }}
{{ if eq .Title $globalTitle }}
{{ .Content }}
{{ end }}
{{ end }}
</div>
<div class="page-heading">{{ .Title }}</div>
<ul>
{{ range .Data.Pages.ByPublishDate }}
{{ if ne .Title $globalTitle }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}
</ul>
</div>
</div>
</section>
{{ partial "footer.html" . }}