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/partials/list/default.html | |
| parent | 4720b07e9f18915cf1f6466245a92dedd11fdc55 (diff) | |
Internalise theme
Diffstat (limited to 'layouts/partials/list/default.html')
| -rw-r--r-- | layouts/partials/list/default.html | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html index a965ce5..f3fd20e 100644 --- a/layouts/partials/list/default.html +++ b/layouts/partials/list/default.html @@ -1,11 +1,28 @@ <article class="flex flex-col gap-1"> - <h1 class="text-xl font-bold hover:underline"> <a href=" {{ .Permalink }} ">{{ .Title }}</a></h1> - <div class="text-gray-600"> + <h1> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h1> + + <span class="date"> + <time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'> + {{ .PublishDate.Format "02/01/2006" }} + </time> + </span> + + <div class="description"> {{ if .Params.description }} - {{ .Params.description }} - {{ else if .Summary }} - {{ .Summary }} + {{ .Params.description }} + {{ else if .Summary }} + {{ .Summary }} {{ end }} - </div> - <div class="mt-2"><a class="inline-flex gap-2 text-sm font-semibold items-center text-emerald-700 hover:text-emerald-600" href="{{ .Permalink }}">Read This Article <span class="w-4 h-4 stroke-2">{{ partial "handler/svg" "arrow-right" }}</span> </a> </div> -</article>
\ No newline at end of file + </div> + + <div class="mt-2"> + <a class="read-more" href="{{ .Permalink }}"> + {{ i18n "readMore" }} + <span class="w-4 h-4 stroke-2"> + {{ partial "utils/icon" "arrow-right" }} + </span> + </a> + </div> +</article> |
