Move li_grid_with_date template to _default so terms and blog can use it

This commit is contained in:
Eryn Wells 2023-12-16 09:25:35 -08:00
parent b9265b5793
commit b876f5a0cd

View file

@ -0,0 +1,21 @@
<article class="post">
<header>
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "Jan 2, 2006" }}</time>
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</header>
{{ if .Description }}
<p>{{ .Description }}</p>
{{ else if lt .WordCount 110 }}
{{ .Content }}
{{ else }}
{{ if not .Draft }}
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
{{ end }}
<p>{{ .WordCount }} words</p>
{{ end }}
{{ partial "footer_tags.html" . }}
{{ partial "development/draft_tag.html" . }}
</article>