feat: only show question answers if they exist (#119)
This commit is contained in:
parent
67c09e5e89
commit
c2a9b4368a
@ -45,6 +45,7 @@
|
||||
{{ if .question.Comments }} {{ template "comments.html"
|
||||
.question }} {{end}}
|
||||
</div>
|
||||
{{ if .answers }}
|
||||
<hr class="post-divider" />
|
||||
<div class="answers-header">
|
||||
<h2>Answers</h2>
|
||||
@ -89,6 +90,7 @@
|
||||
{{end}}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user