updated default listing template, as posts fallback
This commit is contained in:
@@ -1,8 +1,17 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>{{ .Title }}</h1>
|
{{ with .Content }}
|
||||||
{{ .Content }}
|
<div id="content" class="page">
|
||||||
{{ range .Pages }}
|
{{ . }}
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
</div>
|
||||||
{{ .Summary }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<div id="posts" class="directory">
|
||||||
|
{{ range .Paginator.Pages }}
|
||||||
|
<a href="{{ .RelPermalink }}">
|
||||||
|
<article class="post">
|
||||||
|
<h2>{{ .LinkTitle }}</h2>
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
</article>
|
||||||
|
</a>
|
||||||
|
{{ end }}{{ template "_internal/pagination.html" . }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user