about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
authorz0li2019-04-27 17:11:18 +0200
committerBjørn Erik Pedersen2019-04-27 20:02:51 +0200
commite36f5799b396ecf7a665b330da8cac5b0b6e2891 (patch)
treeb09ed31f1df075320bfb47dcb7a078bd9dc4a19d /layouts
parentc0cdd0ea1b477246ba9cb9e7123e80535e97ea8f (diff)
downloadhyde-e36f5799b396ecf7a665b330da8cac5b0b6e2891.tar.lz
hyde-e36f5799b396ecf7a665b330da8cac5b0b6e2891.tar.zst
hyde-e36f5799b396ecf7a665b330da8cac5b0b6e2891.zip
Removed deprecated .Hugo and .RSSLink
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index ab68c44..30ff316 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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">
@@ -25,8 +25,10 @@
   <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>