diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-09-29 19:17:13 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-10-01 07:51:11 +0200 |
| commit | 4c41e477e13d37e187c8de4225c7e8056bd9ed28 (patch) | |
| tree | 33a7b51a0ed2c2ae207fc8f89f1454ccb77596a5 /layouts/_default/single.html | |
| parent | 4720b07e9f18915cf1f6466245a92dedd11fdc55 (diff) | |
Internalise theme
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 13aa7d0..80c3bee 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,43 @@ {{ define "main" }} -{{ partial "single/default" . }} -{{ end }}
\ No newline at end of file + +<article class="flex flex-col gap-10"> + <header class="flex flex-col gap-2"> + <h2 class="title-large">{{ .Title }}</h2> + + <div class="meta"> + {{/* Publish date */}} + <time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'> + {{ .PublishDate.Format "02/01/2006" }} - {{ printf (i18n "estimatedReadingTime") .ReadingTime }} + </time> + + {{/* Categories */}} + {{ with (.GetTerms "categories") }} — + {{ range . }} + <a class="categories" href="{{ .RelPermalink }}" alt="{{ .LinkTitle }}"> + {{ .LinkTitle }} + </a> + {{ end }} + {{ end }} + </div> + </header> + + {{ partial "single/table-of-contents" . }} + + <section>{{ .Content | emojify }}</section> + + {{ partial "single/comments/index" . }} + + <footer> + {{ with (.GetTerms "tags") }} + <div class="pb-14 taxonomy-list tags-list"> + {{ range . }} + <a href="{{ .RelPermalink }}" alt="{{ .LinkTitle }}"> + {{ .LinkTitle }} + </a> + {{ end }} + </div> + {{ end }} + </footer> +</article> + +{{ end }} |
