head: AlternativeOutputFormats impl as in hugo docs
* https://gohugo.io/templates/output-formats/#list-output-formats
This commit is contained in:
parent
79b73ed683
commit
178b1560e1
|
@ -43,8 +43,8 @@
|
||||||
{{- hugo.Generator }}
|
{{- hugo.Generator }}
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{{- range .AlternativeOutputFormats -}}
|
{{- range .AlternativeOutputFormats -}}
|
||||||
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{- end -}}
|
{{ end -}}
|
||||||
<!-- Misc -->
|
<!-- Misc -->
|
||||||
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
{{- template "_internal/google_analytics_async.html" . }}
|
{{- template "_internal/google_analytics_async.html" . }}
|
||||||
|
|
Loading…
Reference in New Issue