diff --git a/assets/scss/style.scss b/assets/scss/style.scss index e44c223..1b643ad 100755 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -318,3 +318,25 @@ figure { } } } + +.series-status { + display: inline-block; + padding: 0.5rem; + border-radius: 1rem; + border: $standard-border-width solid rgba(black, 0.3); + + &.suspended { + background-color: lighten(yellow, 30%); + color: darken(yellow, 30%); + } + + &.complete { + background-color: lighten(green, 50%); + color: darken(green, 10%); + } + + &.ongoing { + background-color: lighten(lightblue, 10%); + color: darken(lightblue, 60%); + } +} diff --git a/i18n/en.toml b/i18n/en.toml index caa22d4..293e401 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -56,3 +56,18 @@ [searchRequiresJS] other = "Search (requires JavaScript)" + +[postsFromTo] + other = "First post in {{ .from }}, last post in {{ .to }}" + +[seriesStatus] + other = "Series status:" + +[suspendedSeries] + other = "Suspended" + +[completeSeries] + other = "Complete" + +[ongoingSeries] + other = "Ongoing" diff --git a/layouts/partials/seriesstatus.html b/layouts/partials/seriesstatus.html new file mode 100644 index 0000000..730be77 --- /dev/null +++ b/layouts/partials/seriesstatus.html @@ -0,0 +1 @@ +{{ i18n "seriesStatus" }} {{ i18n (printf "%sSeries" .) }} diff --git a/layouts/series/list.html b/layouts/series/list.html new file mode 100644 index 0000000..0662877 --- /dev/null +++ b/layouts/series/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +

{{ .Title }}

+{{ $pages := .Pages.ByDate }} +{{ $startYear := (index (last 1 .Pages) 0).Date.Format "2006" }} +{{ $endYear := (index (first 1 .Pages) 0).Date.Format "2006" }} +
+

{{ partial "seriesstatus.html" .Params.status }}

+

{{ i18n "postsFromTo" (dict "from" $startYear "to" $endYear) }}

+
+

{{ .Summary }}

+ + +{{ end }} diff --git a/layouts/series/terms.html b/layouts/series/terms.html new file mode 100644 index 0000000..c80344b --- /dev/null +++ b/layouts/series/terms.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} + + +{{ end }}