23 lines
No EOL
1.1 KiB
HTML
23 lines
No EOL
1.1 KiB
HTML
{{/* {{- with .AlternativeOutputFormats }}
|
|
{{- range . }}
|
|
{{- $type := "" }}
|
|
{{- if eq (.MediaType.String | safeHTML) "application/atom+xml" }}
|
|
{{- $type = "Atom feed" }}
|
|
{{- else if eq (.MediaType.String | safeHTML) "application/feed+json"}}
|
|
{{- $type = "JSON feed" }}
|
|
{{- else if eq (.MediaType.String | safeHTML) "application/jf2feed+json"}}
|
|
{{- $type = "JF2 feed" }}
|
|
{{- end }}
|
|
<link rel="{{.Rel}}" {{printf "type=%q" .MediaType | safeHTMLAttr}} title="{{$fullTitle}}{{with $type}} ({{.}}){{end}}" href="{{.Permalink}}" />
|
|
{{- end }}
|
|
{{- end }} */}}
|
|
{{/* {{ with .OutputFormats.Get "RSS" -}}
|
|
<link rel="feed alternate" type="application/rss+xml" title="{{ $fullTitle }}" href="{{ .Permalink }}" />
|
|
{{- end }}
|
|
{{- with .OutputFormats.Get "Atom" -}}
|
|
<link rel="feed alternate" type="application/atom+xml" title="{{ $fullTitle }}" href="{{ .Permalink }}" />
|
|
{{- end }}
|
|
{{- with .OutputFormats.Get "Sitemap" -}}
|
|
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ .Permalink }}" />
|
|
{{- end -}} */}}
|
|
{{- /* TODO: more output formats? or possibly loop/iterate over all output formats? (probably not, don't want to link to lunr.json do we?) */ -}} |