Update blog theme

This commit is contained in:
Gregory Soutade
2020-03-20 16:48:52 +01:00
parent e029a1fc35
commit f99bea97ef
12 changed files with 700 additions and 838 deletions

View File

@@ -1,15 +1,6 @@
{% extends "base.html" %}
{% block content %}
<a href="/blog/{{ blog.id }}">Home</a> <a href="/category/{{ blog.id }}">Categories</a> <a href="/tag/{{ blog.id }}">Tags</a>
{% if user.is_superuser %}
<form action="/blog/edit/{{ blog.id }}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="edit" value="Edit" /><input type="submit" name="delete" value="Delete" />
</form>
{% endif %}
<br/><br/>
<a href="/post/add/{{ blog.id }}">Add a post</a> <a href="/generate/{{ blog.id }}">Generate blog</a> <a href="/search/generate/{{ blog.id }}">Generate search index</a><br/><br/>
{% if report|length == 0 %}
<b style="color:red">Any engine selected</b><br/><br/>