diff options
author | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
commit | f80ef2ed165a86e34ce703e798091658ce72a8c4 (patch) | |
tree | e35a35b0c45e2e2a0fc7c0ab3a1243f942d9f67c | |
parent | 3ec7c6f82cbc70a9cef04256aa6191001c011f48 (diff) | |
download | canory-f80ef2ed165a86e34ce703e798091658ce72a8c4.tar.gz canory-f80ef2ed165a86e34ce703e798091658ce72a8c4.tar.bz2 canory-f80ef2ed165a86e34ce703e798091658ce72a8c4.zip |
themes/default/layouts/partials: Remove most hashes
Looks like different browsers interpret # differently except for minimal
behaviour
5 files changed, 7 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index df0af84..985f53a 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -41,7 +41,7 @@ <micro-summary> <micro-thumbnail> <figure> - <a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/#"> + <a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> <picture> {{- with $sourceset -}} <source srcset="{{ print ("" | absURL) $sourceset }}" type="image/webp" /> @@ -61,7 +61,7 @@ <b>{{ .Data.name }}</b> </h2> <h3> - <a data-hover="" title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/#"> + <a data-hover="" title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> {{ .Data.user }}@{{ $host }} </a> </h3> diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html index 5b82cc9..5a7f0b5 100644 --- a/themes/default/layouts/partials/context-profile.html +++ b/themes/default/layouts/partials/context-profile.html @@ -4,7 +4,7 @@ {{- $user := $author.user -}} {{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} -{{- $href := print .Site.BaseURL "/" $author.user "/#" -}} +{{- $href := print .Site.BaseURL "/" $author.user "/" -}} {{- $title := print $author.user "@" $host -}} diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index da2070b..c738c6b 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -1,7 +1,7 @@ {{- $author := .Section -}} -{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} -{{- $href := print .Site.BaseURL "/" $author "/#" -}} +{{- $host := or (urls.Parse ("" | absURL)).Host "localhost" -}} +{{- $href := print ("" | absURL) "/" $author "/" -}} {{- $title := print $author "@" $host -}} diff --git a/themes/default/layouts/partials/meta-name.html b/themes/default/layouts/partials/meta-name.html index e381259..44abdfc 100644 --- a/themes/default/layouts/partials/meta-name.html +++ b/themes/default/layouts/partials/meta-name.html @@ -1,6 +1,6 @@ {{- $author := partial "function-authors-data.html" . -}} -{{- $href := print .Site.BaseURL "/" $author.user "/#" -}} +{{- $href := print ("" | absURL) "/" $author.user "/" -}} {{- $name := $author.name -}} {{- $title := $name -}} diff --git a/themes/default/layouts/partials/meta-via.html b/themes/default/layouts/partials/meta-via.html index 596749e..3c8827f 100644 --- a/themes/default/layouts/partials/meta-via.html +++ b/themes/default/layouts/partials/meta-via.html @@ -6,7 +6,7 @@ <a data-hover title="{{ $author }}@{{ or (urls.Parse .Site.BaseURL).Host "localhost" }}" - href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#" + href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#feeds" > via @{{ $author }} </a> |