feat: get timestamp and author details

This commit is contained in:
httpjamesm 2022-12-27 22:46:31 -05:00
parent 60f0ec5ce9
commit b7345d39a0
3 changed files with 69 additions and 7 deletions

View file

@ -2,19 +2,22 @@
<html>
<head>
<title>{{ .title }}</title>
<link rel="stylesheet" href="/static/question.css">
<link rel="stylesheet" href="/static/question.css" />
</head>
<body>
<div class="parent">
<div class="card">
<div class="card-header">
<h1>{{ .title }}</h1>
<p class="timestamp">
Asked {{ .timestamp }} by
<a href="{{ .authorURL }}">{{ .author }}</a>.
</p>
</div>
<div class="card-body">
{{ .body }}
</div>
<div class="card-body">{{ .body }}</div>
</div>
<hr />
<h2>Answers</h2>
</div>
</body>
</html>