diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-03 14:47:42 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-03 14:47:42 +0530 |
| commit | 178b1560e1e169bb324b516f0d5f92a9053a0a70 (patch) | |
| tree | 2ef07536357a2cccb5fdf6fa5eeaceb6caca0361 | |
| parent | 79b73ed683bd04a814de2b8e2ae3a136f95a9003 (diff) | |
head: AlternativeOutputFormats impl as in hugo docs
* https://gohugo.io/templates/output-formats/#list-output-formats
| -rw-r--r-- | layouts/partials/head.html | 4 |
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" . }} |
