From 42dc062147caf801714e51417948d9c4ce009efa Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 24 Sep 2023 08:46:30 -0700 Subject: [PATCH] Updates to the blog list so far (I've lost track) --- layouts/blog/li_grid_with_date.html | 21 ++++++++++++--------- layouts/blog/list.html | 14 +++++++------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/layouts/blog/li_grid_with_date.html b/layouts/blog/li_grid_with_date.html index 245f559..ed687de 100644 --- a/layouts/blog/li_grid_with_date.html +++ b/layouts/blog/li_grid_with_date.html @@ -1,11 +1,14 @@ -
  • - - - {{ .Title }} -
    - {{ with index (.GetTerms "categories") 0 }} - {{ .LinkTitle }} - {{ end }} -
    +
  • + +

    {{ .Title }}

    + {{ if .Description }} +

    {{ .Description }}

    + {{ else if lt .WordCount 110 }} +
    {{ .Content }}
    + {{ else }} + {{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }} +

    {{ .WordCount }} words

    + {{ end }} + {{ partial "footer_tags.html" . }} {{ partial "development/draft_tag.html" . }}
  • diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 070b633..a7af6da 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -4,14 +4,14 @@ {{ define "main" }} {{- range .Pages.ByDate.GroupByDate "2006" -}} -
    {{ .Key | title }}
    - {{- end -}} {{ end }}