Skip to content

Commit

Permalink
Relative urls
Browse files Browse the repository at this point in the history
  • Loading branch information
arranger1044 committed Nov 11, 2024
1 parent e2b6193 commit 6efe957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<div class="trigger">
{% for lesson in site.pages %}
{% if lesson.nav == true %}
{% if page.url != lesson.url %}
<a class="page-link{% if page.url == lesson.url %} active{% endif %}" href="{{ page.url}}">{{ lesson.title | escape }}</a>
{% if lesson.urlref %}
<a class="page-link{% if page.url == lesson.url %} active{% endif %}" href="{{lesson.urlref}}">{{ 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 %}
Expand Down
2 changes: 1 addition & 1 deletion tutorial.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: tutorial
nav: true
url: https://april-tools.github.io/aaai25-tf-pc-tutorial/
urlref: https://april-tools.github.io/aaai25-tf-pc-tutorial/
---

0 comments on commit 6efe957

Please sign in to comment.