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

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

View file

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