mirror of
https://github.com/morgan9e/blog
synced 2026-04-15 00:34:35 +09:00
Reset
This commit is contained in:
17
themes/plain/layouts/_default/list.html
Normal file
17
themes/plain/layouts/_default/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
{{- partial "nav.html" . -}}
|
||||
|
||||
{{ $pages := union .RegularPages .Sections }}
|
||||
|
||||
<div class="post-list">
|
||||
<h1>{{ with .Title }}{{ . }}{{ else }}{{ .Section }}{{ end }}</h1>
|
||||
<ul>
|
||||
{{ range $pages }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ if gt .Date.Year 2000 }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user