diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 01:05:02 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 01:05:02 +0100 |
commit | dee863b5e0812f95db4caf367983864a74b63ccc (patch) | |
tree | c15dcc000480946a10fec56987d6ee68f34b7e3f /layouts/partials/metadata.html | |
parent | 4b76a856b2841fb197acc982ed168bc52db6ea3d (diff) | |
download | hugo-minimalist-theme-dee863b5e0812f95db4caf367983864a74b63ccc.tar.gz hugo-minimalist-theme-dee863b5e0812f95db4caf367983864a74b63ccc.tar.bz2 hugo-minimalist-theme-dee863b5e0812f95db4caf367983864a74b63ccc.zip |
translate posts listing
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r-- | layouts/partials/metadata.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 668ac20..8679be6 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,13 +1,13 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }} -<div class="f6 lh-copy my-0 ph4 py-2"> +<div class="text-sm my-0 px-8 py-2"> {{ T "author_by" }} — {{ range .Params.authors }} {{ $name := . }} {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} {{ with $.GetPage $path }} {{ if isset .Params "name" }} - <a class="underline color-inherit" href="{{ .RelPermalink }}"> + <a class="underline" href="{{ .RelPermalink }}"> {{- default $name .Params.name -}} </a> {{ else }} @@ -30,17 +30,18 @@ {{ end }} {{ if eq .Section "post" }} - | {{ .ReadingTime }} + | + {{ .ReadingTime }} {{ i18n "minute_read" }} {{ end }} {{ with .GetTerms "tags" }} | - <a href="/tags" class="w3-text-theme px-1"> + <a href="/tags" class="text-lime-500 px-1"> <i class="fas fa-tags"></i> </a> {{ range . }} - <a class="underline color-inherit" href="{{ .RelPermalink }}"> + <a class="underline" href="{{ .RelPermalink }}"> {{- .Title -}} </a> {{ end }} @@ -48,11 +49,11 @@ {{ with .GetTerms "categories" }} | - <a href="/categories" class="w3-text-theme px-1"> + <a href="/categories" class="text-lime-500 px-1"> <i class="fas fa-folder-open"></i> </a> {{ range . }} - <a class="underline color-inherit" href="{{ .RelPermalink }}"> + <a class="underline" href="{{ .RelPermalink }}"> {{- .Title -}} </a> {{ end }} |