From 5264c6490139018322eed91188bd7a069c28c759 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 27 Nov 2022 21:55:49 +0100 Subject: [PATCH] Better breadcrumb --- .../1er-quiz/_index.md | 2 +- themes/acoeur/assets/ananke/css/custom.css | 10 +++------- .../layouts/_default/summary-with-image.html | 11 +++++++--- themes/acoeur/layouts/_default/users.html | 3 ++- .../acoeur/layouts/partials/breadcrumb.html | 20 +++++++------------ 5 files changed, 21 insertions(+), 25 deletions(-) diff --git a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md index c91842e..09b7ef1 100644 --- a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md +++ b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md @@ -1,5 +1,5 @@ --- -title: 1ere quiz +title: 1er quiz ac_create: - /pages/1er-quiz/start --- diff --git a/themes/acoeur/assets/ananke/css/custom.css b/themes/acoeur/assets/ananke/css/custom.css index a0d6490..c752c57 100644 --- a/themes/acoeur/assets/ananke/css/custom.css +++ b/themes/acoeur/assets/ananke/css/custom.css @@ -4,21 +4,17 @@ .breadcrumb { display: none; -} -body.author .breadcrumb { - display: initial; -} -.breadcrumb ol { padding: 0; margin-top: 0; } +.with-breadcrumb .breadcrumb { + display: initial; +} .breadcrumb li { display: inline; } .breadcrumb li + li:before { content: ">"; - padding-left: 0.3rem; - padding-right: 0.5rem; } dl { diff --git a/themes/acoeur/layouts/_default/summary-with-image.html b/themes/acoeur/layouts/_default/summary-with-image.html index ec08901..09806d8 100644 --- a/themes/acoeur/layouts/_default/summary-with-image.html +++ b/themes/acoeur/layouts/_default/summary-with-image.html @@ -12,9 +12,14 @@ {{ end }}
- {{ if .IsPage }} - - {{ end }} +
+ + +

diff --git a/themes/acoeur/layouts/_default/users.html b/themes/acoeur/layouts/_default/users.html index f7dead5..7ef7f17 100644 --- a/themes/acoeur/layouts/_default/users.html +++ b/themes/acoeur/layouts/_default/users.html @@ -1,5 +1,6 @@ {{ define "main" }} -
+