aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-17 18:54:19 -0400
committertdro <tdro@noreply.example.com>2023-10-17 18:54:19 -0400
commit187e4ff528ee5395efb52f20f95d9f9a1c7d83a6 (patch)
treef072cee906a7ec73f838ee8cfad2fe44e1cd8088 /themes/default/layouts/_default
parent95048ae38f44b6510c526631ed9fedd605e1db2c (diff)
downloadcanory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.gz
canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.bz2
canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.zip
themes/default/layouts/_default/home.archives: Pull out time line
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/home.archives.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/themes/default/layouts/_default/home.archives.html b/themes/default/layouts/_default/home.archives.html
index 3b5c94b..3040c86 100644
--- a/themes/default/layouts/_default/home.archives.html
+++ b/themes/default/layouts/_default/home.archives.html
@@ -22,10 +22,10 @@
{{- define "middle" -}}
<archive-list>
- <item-list>
+ <time-line>
{{ range (.Paginator.Pages.GroupByDate "2006") }}
{{ range (first 1 .Pages) }}
- <h1>{{ .Date | time.Format "2006" }}</h1>
+ <h1>{{ .Date | time.Format "2006" }}</h1>
{{ end }}
<ul>
{{ range .Pages }}
@@ -35,17 +35,25 @@
title="{{ partial "meta-title.html" . }}"
href="{{ .Permalink }}#{{ partial "card-id.html" . }}"
>
- <span>
- <code title="{{ .Date | time.Format "Posted: Monday January 2 2006 at 15:04:05 MST" }}">{{ .Date | time.Format "02 Jan" }}</code>
- </span>
- <span>{{ partial "meta-title.html" . }}</span>
- <span>@{{ $author.user }}</span>
+ <code>
+ <time
+ data-type="disabled"
+ datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
+ title="{{ .Date | time.Format "Posted: Monday January 2 2006 at 15:04:05 MST" }}"
+ >
+ {{ .Date | time.Format "02 Jan" }}
+ </time>
+ </code>
+ <section>
+ <h2>{{ partial "meta-title.html" . }}</h2>
+ <p>@{{ or .Params.feed.domain $author.user }}</p>
+ </section>
</a>
</li>
{{ end }}
</ul>
{{ end }}
- </item-list>
+ </time-line>
</archive-list>
{{- end -}}