Add <link> to alternate output formats in the page's <head>

This commit is contained in:
Eryn Wells 2024-10-20 09:15:16 -07:00
parent 53f1f3f45f
commit 115b9dd9cd

View file

@ -1,5 +1,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}">
{{ end }}
{{ partialCached "base/head/css.html" (dict "page" . "cssResource" "base/css.html") }}
{{ partialCached "base/head/js.html" . }}