diff options
author | tdro <tdro@noreply.example.com> | 2023-03-02 13:49:15 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-03-02 13:49:15 -0500 |
commit | f2c5c3e8810dce33724d3929675794dda3ce3c90 (patch) | |
tree | fa57be968e03c264f637c890e8883a355ac62463 /themes/default/layouts/partials/meta-via.html | |
parent | db4dbf814ebbd9279fe25cb6c623daf2be05fd35 (diff) | |
download | canory-f2c5c3e8810dce33724d3929675794dda3ce3c90.tar.gz canory-f2c5c3e8810dce33724d3929675794dda3ce3c90.tar.bz2 canory-f2c5c3e8810dce33724d3929675794dda3ce3c90.zip |
themes/default/layouts/partials/meta: Remove unneeded author data calls
Since an author = a section (not sure if that's a good thing) .Section can be
used in some places
Diffstat (limited to 'themes/default/layouts/partials/meta-via.html')
-rw-r--r-- | themes/default/layouts/partials/meta-via.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/meta-via.html b/themes/default/layouts/partials/meta-via.html index 6aa405d..483481d 100644 --- a/themes/default/layouts/partials/meta-via.html +++ b/themes/default/layouts/partials/meta-via.html @@ -1,12 +1,12 @@ -{{- $author := partial "function-authors-data.html" . -}} +{{- $author := .Section -}} {{- if .Params.feed -}} <anchored-via> {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/rss.svg")) -}} <a data-hover - title="{{ $author.user }}@{{ (urls.Parse .Site.BaseURL).Host }}" - href="{{ .Site.BaseURL }}/{{ $author.user }}/feeds/#"> - via @{{ $author.user }} + title="{{ $author }}@{{ (urls.Parse .Site.BaseURL).Host }}" + href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#"> + via @{{ $author }} </a> </anchored-via> {{- end -}} |