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"
|
{{ if .question.Comments }} {{ template "comments.html"
|
||||||
.question }} {{end}}
|
.question }} {{end}}
|
||||||
</div>
|
</div>
|
||||||
|
{{ if .answers }}
|
||||||
<hr class="post-divider" />
|
<hr class="post-divider" />
|
||||||
<div class="answers-header">
|
<div class="answers-header">
|
||||||
<h2>Answers</h2>
|
<h2>Answers</h2>
|
||||||
@ -89,6 +90,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user