diff --git a/_includes/header.html b/_includes/header.html index c4ebd51..61e00fe 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,23 +1,4 @@ - {%- assign default_paths = site.pages | map: "path" -%} diff --git a/_layouts/default.html b/_layouts/default.html index adf6b4b..3ed5ebb 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -173,7 +173,23 @@ {%- include header.html -%} +header { + position: fixed; + top: 0; + width: 100%; + z-index: 1000; /* Ensure it stays above other content */ + background-color: #fff; /* or any background you prefer */ + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: adds a shadow to make it stand out */ +} +body { + padding-top: 60px; /* Adjust according to your header's height */ +} + +body.dark-mode header { + background-color: #333; + color: white; +} Sommaire