diff options
author | tdro <tdro@noreply.example.com> | 2023-03-20 18:06:20 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-03-20 18:06:20 -0400 |
commit | df4403af8ea44f98c701960c84c70f0a160c3bdf (patch) | |
tree | 97cf558a8db22dff0efabe4303fd19cf8c1ffb63 /themes/default/layouts/partials/meta-handle.html | |
parent | 1e2331b1da5cbf4db5c74d4cf6c6e5386728305d (diff) | |
download | canory-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-handle.html')
-rw-r--r-- | themes/default/layouts/partials/meta-handle.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index d332ab0..da2070b 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -1,12 +1,8 @@ {{- $author := .Section -}} -{{- $host := (urls.Parse .Site.BaseURL).Host -}} +{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} {{- $href := print .Site.BaseURL "/" $author "/#" -}} -{{- if not $host -}} - {{- $host = "localhost" -}} -{{- end -}} - {{- $title := print $author "@" $host -}} {{- with .Params.feed -}} |