2023-12-06 04:21:30 +00:00
|
|
|
{{ define "header" }}
|
|
|
|
{{ partialCached "header.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-12-04 03:43:34 +00:00
|
|
|
{{ define "main" }}
|
2023-12-07 02:12:32 +00:00
|
|
|
<main class="site-main">
|
|
|
|
<h1 id="home-title">{{ .Title }}</h1>
|
2023-12-06 04:21:30 +00:00
|
|
|
{{- if .Content }}
|
|
|
|
<div class="content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
{{- range .Data.Pages.GroupByDate "2006" }}
|
|
|
|
<div class="posts-group">
|
2023-12-07 02:12:32 +00:00
|
|
|
<div class="posts-list">
|
2023-12-06 04:21:30 +00:00
|
|
|
{{- range .Pages }}
|
2023-12-07 02:12:32 +00:00
|
|
|
<p class="post-item">
|
2023-12-06 04:21:30 +00:00
|
|
|
<a href="{{.Permalink}}">
|
|
|
|
<span class="post-title">{{.Title}}</span>
|
|
|
|
</a>
|
2023-12-07 02:12:32 +00:00
|
|
|
</p>
|
2023-12-06 04:21:30 +00:00
|
|
|
{{- end }}
|
2023-12-07 02:12:32 +00:00
|
|
|
</div>
|
2023-12-04 03:43:34 +00:00
|
|
|
</div>
|
2023-12-06 04:21:30 +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 02:12:32 +00:00
|
|
|
{{ partial "footer.html" . }}
|
2023-12-06 04:21:30 +00:00
|
|
|
{{ end }}
|