added else to for loop in blog posts

This commit is contained in:
rawleyIfowler
2022-02-15 09:15:57 -06:00
parent 4a56b3f907
commit 88ad8176ee

View File

@@ -1,5 +1,6 @@
{{ template "header.tmpl" . }}
<h2>Blog posts</h2>
{{ range $val := . }}
<div class="post-record">
<div>
@@ -9,6 +10,8 @@
{{ $val.Date }}
</div>
</div>
{{ else }}
<p>No blog posts...</p>
{{ end }}
{{ template "footer_no_banners.tmpl" }}