progressed on mosaic layout

This commit is contained in:
Naej Doree
2020-07-08 00:23:48 +02:00
parent 31ea01f83d
commit 141fc9c42c
10 changed files with 81 additions and 38 deletions

View File

@@ -5,8 +5,8 @@
</section>
<section class="flex-ns flex-wrap justify-around mt5">
{{ range .Paginator.Pages }}
<div class="relative w-100 w-30-l mb4 bg-white">
{{- partial "summary.html" . -}}
<div class="relative w-100 w-30-l mb4">
{{ .Render "summary" }}
</div>
{{ end }}
</section>

View File

@@ -1,8 +1,11 @@
{{/* used to show posts */}}
{{ define "header" }}
{{/* We can override any block in the baseof file be defining it in the template */}}
{{ partial "page-header.html" . }}
{{ end }}
{{/* used to show posts */}}
{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
<article class="flex flex-wrap center light-gray flex-column tc flex-align:center">

View File

@@ -4,11 +4,12 @@
<p>{{i18n "taxonomyPageList" .}}</p>
</div>
</article>
<div class="mw8 center">
<div class="center">
<section class="flex-ns flex-wrap justify-around mt5">
{{/* List of articles with the tag */}}
{{ range .Pages }}
<div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }}
<div class="relative w-100 w-30-l mb4">
{{ .Render "summary" }}
</div>
{{ end }}
</section>