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:
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>