diff options
author | tdro <tdro@noreply.example.com> | 2022-06-02 20:29:14 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-02 20:29:14 -0400 |
commit | 4e26be95074a0be4f9cd45a1f3fc9b6dfe0790bd (patch) | |
tree | f81827fda491f710550df0d5df988d69fc85a497 /themes/default/layouts/partials/meta-handle.html | |
parent | d0713b5c29257f689981364d6b4c5df9863dc96a (diff) | |
download | canory-4e26be95074a0be4f9cd45a1f3fc9b6dfe0790bd.tar.gz canory-4e26be95074a0be4f9cd45a1f3fc9b6dfe0790bd.tar.bz2 canory-4e26be95074a0be4f9cd45a1f3fc9b6dfe0790bd.zip |
themes/default/layouts: Use urls.Parse instead of regular expression
For domain/host lookup.
Diffstat (limited to 'themes/default/layouts/partials/meta-handle.html')
-rw-r--r-- | themes/default/layouts/partials/meta-handle.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index a46eb0c..d07b051 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -7,7 +7,7 @@ </a> {{- else -}} <a - title="{{ partial "author-user.html" . }}@{{ replaceRE "^https?://([^/]+).*" "$1" .Site.BaseURL }}" + title="{{ partial "author-user.html" . }}@{{ (urls.Parse .Site.BaseURL).Host }}" href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}"> @{{ partial "author-user.html" . }} </a> |