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/project | |
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/project')
-rw-r--r-- | layouts/project/single.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/project/single.html b/layouts/project/single.html index eacb6d1..c48a2cf 100644 --- a/layouts/project/single.html +++ b/layouts/project/single.html @@ -1,28 +1,28 @@ {{- define "main" -}} - <header class="mw7 center"> - <h2 class="baskerville f2 lh-title mv3 ph1"> + <header class="max-w-screen-md mx-auto"> + <h2 class="baskerville f2 lh-title my-4 px-1"> {{ .Title }} </h2> {{ with .Params.subtitle }} - <h3 class="f3 baskerville mv3 pa1">{{ . }}</h3> + <h3 class="f3 baskerville my-4 p-1">{{ . }}</h3> {{ end }} {{ partial "meta_links.html" . }} {{ partial "leading_image.html" . }} </header> - <div class="main-content mw7 center lh-copy f5 f4-ns ph1"> + <div class="main-content max-w-screen-md mx-auto lh-copy f5 f4-ns px-1"> {{ .Content }} </div> - <div class="mw7 center ph1"> + <div class="max-w-screen-md mx-auto px-1"> {{ $page := . }} {{ $project := .File.ContentBaseName }} {{ $items := where (where site.RegularPages "Type" "post") ".Params.projects" "intersect" (slice $project) }} {{ $count := len $items }} {{ if ge $count 1 }} - <h2 class="f2 fw3 ma0">Related Posts</h2> + <h2 class="f2 fw3 m-0">Related Posts</h2> {{ range $index, $item := $items }} {{ partial "post.html" . }} {{ end }} @@ -31,7 +31,7 @@ {{ $items := where (where site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }} {{ $pubs_len := len $items }} {{ if ge $pubs_len 1 }} - <h2 class="f2 fw3 ma0">Related Publications</h2> + <h2 class="f2 fw3 m-0">Related Publications</h2> {{ range $index, $item := $items }} {{ partial "post.html" . }} {{ end }} @@ -40,7 +40,7 @@ {{ $items := where (where site.RegularPages "Type" "event") ".Params.projects" "intersect" (slice $project) }} {{ $talks_len := len $items }} {{ if ge $talks_len 1 }} - <h2 class="f2 fw3 ma0">Related Talks</h2> + <h2 class="f2 fw3 m-0">Related Talks</h2> {{ range $index, $item := $items }} {{ partial "post.html" . }} {{ end }} |