diff options
author | tdro <tdro@noreply.example.com> | 2023-11-08 16:13:44 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-11-15 13:48:10 -0500 |
commit | ad371ef898e1dae93bc7f92036e6a2c6318b92bb (patch) | |
tree | dd559db73ff9deb03aeaf8c798c2b85e5ffaf5a5 /themes/default/layouts | |
parent | b2c5f2b8cabb6b20a426d2e9c1d5ae7157a3c354 (diff) | |
download | canory-ad371ef898e1dae93bc7f92036e6a2c6318b92bb.tar.gz canory-ad371ef898e1dae93bc7f92036e6a2c6318b92bb.tar.bz2 canory-ad371ef898e1dae93bc7f92036e6a2c6318b92bb.zip |
themes/default/layouts/partials/context-profile: Consistent format
Diffstat (limited to 'themes/default/layouts')
-rw-r--r-- | themes/default/layouts/partials/context-profile.html | 17 |
1 files changed, 7 insertions, 10 deletions
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 -}} <context-profile> @@ -29,7 +26,7 @@ </aside> <aside> <h2>{{ $name }}</h2> - <p>{{ $user }}@{{ $host }}</p> + <p>@{{ $host }}</p> </aside> </div> <p>{{ $description }}</p> |