From 355d9c6e15bf25708bc3cf89022d748203c20158 Mon Sep 17 00:00:00 2001
From: akwizgran <michael@briarproject.org>
Date: Mon, 28 Mar 2022 17:48:20 +0100
Subject: [PATCH] Show date and author for news pages only.

---
 themes/briar/layouts/_default/single.html | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/themes/briar/layouts/_default/single.html b/themes/briar/layouts/_default/single.html
index d32a1bb..d3002cb 100644
--- a/themes/briar/layouts/_default/single.html
+++ b/themes/briar/layouts/_default/single.html
@@ -1,11 +1,13 @@
 {{ define "main" }}
 <h2>{{ .Title }}</h2>
 <p>
-    {{.Date.Format "January 2, 2006"}} by
-    {{ if (isset .Params "author") }}
-      {{ markdownify .Params.author }}
-    {{ else }}
-      The Briar Team
+    {{ if (eq .Type "news") }}
+      {{.Date.Format "January 2, 2006"}} by
+      {{ if (isset .Params "author") }}
+        {{ markdownify .Params.author }}
+      {{ else }}
+        The Briar Team
+      {{ end }}
     {{ end }}
 </p>
 {{ .Content }}
-- 
GitLab