Files
go-SSG/templates/blog_index_page.html
T

15 lines
297 B
HTML

{{ define "blog_index_page" }}
{{ template "base" . }}
{{ end }}
{{ define "blog_index_content" }}
<h1>Blog Index</h1>
<ul>
{{ range .Posts }}
<li><a href="/blog/{{ .Slug }}/">{{ .Title }}</a><br>{{ .Description }}</li>
{{ else }}
<li>No posts found.</li>
{{ end }}
</ul>
{{ end }}