diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html index 42cca3e2..fcd8e795 100644 --- a/site/layouts/_default/baseof.html +++ b/site/layouts/_default/baseof.html @@ -14,7 +14,6 @@ {{ partial "components/footer/footer.html" . }} - {{ partial "components/cookie-notice.html" . }} {{ partial "scripts/body-scripts.html" . }} diff --git a/site/layouts/_partials/blog/post-info.html b/site/layouts/_partials/blog/post-info.html index f3b1c672..494740e4 100644 --- a/site/layouts/_partials/blog/post-info.html +++ b/site/layouts/_partials/blog/post-info.html @@ -28,19 +28,21 @@ {{ $hasLabel := .has_label | default false }} {{ $label := "" }} -{{ if and (not $context.Params.author) $hasLabel }} +{{ $postAuthor := $context.Params.author }} + +{{ if and (not $postAuthor) $hasLabel }} {{ $label = "Posted on" }} {{ end }}
- {{ with $context.Params.author }} - {{ . }} - on - {{ end }} - {{ with $context.Params.publishdate }} - {{ partial "components/iso-date.html" (dict + {{- with $postAuthor -}} + {{- $author := printf "%s %s " . "on" -}} + {{ $author | safeHTML }} + {{- end -}} + {{- with $context.Params.publishdate -}} + {{- partial "components/iso-date.html" (dict "date" . "label" $label - ) }} - {{ end }} + ) -}} + {{- end -}}
diff --git a/site/layouts/_partials/components/cookie-notice.html b/site/layouts/_partials/components/cookie-notice.html deleted file mode 100644 index 7091ac20..00000000 --- a/site/layouts/_partials/components/cookie-notice.html +++ /dev/null @@ -1,41 +0,0 @@ - - -{{ $websiteURL := "spine.io" }} -{{ $notice := "uses cookies to help operate the site and gather analytics data. You can read more about it in our [Privacy Statement](privacy-statement/)." }} - - diff --git a/site/layouts/_partials/components/iso-date.html b/site/layouts/_partials/components/iso-date.html index 9179eae8..b6990aa3 100644 --- a/site/layouts/_partials/components/iso-date.html +++ b/site/layouts/_partials/components/iso-date.html @@ -24,14 +24,14 @@ ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> -{{ $date := .date }} -{{ $label := .label }} +{{- $date := .date -}} +{{- $label := .label -}} -{{ $formattedDate := $date | time.Format ":date_long" }} -{{ $isoDate := $date | time.Format "2006-01-02" }} +{{- $formattedDate := $date | time.Format ":date_long" -}} +{{- $isoDate := $date | time.Format "2006-01-02" -}}

- {{ with $label }} - {{ .}} - {{ end }} + {{- with $label -}} + {{ . }}  + {{- end -}}