mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Change post navigation
* Delete old post directory
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
{{ partial "page-heading" . }}
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -3,11 +3,13 @@
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="page-heading">Posts</div>
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
{{ if eq .Section "posts" }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<div class="markdown">
|
||||
{{ .Content }}
|
||||
<br>
|
||||
<p><a href="/">Back home</a></p>
|
||||
<p><a href="/posts">Back to posts</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user