From ad371ef898e1dae93bc7f92036e6a2c6318b92bb Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 8 Nov 2023 16:13:44 -0500 Subject: themes/default/layouts/partials/context-profile: Consistent format --- themes/default/layouts/partials/context-profile.html | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'themes/default/layouts') diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html index 5a7f0b5..5150128 100644 --- a/themes/default/layouts/partials/context-profile.html +++ b/themes/default/layouts/partials/context-profile.html @@ -1,18 +1,15 @@ -{{- $author := partial "function-authors-data.html" . -}} +{{- $author := partial "function-authors-data.html" . -}} {{- $description := or .Params.feed.description ($author.description | markdownify) -}} -{{- $name := or .Params.feed.name $author.name -}} -{{- $user := $author.user -}} - -{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} -{{- $href := print .Site.BaseURL "/" $author.user "/" -}} - -{{- $title := print $author.user "@" $host -}} +{{- $name := or .Params.feed.name $author.name -}} +{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} +{{- $author := .Section -}} +{{- $href := print ("" | absURL) "/" $author "/" -}} +{{- $title := print $author "@" $host -}} {{- with .Params.feed -}} {{- $host = $.Params.feed.domain -}} {{- $href = or $.Params.feed.home (print "http://" $.Params.feed.domain) -}} {{- $title = $.Params.feed.domain -}} - {{- $user = "" -}} {{- end -}} @@ -29,7 +26,7 @@

{{ $description }}

-- cgit v1.2.3