From 79f35a0ccdf6bc7b6b5008b33b4d570ba4992f07 Mon Sep 17 00:00:00 2001
From: Matt Baer
Date: Tue, 12 Nov 2019 08:03:00 +0900
Subject: [PATCH] Fix collection template issues introduced in #205
This fixes a template rendering issue caused by bad references to $.Host
in pinned posts links on single-user instances.
Closes #207
---
templates/chorus-collection-post.tmpl | 2 +-
templates/chorus-collection.tmpl | 2 +-
templates/collection-post.tmpl | 2 +-
templates/collection-tags.tmpl | 2 +-
templates/collection.tmpl | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/templates/chorus-collection-post.tmpl b/templates/chorus-collection-post.tmpl
index a6b6102..b9df8ad 100644
--- a/templates/chorus-collection-post.tmpl
+++ b/templates/chorus-collection-post.tmpl
@@ -80,7 +80,7 @@ article time.dt-published {
diff --git a/templates/chorus-collection.tmpl b/templates/chorus-collection.tmpl
index 504e54f..8250287 100644
--- a/templates/chorus-collection.tmpl
+++ b/templates/chorus-collection.tmpl
@@ -71,7 +71,7 @@ body#collection header nav.tabs a:first-child {
{{/*end*/}}
{{if .PinnedPosts}}
+ {{range .PinnedPosts}}{{.PlainDisplayTitle}}{{end}}
{{end}}
diff --git a/templates/collection-post.tmpl b/templates/collection-post.tmpl
index e24c6dd..a194cf4 100644
--- a/templates/collection-post.tmpl
+++ b/templates/collection-post.tmpl
@@ -50,7 +50,7 @@
{{end}}