reformatted showcase view as grid postlist
This commit is contained in:
parent
3176229a6b
commit
35cdd183eb
|
@ -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%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
{{ if .Site.Params.showcaseDir }}
|
||||
{{ $showcasePosts := where site.RegularPages "Section" "in" .Site.Params.showcaseDir }}
|
||||
<div class="postlist gridView">
|
||||
{{ range (sort $showcasePosts "File.LogicalName") }}
|
||||
{{ if in .Dir .Site.Params.showcaseDir }}
|
||||
<div class="showcaseCard {{if .Site.Params.discreteCards }}discrete{{ end }}">
|
||||
{{ if in .File.Dir .Site.Params.showcaseDir }}
|
||||
<article class="card postlistitem {{ if .Site.Params.discreteCards }}discrete{{ end }}">
|
||||
<div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div>{{ .Content }}</div>
|
||||
</div>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ .Params.image }}" />
|
||||
{{ end }}
|
||||
<div>{{ .Content }}</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<hr />
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue