2022-11-29 01:44:55 +08:00
|
|
|
{{- define "main" }}
|
|
|
|
{{- $page := .Site.GetPage "articles" -}}
|
|
|
|
<section class="container py-4">
|
|
|
|
{{ partial "page-header" . }}
|
2022-12-08 23:19:26 +08:00
|
|
|
<article class="content mt-6 archives">
|
2022-11-29 01:44:55 +08:00
|
|
|
{{- .Content }}
|
|
|
|
<ul>
|
|
|
|
{{- range $page.Pages.ByPublishDate.Reverse }}
|
|
|
|
{{- if .Params.hidden }}{{- continue -}}{{- end }}
|
|
|
|
<li data-author="{{ .Params.author }}">
|
|
|
|
<p>
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
<span class="is-inline-block">({{ .Params.author }}, {{ .PublishDate.Format "2006/1" }})</span>
|
2022-12-08 23:19:26 +08:00
|
|
|
{{- with .Params.description }}
|
|
|
|
<br>
|
|
|
|
<span class="description">{{ . }}</span>
|
|
|
|
{{- end }}
|
2022-11-29 01:44:55 +08:00
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
{{- end }}
|