Spicing up blog list and tag list pages

This commit is contained in:
Brandon Rozek 2022-11-23 00:56:13 -05:00
parent 89aade301c
commit 4d5f0f30cb
7 changed files with 83 additions and 20 deletions

View file

@ -28,7 +28,17 @@
{{ end }}
<p class="bloglist-date">{{ .Key }}</p>
{{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<div class="bloglist-item">
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<p class="bloglist-item-tag">
{{ range .Params.tags }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }}
<span><a href="{{ .Permalink }}">#{{ $name }}</a> </span>
{{ end }}
{{ end }}
</p>
</div>
{{ end }}
{{ end }}
</div>