aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-02 13:49:15 -0500
committertdro <tdro@noreply.example.com>2023-03-02 13:49:15 -0500
commitf2c5c3e8810dce33724d3929675794dda3ce3c90 (patch)
treefa57be968e03c264f637c890e8883a355ac62463 /themes
parentdb4dbf814ebbd9279fe25cb6c623daf2be05fd35 (diff)
downloadcanory-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')
-rw-r--r--themes/default/layouts/partials/meta-context-menu.html1
-rw-r--r--themes/default/layouts/partials/meta-date-time.html2
-rw-r--r--themes/default/layouts/partials/meta-handle.html6
-rw-r--r--themes/default/layouts/partials/meta-via.html8
4 files changed, 7 insertions, 10 deletions
diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html
index f6180e0..5c9f76c 100644
--- a/themes/default/layouts/partials/meta-context-menu.html
+++ b/themes/default/layouts/partials/meta-context-menu.html
@@ -1,5 +1,4 @@
{{- $id := partial "card-id.html" . -}}
-{{- $author := partial "function-authors-data.html" . -}}
{{- $href := print .Permalink -}}
{{- $plain := print $href "index.txt" -}}
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html
index a5465f3..0c01edd 100644
--- a/themes/default/layouts/partials/meta-date-time.html
+++ b/themes/default/layouts/partials/meta-date-time.html
@@ -1,5 +1,3 @@
-{{- $author := partial "function-authors-data.html" . -}}
-
<micro-metadata-datetime
title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html
index 4ec23e4..69cd200 100644
--- a/themes/default/layouts/partials/meta-handle.html
+++ b/themes/default/layouts/partials/meta-handle.html
@@ -1,13 +1,13 @@
-{{- $author := partial "function-authors-data.html" . -}}
+{{- $author := .Section -}}
{{- $host := (urls.Parse .Site.BaseURL).Host -}}
-{{- $href := print .Site.BaseURL "/" $author.user "/#" -}}
+{{- $href := print .Site.BaseURL "/" $author "/#" -}}
{{- if not $host -}}
{{- $host = "localhost" -}}
{{- end -}}
-{{- $title := print $author.user "@" $host -}}
+{{- $title := print $author "@" $host -}}
{{- with .Params.feed -}}
{{- $host = $.Params.feed.domain -}}
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 -}}