Skip to content

Commit

Permalink
Non-relative url to tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
arranger1044 committed Nov 11, 2024
1 parent 66d5411 commit e2b6193
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
<div class="trigger">
{% for lesson in site.pages %}
{% if lesson.nav == true %}
<a class="page-link{% if page.url == lesson.url %} active{% endif %}" href="{{ lesson.url | relative_url }}">{{ lesson.title | escape }}</a>
{% if page.url != lesson.url %}
<a class="page-link{% if page.url == lesson.url %} active{% endif %}" href="{{ page.url}}">{{ lesson.title | escape }}</a>
{% else %}
<a class="page-link{% if page.url == lesson.url %} active{% endif %}" href="{{ lesson.url | relative_url }}">{{ lesson.title | escape }}</a>
{% endif %}
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit e2b6193

Please sign in to comment.