garbagespeak.com/partials/posts.html

36 lines
748 B
HTML
Raw Normal View History

2023-07-25 19:48:30 +00:00
<div class="posts">
{{range .Posts}}
<article class="post on-list">
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">
{{- if .CreatedAt -}}
<time class="post-date">
{{- .CreatedAt.Format "2006-01-02" -}}
</time>
{{- end -}}
2023-07-25 20:32:04 +00:00
{{- with .Metadata.author -}}
2023-07-25 19:48:30 +00:00
<span class="post-author">{{ . }}</span>
{{- end -}}
2023-07-25 20:32:04 +00:00
{{ if .Metadata.tags }}
2023-07-25 19:48:30 +00:00
<span class="">
2023-07-25 20:32:04 +00:00
{{ range .Metadata.tags }}
2023-07-25 19:48:30 +00:00
{{- . -}}&nbsp;
{{ end }}
</span>
{{ end }}
</div>
<div class="post-content">
{{ .Content }}
</div>
</article>
{{end}}
</div>
2023-07-28 01:14:38 +00:00
{{- with .Alert -}}
<div id="alert" remove-me="5s" class="alert">{{ . }}</div>
{{ end }}