diff --git a/layouts/partials/after-content-js.html b/layouts/partials/after-content-js.html index 0cadb7e..418ebe6 100644 --- a/layouts/partials/after-content-js.html +++ b/layouts/partials/after-content-js.html @@ -81,7 +81,7 @@ }).then((html_string) => { const parser = new DOMParser(); const next_page = parser.parseFromString(html_string, "text/html"); - {{ if .Site.Params.heti }} + {{ if .Site.Params.features.heti }} const heti = new Heti(next_page); heti.autoSpacing(); {{ end }} @@ -103,7 +103,7 @@ {{ end }} -{{ if .Site.Params.heti }} +{{ if .Site.Params.features.heti }} {{ end }} diff --git a/layouts/partials/row.html b/layouts/partials/row.html index a3606b4..9d0644a 100644 --- a/layouts/partials/row.html +++ b/layouts/partials/row.html @@ -5,8 +5,7 @@ {{/* time info shown in the left (or above in small screens) */}}
-
{{ .Date.Format "Jan 2"}}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) - .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }}
+
{{ .Date.Format "Jan 2"}}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }}
{{ .Date.Format "2006"}}
@@ -55,7 +54,7 @@
{{/* Main text content */}} -
+ {{ if .Site.Params.features.heti }}
{{ else }}
{{ end }} {{ .Content }}