log101-dot-dev/layouts/_default/list.html

30 lines
576 B
HTML
Raw Normal View History

2023-12-06 04:21:30 +00:00
{{ define "header" }}
2023-12-07 09:28:51 +00:00
{{ partial "header.html" . }}
2023-12-06 04:21:30 +00:00
{{ end }}
2023-12-04 03:43:34 +00:00
{{ define "main" }}
<main class="site-main">
2023-12-06 04:21:30 +00:00
{{- if .Content }}
<div class="content">
{{ .Content }}
</div>
{{- end }}
2023-12-07 09:28:51 +00:00
{{ range (.Paginate .Pages.ByPublishDate ).Pages }}
2023-12-06 04:21:30 +00:00
<div class="posts-group">
<div class="posts-list">
<p class="post-item">
2023-12-06 04:21:30 +00:00
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
</a>
</p>
</div>
2023-12-04 03:43:34 +00:00
</div>
2023-12-07 09:28:51 +00:00
{{ end }}
2023-12-04 03:43:34 +00:00
</main>
{{ end }}
2023-12-06 04:21:30 +00:00
{{ define "footer" }}
2023-12-07 09:45:21 +00:00
{{ partial "pagination.html" . }}
{{ partial "footer.html" . }}
2023-12-06 04:21:30 +00:00
{{ end }}