Configurando um post único no template post.html

This commit is contained in:
Luiz Otávio
2023-04-27 10:48:27 -03:00
parent 822d56db61
commit 5f1f4e36ae
4 changed files with 34 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
{% extends 'global/base.html' %}
{% block texto %} {{ text }} {% endblock texto %}
{% block posts %}
<article class="post single-post">
<header>
<h1 class="post__title">
<a href="{% url 'blog:post' post.id %}">
{{ post.title }}
</a>
</h1>
</header>
<div class="post__body">{{ post.body }}</div>
</article>
{% endblock posts %}