summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-03 14:47:42 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-03 14:47:42 +0530
commit178b1560e1e169bb324b516f0d5f92a9053a0a70 (patch)
tree2ef07536357a2cccb5fdf6fa5eeaceb6caca0361
parent79b73ed683bd04a814de2b8e2ae3a136f95a9003 (diff)
head: AlternativeOutputFormats impl as in hugo docs
* https://gohugo.io/templates/output-formats/#list-output-formats
-rw-r--r--layouts/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index add9497..a556f72 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -43,8 +43,8 @@
{{- hugo.Generator }}
<!-- RSS -->
{{- range .AlternativeOutputFormats -}}
-{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
-{{- end -}}
+<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
+{{ end -}}
<!-- Misc -->
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{- template "_internal/google_analytics_async.html" . }}