aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/post.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-21 15:51:19 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-21 15:51:19 +0200
commitfd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a (patch)
tree205f005a40f2b3fba0a93f7e354414f98100f2ea /layouts/partials/post.html
parentfb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a (diff)
downloadhugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.tar.gz
hugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.tar.bz2
hugo-minimalist-theme-fd2b81e4c3cb7f65ecde85f9436f8eb05ddb9d0a.zip
smaller post rows
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r--layouts/partials/post.html6
1 files changed, 3 insertions, 3 deletions
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 }}