The base path is an absolute path, so it should always start with /. Whenever it is used, it must also always be followed by at least one /, so baking that into the value makes sense. Finally, we can now deduplicate the / in case the base path is the root.
25 lines
753 B
HTML
25 lines
753 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>{% block title %}{% endblock %} - {{ base.repo_name }}</title>
|
|
<link rel="icon" href="{{ base.root }}logo.svg">
|
|
<link rel="stylesheet" href="{{ base.root }}base.css" />
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
<nav>
|
|
<a href="{{ base.root }}" {% if base.current=="index" %} class="current" {% endif %}>
|
|
<img src="{{ base.root }}logo.svg" alt="">{{ base.repo_name }}
|
|
</a>
|
|
<a href="{{ base.root }}queue/" {% if base.current=="queue" %} class="current" {% endif %}>
|
|
queue
|
|
</a>
|
|
</nav>
|
|
{% block body %}{% endblock %}
|
|
</body>
|
|
|
|
</html>
|