From a640fbc5b541a7b729e6785b9021eb0c437dbdee Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 5 Jun 2023 17:36:39 +0200 Subject: [PATCH] fix: update forked template --- custom_theme/partials/header.html | 137 ++++++++++++++++++++++++------ 1 file changed, 110 insertions(+), 27 deletions(-) diff --git a/custom_theme/partials/header.html b/custom_theme/partials/header.html index 49fabe8..4d74da3 100644 --- a/custom_theme/partials/header.html +++ b/custom_theme/partials/header.html @@ -1,19 +1,61 @@ {#- This file was copied from the Material theme - You can find the file in .venv/lib/python3.10/site-packages/material/partials/header.html + You can find the file in https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/src/partials/header.html -#} + + + {% set class = "md-header" %} {% if "navigation.tabs.sticky" in features %} - {% set class = class ~ " md-header--lifted" %} + {% set class = class ~ " md-header--shadow md-header--lifted" %} +{% elif "navigation.tabs" not in features %} + {% set class = class ~ " md-header--shadow" %} {% endif %} + +
-