aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-markdown.html
blob: 3b082d3838d0282a404a3e562a41f712ad86c00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{- if not .ExpiryDate -}}
  {{- $author := partial "function-authors-data.html" . -}}
  {{- $source := print $author.user "/messages/" .File.LogicalName -}}
  {{- $href   := print .Site.BaseURL "/" (partial "function-paths.html" "markdown") "/" $source -}}
  {{- $title  := $href -}}

  {{- with .Params.feed -}}
    {{- $href  = print $.Site.BaseURL "/" $.Params.feed.raw -}}
    {{- $title = $href -}}
  {{- end -}}

  <micro-metadata-source>
    <a href="{{ $href }}" title="{{ $title }}">
      {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/code.svg")) -}}
      <span>markdown</span>
    </a>
  </micro-metadata-source>
{{- end -}}