aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-via.html
blob: 596749e608e602d2eaa4d5acc4aa9bedc4cb9fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- $author := .Section -}}

{{- if .Params.feed -}}
<anchored-via>
  {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/rss.svg")) -}}
  <a
    data-hover
    title="{{ $author }}@{{ or (urls.Parse .Site.BaseURL).Host "localhost" }}"
    href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#"
  >
    via @{{ $author }}
  </a>
</anchored-via>
{{- end -}}