Browse Source

Removed deprecated .Hugo and .RSSLink

z0li 5 years ago
parent
commit
e36f5799b3
2 changed files with 6 additions and 4 deletions
  1. 5
    3
      layouts/partials/head.html
  2. 1
    1
      theme.toml

+ 5
- 3
layouts/partials/head.html View File

3
 <head>
3
 <head>
4
   <link href="//gmpg.org/xfn/11" rel="profile">
4
   <link href="//gmpg.org/xfn/11" rel="profile">
5
   <meta http-equiv="content-type" content="text/html; charset=utf-8">
5
   <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
-  {{ .Hugo.Generator }}
6
+  {{ hugo.Generator }}
7
 
7
 
8
   <!-- Enable responsiveness on mobile devices-->
8
   <!-- Enable responsiveness on mobile devices-->
9
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
25
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
25
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
26
   <link rel="shortcut icon" href="/favicon.png">
26
   <link rel="shortcut icon" href="/favicon.png">
27
 
27
 
28
-  <!-- RSS -->
29
-  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
28
+  <!-- RSS etc -->
29
+  {{ range .AlternativeOutputFormats -}}
30
+    {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
31
+  {{ end -}}
30
 
32
 
31
   {{ partial "hook_head_end.html" . }}
33
   {{ partial "hook_head_end.html" . }}
32
 </head>
34
 </head>

+ 1
- 1
theme.toml View File

4
 description = "An elegant open source and mobile first theme"
4
 description = "An elegant open source and mobile first theme"
5
 tags = ["blog", "company"]
5
 tags = ["blog", "company"]
6
 features = ["blog", "themes", "disqus"]
6
 features = ["blog", "themes", "disqus"]
7
-min_version = 0.21
7
+min_version = 0.53
8
 
8
 
9
 [author]
9
 [author]
10
     name = "spf13"
10
     name = "spf13"