diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-handle.html')
-rw-r--r-- | themes/default/layouts/partials/meta-handle.html | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index 2bb034d..0fbba06 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -1,24 +1,29 @@ -{{ $host := (urls.Parse .Site.BaseURL).Host -}} +{{- $host := (urls.Parse .Site.BaseURL).Host -}} +{{- $href := print .Site.BaseURL "/" (partial "author-user.html" .) "/#" -}} + {{- if (urls.Parse .Site.BaseURL).Host -}} {{- $host = (urls.Parse .Site.BaseURL).Host -}} {{- else -}} {{- $host = "localhost" -}} {{- end -}} +{{- $title := print (partial "author-user.html" .) "@" $host -}} + +{{- with .Params.feed -}} + {{- $host = $.Params.feed.domain -}} + {{- $href = print "http://" $.Params.feed.domain -}} + {{- $title = $.Params.feed.domain -}} +{{- end -}} + <micro-metadata-handle> - {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/at-sign.svg")) -}} - {{- with .Params.feed.domain -}} - <a - title="{{ . }}" - href="http://{{ . }}"> - {{ . -}} - </a> - {{- else -}} +{{- /* This comment removes trailing newlines and white spaces. */ -}} <a - title="{{ partial "author-user.html" . }}@{{ $host }}" - href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}/#"> - {{- $host -}} + title="{{ $title }}" + href="{{ $href }}"> + {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/at-sign.svg")) -}} + <span>{{- $host -}}</span> +{{- /* This comment removes trailing newlines and white spaces. */ -}} </a> - {{- end -}} +{{- /* This comment removes trailing newlines and white spaces. */ -}} </micro-metadata-handle> {{- /* This comment removes trailing newlines and white spaces. */ -}} |