mirror of
https://github.com/OrcaSlicer/OrcaSlicer_WIKI.git
synced 2026-05-17 00:25:45 +03:00
Fix Home case (#204)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user