mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
Spicing up blog list and tag list pages
This commit is contained in:
parent
89aade301c
commit
4d5f0f30cb
7 changed files with 83 additions and 20 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue