trwnh.com/unified.test.hugo/layouts/partials/head/_dump.html

23 lines
1.1 KiB
HTML
Raw Normal View History

2024-11-13 17:24:48 +00:00
{{/* {{- 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?) */ -}}