Skip to content

Commit

Permalink
Fixes broken links in the GitHub pages menu
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 26, 2024
1 parent 4b5c2ae commit 06f42db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de
{% if page.url == "/" %}
{% assign classes = "active" %}
{% endif %}
<li class="{{ classes }}"><a href="/">🢄 Main</a></li>
<li class="{{ classes }}"><a href={{ "/" | relative_url }}>🢄 Main</a></li>

<!-- Tutorial Home -->
{% assign classes = "" %}
{% if page.url == "/docs/Tutorial.html" %}
{% assign classes = "active" %}
{% endif %}
<li class="{{ classes }}"><a href="/docs/Tutorial.html">⌂ Tutorial Home</a></li>
<li class="{{ classes }}"><a href={{ "/docs/Tutorial.html" | relative_url }}>⌂ Tutorial Home</a></li>

<!-- Tutorial Tasks -->
{% for sitepage in site.pages %}
Expand All @@ -64,7 +64,7 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de
{% if page.url == sitepage.url %}
{% assign classes = "active" %}
{% endif %}
<li class="{{ classes }}"><a href="{{ sitepage.url }}">{{ sitepage.menu_title }}</a></li>
<li class="{{ classes }}"><a href="{{ sitepage.url | relative_url }}">{{ sitepage.menu_title }}</a></li>
{% endif %}
{% endfor %}
</ul>
Expand Down

0 comments on commit 06f42db

Please sign in to comment.