aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-via.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-20 18:06:20 -0400
committertdro <tdro@noreply.example.com>2023-03-20 18:06:20 -0400
commitdf4403af8ea44f98c701960c84c70f0a160c3bdf (patch)
tree97cf558a8db22dff0efabe4303fd19cf8c1ffb63 /themes/default/layouts/partials/meta-via.html
parent1e2331b1da5cbf4db5c74d4cf6c6e5386728305d (diff)
downloadcanory-df4403af8ea44f98c701960c84c70f0a160c3bdf.tar.gz
canory-df4403af8ea44f98c701960c84c70f0a160c3bdf.tar.bz2
canory-df4403af8ea44f98c701960c84c70f0a160c3bdf.zip
themes/default/layouts/partials/meta-via: Mark localhost here
Diffstat (limited to 'themes/default/layouts/partials/meta-via.html')
-rw-r--r--themes/default/layouts/partials/meta-via.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/meta-via.html b/themes/default/layouts/partials/meta-via.html
index 84e7c2f..596749e 100644
--- a/themes/default/layouts/partials/meta-via.html
+++ b/themes/default/layouts/partials/meta-via.html
@@ -3,10 +3,12 @@
{{- if .Params.feed -}}
<anchored-via>
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/rss.svg")) -}}
- <a data-hover
- title="{{ $author }}@{{ (urls.Parse .Site.BaseURL).Host }}"
- href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#">
- via @{{ $author }}
+ <a
+ data-hover
+ title="{{ $author }}@{{ or (urls.Parse .Site.BaseURL).Host "localhost" }}"
+ href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#"
+ >
+ via @{{ $author }}
</a>
</anchored-via>
{{- end -}}