Skip to content

Commit

Permalink
Added slashes to prevent github redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Dec 17, 2023
1 parent de752fd commit 09a3313
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# Define custom variables passed over to the templates
template_vars = {
'navbar': [
('', 'Home'),
('about', 'About'),
('quick_start', 'Quick start guide'),
('docs', 'Documentation'),
('/', 'Home'),
('about/', 'About'),
('quick_start/', 'Quick start guide'),
('docs/', 'Documentation'),
]
}

Expand Down
2 changes: 1 addition & 1 deletion templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/_/ /_/ /_/\___/_/ /_/ /_/_/ /_/\____/|__/|__/</pre>
<ul class="navbar">
{% for link, title in navbar %}
<a href={{backlink}}{{ link }}>{{ title }}</a>
<a href="{{ backlink }}{{ link }}">{{ title }}</a>
{%- if not loop.last %}
<pre> | </pre>
{% endif %}
Expand Down

0 comments on commit 09a3313

Please sign in to comment.