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">
|
<section class="main">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<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>
|
<div class="page-heading">{{ .Title }}</div>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Data.Pages.ByPublishDate }}
|
{{ range .Data.Pages.ByPublishDate }}
|
||||||
{{ partial "li.html" . }}
|
{{ if ne .Title $globalTitle }}
|
||||||
|
{{ partial "li.html" . }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user