diff --git a/material-overrides/assets/stylesheets/kluster.css b/material-overrides/assets/stylesheets/kluster.css index e3d5fb3f..c7535d9e 100644 --- a/material-overrides/assets/stylesheets/kluster.css +++ b/material-overrides/assets/stylesheets/kluster.css @@ -695,6 +695,16 @@ input.md-search__input[placeholder="Search"]::placeholder { } } +/* --- Breadcrumbs --- */ +.md-path__item:not(:first-child) { + align-items: center; +} + +.md-path__link:hover { + color: var(--md-typeset-a-color); + text-decoration: underline; +} + /* --- Page actions --- */ .page-actions { display: flex; @@ -1268,4 +1278,4 @@ pre:hover > .md-code__nav { /* --- Cookie Consent --- */ .md-consent__inner { background-color: var(--consent-bg-color); -} \ No newline at end of file +} diff --git a/material-overrides/main.html b/material-overrides/main.html index 90937a47..d9361930 100644 --- a/material-overrides/main.html +++ b/material-overrides/main.html @@ -37,6 +37,9 @@ {%- block container -%}
+ {% if "navigation.path" in features %} + {% include "partials/path.html" %} + {% endif %} {% set class = "index-page" if not page.content and not page.is_homepage %}
{% block content %} diff --git a/material-overrides/partials/path.html b/material-overrides/partials/path.html new file mode 100644 index 00000000..0d2c1b31 --- /dev/null +++ b/material-overrides/partials/path.html @@ -0,0 +1,15 @@ +{% import "partials/path-item.html" as item with context %} +{% set hidden = "" %} +{% if page.meta and page.meta.hide %} + {% set hidden = "hidden" if "path" in page.meta.hide %} +{% endif %} +{% set depth = page.ancestors | length %} +{% if depth > 0 %} + +{% endif %} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 75dd6cb4..de07e262 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -25,6 +25,7 @@ theme: - navigation.sections - toc.follow - content.action.edit + - navigation.path palette: - media: "(prefers-color-scheme: dark)" scheme: slate