Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reddington <791642+chrisreddington@users.noreply.github.com>2020-12-23 00:07:39 +0300
committerGitHub <noreply@github.com>2020-12-23 00:07:39 +0300
commit3db321ad112b90636d30e0cb5ed587d0bd20219a (patch)
treeaa862e9fc8d85e01edf7d134fb3bdfef58b920b6 /layouts/partials/grid.html
parent7d7d88c4fa334036b52612b1262c117dc589404e (diff)
Add episode numbers/prefix in RSS and Relevant Titles/Links [Attempt #2] (#322)
* Attempt #2 at title changes Signed-off-by: Chris Reddington <791642+chrisreddington@users.noreply.github.com> * Tweaks to conditional based on review. Signed-off-by: Chris Reddington <791642+chrisreddington@users.noreply.github.com>
Diffstat (limited to 'layouts/partials/grid.html')
-rw-r--r--layouts/partials/grid.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/layouts/partials/grid.html b/layouts/partials/grid.html
index 0c486b0..e691a29 100644
--- a/layouts/partials/grid.html
+++ b/layouts/partials/grid.html
@@ -32,7 +32,19 @@
</a>
</div>
<div class="grid_episode_detail">
- <a href="{{ .Permalink }}" class= "grid_episode_title"><h3>{{ title .Title }}</h3></a>
+ {{ if and (isset .Site.Params "episode_number_style") (.Params.episode) }}
+ {{ if eq .Site.Params.episode_number_style "parens" }}
+ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h3>
+ {{ else if eq .Site.Params.episode_number_style "brackets" }}
+ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a> [{{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}]</h3>
+ {{ else if eq .Site.Params.episode_number_style "dash" }}
+ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a> - {{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}</h3>
+ {{ else }}
+ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h3>
+ {{ end }}
+ {{ else }}
+ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a></h3>
+ {{ end }}
<small class = "grid_episode_title">Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>