diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-21 15:51:19 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-21 15:51:19 +0200 |
commit | fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a (patch) | |
tree | 205f005a40f2b3fba0a93f7e354414f98100f2ea /layouts | |
parent | fb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a (diff) | |
download | hugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.tar.gz hugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.tar.bz2 hugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.zip |
smaller post rows
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/meta_links.html | 23 | ||||
-rw-r--r-- | layouts/partials/post.html | 6 |
3 files changed, 18 insertions, 13 deletions
diff --git a/layouts/index.html b/layouts/index.html index 2f9d8ff..c10f2ec 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ {{ define "main" }} {{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }} <div class="stripe-dark"> - <div class="mw7 center pv2"> + <div class="mw7 center pa1"> <h2 id="{{ anchorize .Title | safeURL }}" class="baskerville lh-title f2" diff --git a/layouts/partials/meta_links.html b/layouts/partials/meta_links.html index 00afc71..1072820 100644 --- a/layouts/partials/meta_links.html +++ b/layouts/partials/meta_links.html @@ -1,10 +1,15 @@ -{{ range $key, $val := .Params.meta_links }} - <a - class="fr f6 link ba br3 ma2 ph2 pv1 dib w3-text-theme w3-hover-theme ttu" - href="{{ . }}" - target="_blank" - rel="noopener" - > - {{ $key }} - </a> +{{ with .Params.meta_links }} + <div class="cf ph4"> + {{ range $key, $val := . }} + <a + class="fr f6 link ba br3 ma2 ph2 pv1 w3-text-theme w3-hover-theme ttu" + href="{{ . }}" + target="_blank" + rel="noopener" + > + {{ $key }} + </a> + {{ end }} + <div></div> + </div> {{ end }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 768755d..0d80db9 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,7 +1,6 @@ -<article class="pv4 bt bb b--black-10"> +<article class="pv2 bt bb b--black-10"> {{ partial "meta_links.html" . }} <a class="db no-underline dim near-black" href="{{ .RelPermalink }}"> - <h3 class="f3 baskerville mt0 lh-title">{{ .Title }}</h3> <div class="cf"> {{ $image := "" }} {{ if (.Resources.ByType "image").GetMatch "featured*" }} @@ -13,7 +12,7 @@ <div class="fl-ns mb4 mb0-ns pr3-ns"> <img src="{{ if ne .MediaType.SubType "svg" }} - {{ $image := .Fill (default "320x210" $.Params.thumbnail_size) }} + {{ $image := .Fill (default "150x150" $.Params.thumbnail_size) }} {{ $image.RelPermalink }} {{ else }} {{ $image.RelPermalink }} @@ -22,6 +21,7 @@ /> </div> {{ end }} + <h3 class="f3 baskerville mv1 lh-title">{{ .Title }}</h3> <div class="f5 lh-copy"> <!-- {{ .Summary }} --> {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} |