From 35cdd183eb49e3290dd6c2e9fc67b6cd92d2eac7 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 6 Jul 2021 23:12:27 +0200 Subject: [PATCH] reformatted showcase view as grid postlist --- assets/scss/style.scss | 25 ------------------------- layouts/partials/showcase.html | 26 ++++++++++++++------------ 2 files changed, 14 insertions(+), 37 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 3118623..31f26de 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -868,28 +868,3 @@ header.jumbotronContainer { } } {{ end }} - -.showcaseCard { - @extend article; - @extend .card; - margin-bottom: 24px; - display: flex; - flex-direction: row-reverse; - flex-wrap: wrap; - justify-content: center; - padding: 12px !important; - - > img { - flex-basis: 30%; - width: 300px; - height: 250px; - object-fit: cover; - margin: 12px; - {{ if eq .Site.Params.navtype "circles" }} - border-radius: $border_radius; - {{ end }} - } - > div { - flex-basis: 60%; - } -} diff --git a/layouts/partials/showcase.html b/layouts/partials/showcase.html index afca8f0..3197012 100644 --- a/layouts/partials/showcase.html +++ b/layouts/partials/showcase.html @@ -1,17 +1,19 @@ {{ if .Site.Params.showcaseDir }} {{ $showcasePosts := where site.RegularPages "Section" "in" .Site.Params.showcaseDir }} - {{ range (sort $showcasePosts "File.LogicalName") }} - {{ if in .Dir .Site.Params.showcaseDir }} -
-
-

{{ .Title }}

-
{{ .Content }}
-
- {{ if .Params.image }} - - {{ end }} -
+
+ {{ range (sort $showcasePosts "File.LogicalName") }} + {{ if in .File.Dir .Site.Params.showcaseDir }} +
+
+

{{ .Title }}

+ {{ if .Params.image }} + + {{ end }} +
{{ .Content }}
+
+
+ {{ end }} {{ end }} - {{ end }} +

{{ end }}