aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-source.html
blob: 94b3b010ffd0f1009d60a30a22697e23bee431ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{- if not .ExpiryDate -}}
  <micro-metadata-source>
    {{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
    {{- $source := print $author.user "/messages/" .File.LogicalName -}}
    {{- safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/code.svg")) -}}

    <cite>
      {{- with .Params.feed.raw -}}
      <a title="{{ $.Site.BaseURL }}/{{ . }}" href="{{ $.Site.BaseURL }}/{{ . }}">
      {{- else -}}
      <a
        href="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}"
        title="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}">
      {{- end -}}
        raw
      </a>
    </cite>
  </micro-metadata-source>
{{- end -}}