Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken links in the GitHub pages menu #94

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ tagline: decision-making for robotics
# Support collapsible details/summary sections
markdown: CommonMarkGhPages

# Uncomment this in a local setup, in order to test link compatibility with GitHub Pages
# baseurl: /base

commonmark:
options: ["UNSAFE", "SMART", "FOOTNOTES"]
extensions: ["strikethrough", "autolink", "table", "tagfilter"]
Expand Down
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
Loading