Fix Home case (#204)

This commit is contained in:
Ian Bassi
2026-04-08 12:56:44 -03:00
committed by GitHub
parent 4a3a1b251c
commit b94b0471a3
3 changed files with 4 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ def generate_nav(base_path: Path) -> list:
# Check for home.md -> becomes index.md
if (base_path / 'home.md').exists():
nav.append(("home", "index.md"))
nav.append(("Home", "index.md"))
# Scan all top-level folders that contain markdown files
top_level_folders = sorted(

View File

@@ -109,7 +109,7 @@ copyright: Copyright © 2022-2026 Li Jiang. All rights reserved.
# Navigation structure based on home.md
nav:
- home: index.md
- Home: index.md
- Calibration:
- "Calibration Guide": calibration/calibration_guide.md
- "Adaptive Pressure Advance": calibration/adaptive_pressure_advance_calib.md

View File

@@ -26,9 +26,9 @@
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
{% if nav.homepage %}
<a href="{{ nav.homepage.url|url }}" style="color: inherit; text-decoration: none;" title="Return to wiki homepage">Home</a>
<a href="{{ nav.homepage.url|url }}" style="color: inherit; text-decoration: none;" title="Return to wiki homepage">home</a>
{% else %}
<a href="index.html" style="color: inherit; text-decoration: none;" title="Return to wiki homepage">Home</a>
<a href="index.html" style="color: inherit; text-decoration: none;" title="Return to wiki homepage">home</a>
{% endif %}
</span>
</div>