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/episode/single.html')
-rw-r--r--layouts/episode/single.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/layouts/episode/single.html b/layouts/episode/single.html
index cd57805..58b894e 100644
--- a/layouts/episode/single.html
+++ b/layouts/episode/single.html
@@ -1,8 +1,20 @@
{{ define "main" }}
<div class="row">
- <div class="col">
- <h1>{{ title .Title }}</h1>
+ <div class="col">
+ {{ if and (isset .Site.Params "episode_number_style") (.Params.episode) }}
+ {{ if eq .Site.Params.episode_number_style "parens" }}
+ <h1>{{ title .Title }} ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h1>
+ {{ else if eq .Site.Params.episode_number_style "brackets" }}
+ <h1>{{ title .Title }} [{{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}]</h1>
+ {{ else if eq .Site.Params.episode_number_style "dash" }}
+ <h1>{{ title .Title }} - {{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}</h1>
+ {{ else }}
+ <h1>{{ title .Title }}</h1>
+ {{ end }}
+ {{ else }}
+ <h1>{{ title .Title }}</h1>
+ {{ end }}
{{- if ne $.Params.upcoming true -}}
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
{{- else -}}