diff --git a/docs/layouts/chrome/header.html b/docs/layouts/chrome/header.html
index d9bfa108a..549e1b34c 100644
--- a/docs/layouts/chrome/header.html
+++ b/docs/layouts/chrome/header.html
@@ -5,5 +5,5 @@
{{ .Title }}
{{ template "chrome/header.includes.html" . }}
- {{ if .RSSLink }}{{ end }}
+ {{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}{{ end }}
diff --git a/docs/layouts/section/commands.html b/docs/layouts/section/commands.html
index ad6f9e396..9a4940eb9 100644
--- a/docs/layouts/section/commands.html
+++ b/docs/layouts/section/commands.html
@@ -13,7 +13,7 @@
This is an index of all commands in rclone.
Docs autogenerated by Cobra.