diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-05 23:44:45 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-05 23:45:00 +0100 |
commit | 4b76a856b2841fb197acc982ed168bc52db6ea3d (patch) | |
tree | bb92327990d20b262dca7f597453c8ae7bfee16d /layouts/partials/post.html | |
parent | f9e5452a0046e6e47425f0c58d438d0f573fece9 (diff) | |
download | hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.gz hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.bz2 hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.zip |
add tailwind and do some replacements
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r-- | layouts/partials/post.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index b610347..637381b 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,6 +1,6 @@ -<article class="pv2 bt bb b--black-10"> +<article class="py-2 bt bb b--black-10"> {{ partial "meta_links.html" . }} - <a class="db link dim near-black" href="{{ .RelPermalink }}"> + <a class="block dim near-black" href="{{ .RelPermalink }}"> <div class="cf"> {{ $image := "" }} {{ if (.Resources.ByType "image").GetMatch "featured*" }} @@ -9,7 +9,7 @@ {{ $image = resources.Get (index .Params.images 0) }} {{ end }} {{ with $image }} - <div class="fl-ns mb4 mb0-ns pr3-ns"> + <div class="fl-ns mb4 mb-0-ns pr3-ns"> <img src="{{ if ne .MediaType.SubType "svg" }} {{ $image := .Fill (default "150x150" $.Params.thumbnail_size) }} @@ -17,13 +17,13 @@ {{ else }} {{ $image.RelPermalink }} {{ end }}" - class="mw-20-ns db center" + class="mw-20-ns block mx-auto" loading="lazy" alt="" /> </div> {{ end }} - <h3 class="f3 baskerville mv1 lh-title">{{ .Title }}</h3> + <h3 class="f3 baskerville my-1 lh-title">{{ .Title }}</h3> <div class="f5 lh-copy"> <!-- {{ .Summary }} --> {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} |