From 99332530fec829003ee57d3967983ef691017761 Mon Sep 17 00:00:00 2001
From: Don Harper
Date: Sun, 7 Jul 2019 19:23:15 -0500
Subject: [PATCH] added new Taxonomy called 'series' and added support
---
config.toml | 5 +++++
.../2019/07/black-and-white-school-park.md | 1 +
themes/nederburg/layouts/_default/single.html | 19 ++++++++++++++++++-
3 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/config.toml b/config.toml
index 23550c49..9ae97a76 100644
--- a/config.toml
+++ b/config.toml
@@ -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]
diff --git a/content/post/2019/07/black-and-white-school-park.md b/content/post/2019/07/black-and-white-school-park.md
index 1ce59cbc..c743a62f 100644
--- a/content/post/2019/07/black-and-white-school-park.md
+++ b/content/post/2019/07/black-and-white-school-park.md
@@ -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.
diff --git a/themes/nederburg/layouts/_default/single.html b/themes/nederburg/layouts/_default/single.html
index 7764c2d3..26755e2a 100644
--- a/themes/nederburg/layouts/_default/single.html
+++ b/themes/nederburg/layouts/_default/single.html
@@ -79,7 +79,24 @@
{{ $name }}
{{ end }}
-
+
+
+{{ if .Params.series }}
+{{ $name := index .Params.series 0 }}
+
+This is a post in the
+{{$name}} series.
+Other posts in this series:
+
+{{ $name := $name | urlize }}
+{{ $series := index .Site.Taxonomies.series $name }}
+
+ {{ range $series.Pages }}
+ - {{.Date.Format "Jan 02, 2006"}} -
+ {{.LinkTitle}}
+ {{end}}
+
+{{end}}
{{ if and (isset .Site.Params "author") .Site.Params.author }}