all repos — gemini-redirect @ 7938b7aa0a8aaa03460a4a09ce2ffc11c253d90b

templates/base.html (view raw)

 1<!DOCTYPE html>
 2<html lang="en">
 3<head>
 4    <meta charset="utf-8">
 5    <meta name="description" content="Official Lonami's website">
 6    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
 7
 8    <title>
 9        {% block title %}
10        Lonami's
11        {% if current_path == '/'%}
12            Site
13        {% elif current_path is starting_with('/blog') %}
14            Blog
15        {% elif current_path is starting_with('/golb') %}
16            Golb
17        {% else %}
18            Confused
19        {% endif %}
20        {% endblock %}
21    </title>
22    {% block css %}
23    <link rel="stylesheet" type="text/css" href="/style.css">
24    {% endblock %}
25</head>
26<body>
27    <nav class="sections">
28        <ul>
29            <li><a href="/" class="{% if current_path == '/' %}selected{% endif %}">lonami's site</a></li>
30            <li><a href="/blog" class="{% if current_path is starting_with('/blog') %}selected{% endif %}">blog</a></li>
31            <li><a href="/golb" class="{% if current_path is starting_with('/golb') %}selected{% endif %}">golb</a></li>
32        </ul>
33    </nav>
34    <main>
35        {% block content %}{% endblock %}
36    </main>
37</body>
38</html>