mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
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
This commit is contained in:
@@ -2,14 +2,23 @@
|
||||
<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 }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ if ne .Title $globalTitle }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
|
Reference in New Issue
Block a user