This commit is contained in:
Matthieu
2018-06-17 20:14:58 +02:00
47 changed files with 1534 additions and 450 deletions
+3 -3
View File
@@ -10,12 +10,12 @@
<p>{{ blog.summary }}</p>
<section>
<h2>Latest articles</h2>
<h2>{{ "Latest articles" | _ }}</h2>
{% if recents | length < 1 %}
<p>No posts to see here yet.</p>
<p>{{ "No posts to see here yet." | _ }}</p>
{% endif %}
{% if is_author %}
<a href="new" class="button inline-block">New article</a>
<a href="new" class="button inline-block">{{ "New article" | _ }}</a>
{% endif %}
<div class="cards">
{% for article in recents %}
+5 -5
View File
@@ -1,15 +1,15 @@
{% extends "base" %}
{% block title %}
New blog
{{ "New blog" | _ }}
{% endblock title %}
{% block content %}
<h1>Create a blog</h1>
<h1>{{ "Create a blog" | _ }}</h1>
<form method="post">
<label for="title">Title</label>
<label for="title">{{ "Title" | _ }}</label>
<input type="text" id="title" name="title" />
<input type="submit" value="Create blog" />
<input type="submit" value="{{ "Create blog"}}" />
</form>
{% endblock content %}
| _ {% endblock content %}