feat: article creation
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
<img src="{% static 'logo.svg' %}" />
|
||||
<h1>Всё про IT</h1>
|
||||
</div>
|
||||
{% block write %}
|
||||
{% if not user.is_anonymous %}
|
||||
<a href="/article/new">Написать статью</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<div class="archive">
|
||||
{% for post in posts %}
|
||||
<a class="post-link" href="/article/{{ post.id }}">
|
||||
|
||||
Reference in New Issue
Block a user