diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2022-01-01 21:03:20 +0100 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2022-01-01 21:03:20 +0100 |
commit | 113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch) | |
tree | 7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/partials/post.html | |
parent | e34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff) | |
download | hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2 hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip |
Import new minimalist design
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r-- | layouts/partials/post.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html new file mode 100644 index 0000000..8eaadee --- /dev/null +++ b/layouts/partials/post.html @@ -0,0 +1,20 @@ +<article class="mw7 center pv4 ph3"> +<a class="db no-underline grow" href= "{{ .RelPermalink }}"> + <h3 class="f3 baskerville mt0 lh-title near-white">{{.Title }}</h3> + <div class="cf"> + {{ if isset .Params "image" }} + {{ $image := resources.Get .Params.image }} + {{ $image := $image.Resize (default "320x" .Params.thumbnail_size) }} + <div class="fl-ns mb4 mb0-ns pr3-ns"> + <img src="{{ $image.RelPermalink }}" class="db center"> + </div> + {{ end }} + <div class="f5 lh-copy near-white"> + {{ .Summary }} + </div> + </div> +</a> +{{ if isset .Params "metadata" }} +{{ partial "metadata.html" . }} +{{ end }} +</article> |