2023-12-08 11:39:54 +00:00
|
|
|
{{ define "header" }}
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
2023-12-08 11:43:40 +00:00
|
|
|
<main id="posts-list">
|
2023-12-08 11:39:54 +00:00
|
|
|
{{- if .Content }}
|
|
|
|
<div class="content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
{{ range (.Paginate .Pages.ByPublishDate ).Pages }}
|
|
|
|
<p class="post-item">
|
|
|
|
<a href="{{.Permalink}}">
|
|
|
|
<span class="post-title">{{.Title}}</span>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "footer" }}
|
|
|
|
<div id="posts-footer">
|
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|