implemented database connection for blog, added blog templates, and cresated a bootstrap submodule
This commit is contained in:
14
templates/blog.tmpl
Normal file
14
templates/blog.tmpl
Normal 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" }}
|
||||
Reference in New Issue
Block a user