2022-12-27 22:31:07 -05:00
|
|
|
<!DOCTYPE html>
|
2022-12-28 11:49:14 -05:00
|
|
|
<html data-theme="{{ .theme }}">
|
2022-12-27 22:31:07 -05:00
|
|
|
<head>
|
2022-12-29 13:06:14 -05:00
|
|
|
<title>{{ .question.Title }}</title>
|
2022-12-27 22:46:31 -05:00
|
|
|
<link rel="stylesheet" href="/static/question.css" />
|
2022-12-28 18:51:14 -05:00
|
|
|
<link rel="stylesheet" href="/static/syntax.css" />
|
2022-12-30 18:18:13 -05:00
|
|
|
<link rel="stylesheet" href="/static/comments.css" />
|
2022-12-27 23:00:54 -05:00
|
|
|
<meta
|
|
|
|
http-equiv="Content-Security-Policy"
|
2022-12-28 00:10:09 -05:00
|
|
|
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src {{ .imagePolicy }};"
|
2022-12-27 23:00:54 -05:00
|
|
|
/>
|
2022-12-29 13:06:14 -05:00
|
|
|
<meta name="description" content="{{ .question.ShortenedBody }}..." />
|
2022-12-29 13:17:50 -05:00
|
|
|
{{ template "sharedHead.html" }}
|
2022-12-27 22:31:07 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="parent">
|
2022-12-28 11:56:17 -05:00
|
|
|
<div class="header">
|
|
|
|
<a href="/" class="logo-link">
|
|
|
|
<img
|
|
|
|
class="logo"
|
|
|
|
src="/static/codecircles.png"
|
|
|
|
alt="4 circles with alternating colors between green and white"
|
|
|
|
/>
|
|
|
|
</a>
|
2022-12-30 18:11:59 -05:00
|
|
|
{{ template "themeSwitcher.html" . }}
|
2022-12-28 11:56:17 -05:00
|
|
|
</div>
|
2022-12-27 22:31:07 -05:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2022-12-29 13:06:14 -05:00
|
|
|
<h1>{{ .question.Title }}</h1>
|
2022-12-27 22:46:31 -05:00
|
|
|
<p class="timestamp">
|
2022-12-29 13:06:14 -05:00
|
|
|
Asked {{ .question.Timestamp }} by
|
2022-12-28 11:33:26 -05:00
|
|
|
<a
|
2022-12-29 13:06:14 -05:00
|
|
|
href="https://stackoverflow.com{{ .question.AuthorURL }}"
|
2022-12-28 11:33:26 -05:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2022-12-29 13:06:14 -05:00
|
|
|
>{{ .question.AuthorName }}</a
|
2022-12-28 11:33:26 -05:00
|
|
|
>.
|
2022-12-27 22:46:31 -05:00
|
|
|
</p>
|
2022-12-27 22:31:07 -05:00
|
|
|
</div>
|
2022-12-29 13:06:14 -05:00
|
|
|
<div class="card-body">{{ .question.Body }}</div>
|
2022-12-29 13:11:33 -05:00
|
|
|
{{ if .question.Comments }}
|
2022-12-29 13:16:16 -05:00
|
|
|
{{ template "comments.html" .question }}
|
2022-12-29 13:11:33 -05:00
|
|
|
{{end}}
|
|
|
|
|
2022-12-27 22:31:07 -05:00
|
|
|
</div>
|
2022-12-28 22:55:30 -05:00
|
|
|
<hr class="post-divider" />
|
2022-12-27 22:46:31 -05:00
|
|
|
<h2>Answers</h2>
|
2022-12-27 22:50:38 -05:00
|
|
|
{{ range $answer := .answers }}
|
2022-12-29 13:06:14 -05:00
|
|
|
<div class="answer">
|
|
|
|
<div
|
|
|
|
class="answer-meta{{ if $answer.IsAccepted }} accepted{{end}}"
|
|
|
|
>
|
|
|
|
{{ if $answer.IsAccepted }} Accepted - {{ end }}
|
|
|
|
{{$answer.Upvotes}} Votes
|
|
|
|
</div>
|
|
|
|
{{ $answer.Body }}
|
|
|
|
<div class="answer-author-parent">
|
|
|
|
<div class="answer-author">
|
|
|
|
Answered {{ $answer.Timestamp }} by
|
|
|
|
<a
|
|
|
|
href="https://stackoverflow.com{{ $answer.AuthorURL }}"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>{{ $answer.AuthorName }}</a
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ if $answer.Comments }}
|
2022-12-29 13:16:16 -05:00
|
|
|
{{ template "comments.html" $answer }}
|
2022-12-29 13:06:14 -05:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2022-12-28 11:33:26 -05:00
|
|
|
<hr class="answer-divider" />
|
2022-12-27 22:50:38 -05:00
|
|
|
{{ end }}
|
2022-12-27 22:31:07 -05:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|