Commit c94dfc65 authored by Kaushal Modi's avatar Kaushal Modi

Change mediatype for Hugo v0.44

https://github.com/gohugoio/hugo/pull/4925
parent 3802f0ad
......@@ -36,7 +36,7 @@
<generator>Hugo -- gohugo.io</generator>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
{{- with .OutputFormats.Get "RSS" -}} <!-- Here, the Get is case-insensitive. -->
<atom:link href="{{ .Permalink }}" rel="self" type="{{ .MediaType.Type }}+{{ .MediaType.Suffix }}" />
<atom:link href="{{ .Permalink }}" rel="self" type="{{ .MediaType.Type }}" />
{{- end -}}
{{ range first 15 (where .Pages "Type" "in" .Site.Params.mainSections) }}
{{ $page := . }}
......
......@@ -144,7 +144,7 @@
<!-- RSS -->
<!-- https://gohugo.io/templates/rss/#reference-your-rss-feed-in-head -->
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink (printf "%s for %s" (.Name | title) $.Site.Title) | safeHTML }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink (printf "%s for %s" (.Name | title) $.Site.Title) | safeHTML }}
{{ end -}}
<!-- Hugo info -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment