30 lines
576 B
HTML
30 lines
576 B
HTML
{{ define "header" }}
|
|
{{ partial "header.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main class="site-main">
|
|
{{- if .Content }}
|
|
<div class="content">
|
|
{{ .Content }}
|
|
</div>
|
|
{{- end }}
|
|
{{ range (.Paginate .Pages.ByPublishDate ).Pages }}
|
|
<div class="posts-group">
|
|
<div class="posts-list">
|
|
<p class="post-item">
|
|
<a href="{{.Permalink}}">
|
|
<span class="post-title">{{.Title}}</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "footer" }}
|
|
{{ partial "pagination.html" . }}
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|