Просмотр исходного кода

Removed deprecated .Hugo and .RSSLink

z0li 5 лет назад
Родитель
Сommit
e36f5799b3
2 измененных файлов: 6 добавлений и 4 удалений
  1. 5
    3
      layouts/partials/head.html
  2. 1
    1
      theme.toml

+ 5
- 3
layouts/partials/head.html Просмотреть файл

@@ -3,7 +3,7 @@
3 3
 <head>
4 4
   <link href="//gmpg.org/xfn/11" rel="profile">
5 5
   <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
-  {{ .Hugo.Generator }}
6
+  {{ hugo.Generator }}
7 7
 
8 8
   <!-- Enable responsiveness on mobile devices-->
9 9
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -25,8 +25,10 @@
25 25
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
26 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 33
   {{ partial "hook_head_end.html" . }}
32 34
 </head>

+ 1
- 1
theme.toml Просмотреть файл

@@ -4,7 +4,7 @@ licenselink = "https://github.com/spf13/hyde/blob/master/LICENSE.md"
4 4
 description = "An elegant open source and mobile first theme"
5 5
 tags = ["blog", "company"]
6 6
 features = ["blog", "themes", "disqus"]
7
-min_version = 0.21
7
+min_version = 0.53
8 8
 
9 9
 [author]
10 10
     name = "spf13"