aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-markdown.html
blob: e6789233f220d2d7e8d0f22078fe68f8b4be56be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- if not .ExpiryDate -}}
  {{- $relURL := strings.TrimPrefix .Page.Site.BaseURL .Page.Permalink -}}
  {{- $source := print (path.Dir $relURL) ".md" -}}
  {{- $href   := print .Site.BaseURL "/" (partial "function-paths.html").markdown $source -}}
  {{- $title  := .File.LogicalName -}}

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