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