From 9df5060eaf12ab69ea836847b65dc6c7662c19c2 Mon Sep 17 00:00:00 2001
From: akwizgran <michael@briarproject.org>
Date: Mon, 28 Mar 2022 17:54:00 +0100
Subject: [PATCH] Show RSS icon for news index but not others (eg /hiring).

---
 themes/briar/layouts/_default/section.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/briar/layouts/_default/section.html b/themes/briar/layouts/_default/section.html
index d0638f5..d7703a8 100644
--- a/themes/briar/layouts/_default/section.html
+++ b/themes/briar/layouts/_default/section.html
@@ -1,5 +1,5 @@
 {{ define "main" }}
-  <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }} <a href="/news/index.xml"> <img src="/img/rss-icon.png" class="rss-icon"/></a></h1>
+  <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }} {{ if (eq .Type "news") }} <a href="/news/index.xml"> <img src="/img/rss-icon.png" class="rss-icon"/></a> {{ end }} </h1>
   {{ .Content }}
   {{ range .Pages.ByDate.Reverse }}
     {{ if not .Params.hide }}
-- 
GitLab