* Add a post date to each post * Do not show the post date for tours * Only show posts tagged "current-event" on the home page (hiding 37c3 entries) * Use a custom template for sorting the summary list by title (instead of the default by date)
This commit is contained in:
parent
d070853e64
commit
c06c8603ef
17 changed files with 67 additions and 4 deletions
16
layouts/_default/list-bytitle.html
Normal file
16
layouts/_default/list-bytitle.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" -}}
|
||||
<main class="main layout__main">
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ $paginator := .Paginate (.Pages) -}}
|
||||
{{ range $paginator.Pages.ByTitle -}}
|
||||
{{ .Render "summary" }}
|
||||
{{ end -}}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
{{ end -}}
|
Loading…
Add table
Add a link
Reference in a new issue