From c2a9b4368a2a4b8b4cec5923cafe7b8dd1ef5fcf Mon Sep 17 00:00:00 2001 From: httpjamesm <51917118+httpjamesm@users.noreply.github.com> Date: Sun, 5 May 2024 15:40:01 -0400 Subject: [PATCH] feat: only show question answers if they exist (#119) --- 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