about summary refs log tree commit diff stats
path: root/layouts/_default
diff options
context:
space:
mode:
authorAlan Pearce2020-01-06 21:14:51 +0100
committerAlan Pearce2020-01-06 21:14:51 +0100
commit6394af8cf6c1fc3315312cd5106725e70cbd0764 (patch)
treec7f3de242b86de5070b8a50532da5e9e53d24796 /layouts/_default
parentb85fdab7fd6bfd5abbc9f57358dd23917f5affa8 (diff)
downloadhugo-xmin-6394af8cf6c1fc3315312cd5106725e70cbd0764.tar.lz
hugo-xmin-6394af8cf6c1fc3315312cd5106725e70cbd0764.tar.zst
hugo-xmin-6394af8cf6c1fc3315312cd5106725e70cbd0764.zip
Add support for alternative output formats (e.g. RSS)
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 53c4d9f..0435195 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,6 +5,9 @@
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>{{ .Title }} | {{ .Site.Title }}</title>
     <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
+    {{ range .AlternativeOutputFormats -}}
+      {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
+    {{ end -}}
   </head>
 
   <body>