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')
-rw-r--r--layouts/partials/grid-taxonomy.html14
-rw-r--r--layouts/partials/grid-upcoming.html16
-rw-r--r--layouts/partials/grid.html14
-rw-r--r--layouts/partials/row-taxonomy.html16
-rw-r--r--layouts/partials/row-upcoming.html14
-rw-r--r--layouts/partials/row.html42
6 files changed, 106 insertions, 10 deletions
diff --git a/layouts/partials/grid-taxonomy.html b/layouts/partials/grid-taxonomy.html
index bfe0b17..086bdda 100644
--- a/layouts/partials/grid-taxonomy.html
+++ b/layouts/partials/grid-taxonomy.html
@@ -20,7 +20,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>
diff --git a/layouts/partials/grid-upcoming.html b/layouts/partials/grid-upcoming.html
index 4c72ea4..6db7a17 100644
--- a/layouts/partials/grid-upcoming.html
+++ b/layouts/partials/grid-upcoming.html
@@ -19,8 +19,20 @@
</a>
</div>
- <div class="grid_episode_detail">
- <a href="{{ .Permalink }}" class= "grid_episode_title"><h3>{{ title .Title }}</h3></a>
+ <div class="grid_episode_detail">
+ {{ 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">Scheduled for {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
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>
diff --git a/layouts/partials/row-taxonomy.html b/layouts/partials/row-taxonomy.html
index 00f706a..4a75f20 100644
--- a/layouts/partials/row-taxonomy.html
+++ b/layouts/partials/row-taxonomy.html
@@ -25,8 +25,20 @@
{{- end -}}
{{- end -}}
<div class = "row homepage_episode_row">
- <div class = "col-md-12">
- <a href="{{ .Permalink }}" class= "grid_episode_title"><h3 class= "grid_episode_title">{{ .Title }}</h3></a>
+ <div class = "col-md-12">
+ {{ 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>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
</div>
diff --git a/layouts/partials/row-upcoming.html b/layouts/partials/row-upcoming.html
index 5ddacdf..451c33c 100644
--- a/layouts/partials/row-upcoming.html
+++ b/layouts/partials/row-upcoming.html
@@ -26,7 +26,19 @@
{{- end -}}
<div class = "row homepage_episode_row">
<div class = "col-md-12">
- <a href="{{ .Permalink }}" class= "grid_episode_title"><h3 class= "grid_episode_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>Scheduled for {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
</div>
diff --git a/layouts/partials/row.html b/layouts/partials/row.html
index d4f0d47..a4a42ed 100644
--- a/layouts/partials/row.html
+++ b/layouts/partials/row.html
@@ -43,7 +43,19 @@
{{- if eq ($.Scratch.Get "youtube") "true" -}}
<div class = "row homepage_episode_row">
<div class = "col">
- <a href="{{ .Permalink }}" class = "row_latest_episode_title"><h2>{{ .Title }}</h2></a>
+ {{ if and (isset .Site.Params "episode_number_style") (.Params.episode) }}
+ {{ if eq .Site.Params.episode_number_style "parens" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h2>
+ {{ else if eq .Site.Params.episode_number_style "brackets" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> [{{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}]</h2>
+ {{ else if eq .Site.Params.episode_number_style "dash" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> - {{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}</h2>
+ {{ else }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h2>
+ {{ end }}
+ {{ else }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a></h2>
+ {{ end }}
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
</div>
@@ -62,7 +74,19 @@
{{- else if eq ($.Scratch.Get "episode_banner") "true" -}}
<div class = "row homepage_episode_row">
<div class = "col">
- <a href="{{ .Permalink }}" class = "row_latest_episode_title"><h2>{{ .Title }}</h2></a>
+ {{ if and (isset .Site.Params "episode_number_style") (.Params.episode) }}
+ {{ if eq .Site.Params.episode_number_style "parens" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h2>
+ {{ else if eq .Site.Params.episode_number_style "brackets" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> [{{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}]</h2>
+ {{ else if eq .Site.Params.episode_number_style "dash" }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> - {{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}</h2>
+ {{ else }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a> ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</h2>
+ {{ end }}
+ {{ else }}
+ <h2><a href="{{ .Permalink }}" class= "row_latest_episode_title">{{ .Title }}</a></h2>
+ {{ end }}
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
</div>
@@ -149,7 +173,19 @@
{{- end -}}
<div class = "row homepage_episode_row">
<div class = "col-md-12">
- <a href="{{ .Permalink }}" class= "grid_episode_title"><h3 class= "grid_episode_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>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }} {{ partial "episode-metadata.html" .}}</small>
</div>
</div>