From 3d095c16f20df43e3537b15d9bdbfc2c5aaaf273 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Sun, 5 May 2024 15:31:52 -0400 Subject: [PATCH] feat: only show question answers if they exist --- templates/question.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/question.html b/templates/question.html index 8c1ac96..8af2f03 100644 --- a/templates/question.html +++ b/templates/question.html @@ -45,6 +45,7 @@ {{ if .question.Comments }} {{ template "comments.html" .question }} {{end}} + {{ if .answers }}

Answers

@@ -89,6 +90,7 @@ {{end}}
{{ end }} + {{ end }} \ No newline at end of file