From 5b9eaac1306044922f0a9ec3806a786a0cdd036f Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 25 Oct 2020 12:47:09 +0530 Subject: [PATCH] layouts: use author partial in head and post_meta --- layouts/partials/head.html | 2 +- layouts/partials/post_meta.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 48b5d355..af7ac9d6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,7 +10,7 @@ - + {{- if .Site.Params.analytics.google.SiteVerificationTag }} diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 1b329470..e0dbef40 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -8,9 +8,9 @@ {{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }} {{- end -}} -{{- if or .Params.author .Site.Params.author }} -{{- $scratch.Add "meta" (slice (.Params.author | default .Site.Params.author)) }} -{{- end -}} +{{ with (partial "author.html" . ) }} +{{ $scratch.Add "meta" (slice .)}} +{{end}} {{- with ($scratch.Get "meta")}} {{- delimit . " ยท "}}