Updates to the blog list so far (I've lost track)

This commit is contained in:
Eryn Wells 2023-09-24 08:46:30 -07:00
parent d6e5c2a978
commit 42dc062147
2 changed files with 19 additions and 16 deletions

View file

@ -1,11 +1,14 @@
<li> <li class="post">
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January" }}</time> <time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "Jan 2, 2006" }}</time>
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time> <h2 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Description }}
<div class="category"> <p>{{ .Description }}</p>
{{ with index (.GetTerms "categories") 0 }} {{ else if lt .WordCount 110 }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> <article>{{ .Content }}</article>
{{ else }}
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
<p>{{ .WordCount }} words</p>
{{ end }} {{ end }}
</div> {{ partial "footer_tags.html" . }}
{{ partial "development/draft_tag.html" . }} {{ partial "development/draft_tag.html" . }}
</li> </li>

View file

@ -4,7 +4,7 @@
{{ define "main" }} {{ define "main" }}
{{- range .Pages.ByDate.GroupByDate "2006" -}} {{- range .Pages.ByDate.GroupByDate "2006" -}}
<h5>{{ .Key | title }}</h5> <h1 class="date">{{ .Key | title }}</h1>
<ul> <ul>
{{- range .Pages -}} {{- range .Pages -}}
{{- if or (not .Draft) (not hugo.IsProduction) -}} {{- if or (not .Draft) (not hugo.IsProduction) -}}