This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
goddit/templates/threads.html

28 lines
1.1 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
{{define "header"}}
<h1 class="mb-0">Explore threads</h1>
{{end}}
{{define "content"}}
{{range .Threads}}
<div class="card mb-4">
<div class="card-body">
<a href="#" class="d-block card-title text-body mt-1 h5">
{{.Title}}
</a>
<p class="card-text">{{.Description}}</p>
<a href="/threads/{{.ID}}" class="btn btn-primary">Browse Thread</a>
</div>
</div>
{{end}}
{{end}}
{{define "sidebar"}}
<div class="card mb-4">
<div class="card-body">
<h5 class="card-title">Create a new thread</h5>
<p class="card-text">Start a new community on goddit and share experiences.</p>
<a href="/threads/new" class="btn btn-primary btn-block">Create Thread</a>
</div>
</div>
{{end}}