init
This commit is contained in:
15
layouts/_default/list.html
Normal file
15
layouts/_default/list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
<header><h1>{{ .Title | default "Posts" }}</h1></header>
|
||||
<ul class="archive">
|
||||
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
<li>
|
||||
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
Reference in New Issue
Block a user