Skip to content

Commit 09a3313

Browse files
committed
Added slashes to prevent github redirects
1 parent de752fd commit 09a3313

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# Define custom variables passed over to the templates
1616
template_vars = {
1717
'navbar': [
18-
('', 'Home'),
19-
('about', 'About'),
20-
('quick_start', 'Quick start guide'),
21-
('docs', 'Documentation'),
18+
('/', 'Home'),
19+
('about/', 'About'),
20+
('quick_start/', 'Quick start guide'),
21+
('docs/', 'Documentation'),
2222
]
2323
}
2424

templates/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/_/ /_/ /_/\___/_/ /_/ /_/_/ /_/\____/|__/|__/</pre>
1919
<ul class="navbar">
2020
{% for link, title in navbar %}
21-
<a href={{backlink}}{{ link }}>{{ title }}</a>
21+
<a href="{{ backlink }}{{ link }}">{{ title }}</a>
2222
{%- if not loop.last %}
2323
<pre> | </pre>
2424
{% endif %}

0 commit comments

Comments
 (0)