This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/templates/articles/base.html

34 lines
1,015 B
HTML
Raw Normal View History

2020-08-14 15:53:42 +02:00
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
2020-08-17 16:13:30 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-08-17 13:30:41 +02:00
<title>{% block title %}Home{% endblock %} | Gab's Notes</title>
2020-08-14 15:53:42 +02:00
<link rel="stylesheet" href="{% static 'style.css' %}" type="text/css">
2020-08-18 08:17:39 +02:00
<link rel="alternate" type="application/rss+xml" title="Gab's Notes » Feed" href="{% url 'complete-feed' %}">
2020-08-14 15:53:42 +02:00
</head>
<body>
2020-08-16 18:15:37 +02:00
<nav>
<a href="{% url 'articles-list' %}">Gab's Notes</a>
2020-08-17 13:19:41 +02:00
|
2020-08-16 18:15:37 +02:00
{% if user.is_authenticated %}
2020-08-16 19:24:31 +02:00
<a href="{% url 'drafts-list' %}">View drafts</a>
2020-08-17 09:57:24 +02:00
<a href="{% url 'admin:index' %}">Admin</a>
2020-08-17 13:19:41 +02:00
{% else %}
<a href="{% url 'admin:login' %}?next=/">Log in</a>
2020-08-17 09:57:24 +02:00
{% endif %}
{% if pages %}
|
{% for page in pages %}
<a href="{% url 'article-detail' slug=page.slug %}">{{ page.title }}</a>
{% endfor %}
2020-08-16 18:15:37 +02:00
{% endif %}
</nav>
2020-08-14 15:53:42 +02:00
<div class="content">
{% block content %}
{% endblock %}
</div>
</body>
</html>