feat: article creation

This commit is contained in:
root
2025-10-08 21:30:45 +03:00
parent b11161bce3
commit 2c4f16ce60
10 changed files with 108 additions and 3 deletions

View File

@@ -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 }}">