implemented database connection for blog, added blog templates, and cresated a bootstrap submodule

This commit is contained in:
rawleyIfowler
2022-02-13 14:04:31 -06:00
parent f5383f27c7
commit 2227a2473d
12 changed files with 182 additions and 20 deletions

14
templates/blog.tmpl Normal file
View File

@@ -0,0 +1,14 @@
{{ template "header.tmpl" . }}
<h2>Blog posts</h2>
{{ range $val := . }}
<div class="post-record">
<div>
<a href="/blog/post/{{ $val.Url }}">{{ $val.Title }}</a>
</div>
<div>
{{ $val.Date }}
</div>
</div>
{{ end }}
{{ template "footer.tmpl" }}