Skip to content

Commit

Permalink
hide navigation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Oct 24, 2024
1 parent 047534d commit 514d67d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ extra:
link: https://github.com/PlasmaControl

hooks:
- src/assets/hooks/archive_and_category_pages.py
- src/assets/hooks/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
def on_page_markdown(markdown, *, page, config, files):
if isinstance(page, Archive) or isinstance(page, Category):
page.meta["hide"] = ["toc"]

if "hide" in page.meta:
page.meta["hide"].append("navigation")
else:
page.meta["hide"] = ["navigation"]
1 change: 0 additions & 1 deletion src/gallery.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
toc_depth: 0
hide:
- navigation
- toc
disable_comments: true
---
Expand Down
1 change: 0 additions & 1 deletion src/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
hide:
- toc
- navigation
title: Home
---

Expand Down
2 changes: 0 additions & 2 deletions src/members.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
toc_depth: 2
hide:
- navigation
disable_comments: true
---

Expand Down
2 changes: 0 additions & 2 deletions src/publications.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
hide:
- navigation
disable_comments: true
toc_depth: 1
---
Expand Down
1 change: 0 additions & 1 deletion src/research/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
hide:
- toc
- navigation
disable_comments: true
---

Expand Down

0 comments on commit 514d67d

Please sign in to comment.