initial blog support (via tags)

master
Marcell Mars 2 years ago
parent 306cd0f118
commit faccdb0fce

@ -11,8 +11,13 @@
{{ end }}
{{ else }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>{{ index $p 1 }}</div>
{{ range .Pages }}
<li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></li>
{{ range .Pages.ByDate.Reverse }}
<div class="blog-date">{{ .Date.Format "Jan 2, 2006" }}</div>
<div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
{{ range $n, $authorFile := .Params.authors }}
{{ $author := $.GetPage (printf "/author/%s" $authorFile) }}
<span class="blog-author"><a href="{{ $author.RelPermalink }}">{{ $author.Title }}</a></span>
{{ end }}
{{ end }}
{{ end }}
{{ end }}

Loading…
Cancel
Save