From 42c5a45fa9c4f6ecb4d09d5f81602b797b89ebdb Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Tue, 27 Dec 2022 15:08:33 +0100 Subject: [PATCH] add blocks to term --- assets/sass/_theme/sections/categories.sass | 6 +++++- assets/sass/_theme/sections/posts.sass | 1 - layouts/categories/list.html | 8 ++++--- layouts/categories/term.html | 23 ++++++++++++++++----- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/assets/sass/_theme/sections/categories.sass b/assets/sass/_theme/sections/categories.sass index e6f6767b..2d3c05e6 100644 --- a/assets/sass/_theme/sections/categories.sass +++ b/assets/sass/_theme/sections/categories.sass @@ -4,4 +4,8 @@ ul.categories a:first-child & + p text-align: right - white-space: nowrap \ No newline at end of file + white-space: nowrap + +.categories__term + main + padding-bottom: $spacing3 \ No newline at end of file diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass index 09fc6868..ced7fcd5 100644 --- a/assets/sass/_theme/sections/posts.sass +++ b/assets/sass/_theme/sections/posts.sass @@ -86,7 +86,6 @@ .lead @include h3 - .post-categories @include list-reset margin: 0 diff --git a/layouts/categories/list.html b/layouts/categories/list.html index 391cccf5..dc40e997 100644 --- a/layouts/categories/list.html +++ b/layouts/categories/list.html @@ -1,8 +1,10 @@ {{ define "main" }} {{ partial "categories/hero-list.html" . }} - <div class="document-content container"> - {{ partial "categories/categories.html" . }} - {{ partial "commons/pagination.html" . }} + <div class="document-content"> + <div class="container"> + {{ partial "categories/categories.html" . }} + {{ partial "commons/pagination.html" . }} + </div> </div> {{ end }} diff --git a/layouts/categories/term.html b/layouts/categories/term.html index be77cfbd..3ad18438 100644 --- a/layouts/categories/term.html +++ b/layouts/categories/term.html @@ -1,11 +1,24 @@ {{ define "main" }} {{ partial "categories/hero-term.html" . }} - <div class=" document-content container"> - {{ partial "categories/chapo.html" (dict - "context" . + <div class="document-content"> + {{ partial "toc/container.html" + (dict + "toc" "toc/default.html" + "context" . + ) + }} + + {{ partial "posts/chapo.html" (dict + "context" . + "block_wrapped" true ) }} - {{ partial "posts/posts.html" . }} - {{ partial "commons/pagination.html" . }} + + {{ partial "blocks/list.html" . }} + + <div class="container"> + {{ partial "posts/posts.html" . }} + {{ partial "commons/pagination.html" . }} + </div> </div> {{ end }} -- GitLab