log101-dot-dev/layouts/_default/list.html
log101 fe4876c747 feat: update to hugo 0.121
feat: add posts template
2023-12-07 02:12:32 +00:00

32 lines
620 B
HTML

{{ define "header" }}
{{ partialCached "header.html" . }}
{{ end }}
{{ define "main" }}
<main class="site-main">
<h1 id="home-title">{{ .Title }}</h1>
{{- if .Content }}
<div class="content">
{{ .Content }}
</div>
{{- end }}
{{- range .Data.Pages.GroupByDate "2006" }}
<div class="posts-group">
<div class="posts-list">
{{- range .Pages }}
<p class="post-item">
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
</a>
</p>
{{- end }}
</div>
</div>
{{- end }}
</main>
{{ end }}
{{ define "footer" }}
{{ partial "footer.html" . }}
{{ end }}