Skip to content

Commit

Permalink
Merge pull request #94 from KIT-MRT/fix_github_pages_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow authored Nov 27, 2024
2 parents aa16b54 + fffe945 commit 0285e0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit 0285e0a

Please sign in to comment.