Finishing card layout

This commit is contained in:
2020-06-11 14:26:55 +01:00
parent 4c6e97ff5e
commit bd8888720f
4 changed files with 6 additions and 9 deletions

View File

@@ -42,10 +42,7 @@
<!-- <div class="container-fluid" style="padding-left: 15%; padding-right: 15%;"> -->
<div class="container">
<div class="row d-flex justify-content-center justify-content-md-between align-content-between">
{{ range first 1 (after 1 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)) }}
{{ .Render "card" }}
{{ end }}
{{ range first 2 (after 2 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)) }}
{{ range first 3 (after 1 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)) }}
{{ .Render "card" }}
{{ end }}
</div>

View File

@@ -1,4 +1,4 @@
<div class="d-flex flex-column card-regular card-regular-width my-2 my-md-5 px-0">
<div class="d-flex flex-column card-regular card-regular-width my-2 my-md-5 px-0 align-items-stretch">
{{ $page := . }}
{{- with .Resources.Match "images/banner.svg" -}}
{{ range . }}
@@ -16,7 +16,7 @@
<p>{{ $page.Summary | truncate 200 }}</p>
<div>
{{- with $page.Params.tags -}}
<div class="d-flex justify-content-start">
<div class="d-flex justify-content-start align-items-stretch">
<div class="tags">
{{- range . -}}
<a class="badge badge-dark mr-2" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">