reinstate posts list

This commit is contained in:
morph 2020-05-26 17:20:18 +02:00
parent 8bfd256e2a
commit 6d7c5cd3e1
2 changed files with 15 additions and 9 deletions

View file

@ -6,10 +6,16 @@
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ range .Paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
<ul>
{{ range .Paginator.Pages }}
<li>
<div class="post-title">
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
</div>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}

View file

@ -1,12 +1,12 @@
<header>
==============<br>
{{ strings.Repeat ( .Site.Title | countrunes | add 6 ) .Site.Params.title_frame_char }}<br>
== <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> ==<br>
==============<br>
{{ with .Site.Menus.main }}
{{ strings.Repeat ( .Site.Title | countrunes | add 6 ) .Site.Params.title_frame_char }}<br>
<p>
<div style="float: right;">Einfach mal was mit Holz machen.</div>
<div style="float: right;">{{ .Site.Params.subtitle }}</div>
<nav>
<a href="/"><b>Posts</b></a>.
<a href="/"><b>Start</b></a>.
{{ with .Site.Menus.main }}
{{ range . }}
<a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>.
{{ end }}