feat: parse accepted answer and add tag

This commit is contained in:
httpjamesm 2022-12-27 23:00:54 -05:00
parent f1d22a713f
commit 010bd290af
3 changed files with 25 additions and 2 deletions

View file

@ -3,6 +3,10 @@
<head>
<title>{{ .title }}</title>
<link rel="stylesheet" href="/static/question.css" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; style-src 'self'; script-src 'none'; img-src https:;"
/>
</head>
<body>
<div class="parent">
@ -19,8 +23,8 @@
<hr />
<h2>Answers</h2>
{{ range $answer := .answers }}
<div class="answer">{{ $answer }}</div>
<hr class="answer-divider" />
<div class="answer">{{ $answer }}</div>
<hr class="answer-divider" />
{{ end }}
</div>
</body>