diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8f108fd..c7c2ca9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -44,13 +44,13 @@
{{ if isset .Params "date" }}{{ end }}
-{{ if .RSSLink }}
-
+{{ with .OutputFormats.Get "RSS" }}
+
{{ end }}
-{{ if .OutputFormats.Get "json" }}
-
+{{ with .OutputFormats.Get "json" }}
+
{{ end }}