~crocmagnon/blog

ref: bd938138a26f7c54e34d1237c8650c4ff877500f blog/articles/templates/articles/base.html -rw-r--r-- 2.2 KiB
bd938138Gabriel Augendre Add link to deployed commit in footer 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}Home{% endblock %} | Gab's Notes</title>
    <link rel="stylesheet" id="code-light" href="{% static 'code-light.css' %}" type="text/css">
    <link rel="stylesheet" id="code-dark" href="{% static 'code-dark.css' %}" type="text/css">
    <link rel="stylesheet" href="{% static 'style.css' %}" type="text/css">
    <script src="{% static 'toggle-dark-mode.js' %}" async></script>
    <link rel="alternate" type="application/rss+xml" title="Gab's Notes ยป Feed" href="{% url 'complete-feed' %}">
    {% include "articles/favicon.html" %}
</head>
<body>
<nav>
    <a href="{% url 'articles-list' %}">Gab's Notes</a>
    |
    {% if user.is_authenticated %}
        <a href="{% url 'drafts-list' %}">View drafts <span class="pill">{{ drafts_count }}</span></a>
        <a href="{% url 'admin:index' %}">Admin</a>
    {% else %}
        <a href="{% url 'admin:login' %}?next=/">Log in</a>
    {% endif %}
    {% if pages %}
        |
        {% for page in pages %}
            <a href="{% url 'article-detail' slug=page.slug %}">{{ page.title }}</a>
        {% endfor %}
    {% endif %}
</nav>
{% if messages %}
    <div class="messages">
        {% for message in messages %}
            <p class="{{ message.level_tag }}">{{ message|safe }}</p>
        {% endfor %}
    </div>
{% endif %}
<div class="content">
    {% block content %}
    {% endblock %}
</div>

<footer>
    <p>
        Thoughts written here are my own and dont reflect any of my past, present
        or future employer's position.
        The platform behind this blog is <a href="https://git.sr.ht/~crocmagnon/blog">free software</a>.
        This blog and all articles by Gabriel Augendre are licensed under the
        <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a>.
        Code blocks by Gabriel Augendre are licensed under the
        <a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU GENERAL PUBLIC LICENSE version 3</a>.<br>
        Currently deployed version: <a href="{{ git_version_url }}">{{ git_version }}</a>
    </p>
</footer>
</body>
</html>