From 881a5b145dfdbb093b60132f03662f8aafb611cc Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 19 Nov 2024 14:27:37 +0000 Subject: [PATCH] Site.Params.author.about is now optional Signed-off-by: GitHub Action --- layouts/partials/posts_single_info.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/posts_single_info.html b/layouts/partials/posts_single_info.html index 292c598..0e24d39 100644 --- a/layouts/partials/posts_single_info.html +++ b/layouts/partials/posts_single_info.html @@ -1,7 +1,8 @@ {{- with .Params.description }}

{{.}}

{{- end }} {{- if and .Params.author .Params.authorLink}}{{ $relreflink := relref . .Params.authorLink }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Params.author }}

-{{- else if .Params.author }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Params.author }}

-{{- else }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Site.Params.author.name }}

+{{- else if and .Params.author .Site.Params.author.about }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Params.author }}

+{{- else if and .Site.Params.author.about .Site.Params.author.name }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Site.Params.author.name }}

+{{- else }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Site.Params.author.name }}

{{- end }} {{- with .Params.tags }}

{{- partial "svg.html" (dict "context" . "name" "posts_single_tags") -}}{{- range . -}}{{.}}{{- end }}