aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-handle.html
blob: ee0cc506d8f9d2698955487ed2c1edd020e647e7 (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
25
{{- $author := .Section -}}

{{- $host := or (urls.Parse ("" | absURL)).Host "localhost" -}}
{{- $href := print ("" | absURL) "/" $author "/" -}}

{{- $title := print $author "@" $host -}}

{{- with .Params.feed -}}
  {{- $host  = $.Params.feed.domain -}}
  {{- $href  = or $.Params.feed.home (print "http://" $.Params.feed.domain) -}}
  {{- $title = $.Params.feed.domain -}}
{{- end -}}

<meta-handle>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
  <a
    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>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</meta-handle>
{{- /* This comment removes trailing newlines and white spaces. */ -}}