added new Taxonomy called 'series' and added support

This commit is contained in:
Don Harper 2019-07-07 19:23:15 -05:00
parent 98a029bceb
commit 99332530fe
3 changed files with 24 additions and 1 deletions

View file

@ -11,6 +11,11 @@ Copyright = "All rights reserved - 2006-"
preserveTaxonomyNames = true
#canonifyurls = true
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[privacy]
# Google Analytics privacy settings - https://gohugo.io/about/hugo-and-gdpr/index.html#googleanalytics
[privacy.googleAnalytics]

View file

@ -3,6 +3,7 @@ title: "Black and White School Park"
date: 2019-07-01T00:25:08-05:00
categories: ["photos"]
image: /photos/Local/Black-and-White-School-Park/20190624183103.jpg
series: ["Black And White"]
---
The local elementary school as a nice little playground/park next to it, and when I was there the other night, I took a few pictures, this time in B&W.

View file

@ -79,7 +79,24 @@
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="View all posts tagged {{ $name }}">{{ $name }}</a>
{{ end }}
</p></div> </div>
</p></div>
</div>
{{ if .Params.series }}
{{ $name := index .Params.series 0 }}
<hr/>
<p><a href="" id="series"></a>This is a post in the
<b>{{$name}}</b> series.<br/>
Other posts in this series:</p>
{{ $name := $name | urlize }}
{{ $series := index .Site.Taxonomies.series $name }}
<ul class="series">
{{ range $series.Pages }}
<li>{{.Date.Format "Jan 02, 2006"}} -
<a href="{{.Permalink}}">{{.LinkTitle}}</a></li>
{{end}}
</ul>
{{end}}
{{ if and (isset .Site.Params "author") .Site.Params.author }}
<div class="author-meta">