blob: 2bb034d8a6cc6c1e36e65ab9f0277bd413ae7faa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{{ $host := (urls.Parse .Site.BaseURL).Host -}}
{{- if (urls.Parse .Site.BaseURL).Host -}}
{{- $host = (urls.Parse .Site.BaseURL).Host -}}
{{- else -}}
{{- $host = "localhost" -}}
{{- 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 -}}
<a
title="{{ partial "author-user.html" . }}@{{ $host }}"
href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}/#">
{{- $host -}}
</a>
{{- end -}}
</micro-metadata-handle>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|