From 9c67aca368f68ab916ff61caa36e0de69c43dec3 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Fri, 5 Mar 2021 21:04:55 +0100 Subject: [PATCH] feat: add optional breadcrumb trail --- assets/scss/layouts/_pages.scss | 5 +++++ config/_default/params.toml | 1 + layouts/docs/single.html | 11 ++++++++++- layouts/partials/main/breadcrumb.html | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/main/breadcrumb.html diff --git a/assets/scss/layouts/_pages.scss b/assets/scss/layouts/_pages.scss index eaa75de75..8938dbc19 100644 --- a/assets/scss/layouts/_pages.scss +++ b/assets/scss/layouts/_pages.scss @@ -38,3 +38,8 @@ p.meta { margin-top: 0.5rem; font-size: $font-size-base; } + +.breadcrumb { + margin-top: 2.25rem; + font-size: $font-size-base; +} diff --git a/config/_default/params.toml b/config/_default/params.toml index 159447efc..3fa4b6dd0 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -53,3 +53,4 @@ editPage = false flexSearch = true darkMode = true bootStrapJs = false + breadCrumb = false diff --git a/layouts/docs/single.html b/layouts/docs/single.html index f326d5053..54e581bf4 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -3,7 +3,7 @@
+
{{ if ne .Params.toc false -}}