]> njoseph.me Git - hyde.git/commitdiff
Removed deprecated .Hugo and .RSSLink
authorz0li <22303427+z0li@users.noreply.github.com>
Sat, 27 Apr 2019 15:11:18 +0000 (17:11 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 Apr 2019 18:02:51 +0000 (20:02 +0200)
layouts/partials/head.html
theme.toml

index ab68c448e7e1ba0accfecc7620164c386de1a17b..30ff316bc13323712dbe208c82ea99c4f9c5b212 100644 (file)
@@ -3,7 +3,7 @@
 <head>
   <link href="//gmpg.org/xfn/11" rel="profile">
   <meta http-equiv="content-type" content="text/html; charset=utf-8">
-  {{ .Hugo.Generator }}
+  {{ hugo.Generator }}
 
   <!-- Enable responsiveness on mobile devices-->
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
   <link rel="shortcut icon" href="/favicon.png">
 
-  <!-- RSS -->
-  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+  <!-- RSS etc -->
+  {{ range .AlternativeOutputFormats -}}
+    {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
+  {{ end -}}
 
   {{ partial "hook_head_end.html" . }}
 </head>
index 4703ca56ef27fcfa64296f6a59c908132b414a7d..a6cdeae60dade63ce586a526c5dde2ff2f6e5193 100644 (file)
@@ -4,7 +4,7 @@ licenselink = "https://github.com/spf13/hyde/blob/master/LICENSE.md"
 description = "An elegant open source and mobile first theme"
 tags = ["blog", "company"]
 features = ["blog", "themes", "disqus"]
-min_version = 0.21
+min_version = 0.53
 
 [author]
     name = "spf13"