Usando block para criar blocos de posts e home
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
|
||||
<h1>{% block texto %}{% endblock texto %}</h1>
|
||||
|
||||
<main class="posts">
|
||||
{% include 'global/partials/postblock.html' %}
|
||||
<main class="content">
|
||||
{% block posts %}{% endblock posts %}
|
||||
{% block home %}{% endblock home %}
|
||||
</main>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
{% extends 'global/base.html' %}
|
||||
|
||||
{% block texto %} {{ text }} {% endblock texto %}
|
||||
|
||||
{% block posts %}
|
||||
{% include 'global/partials/postblock.html' %}
|
||||
{% endblock posts %}
|
||||
|
||||
@@ -3,3 +3,7 @@
|
||||
{% block texto %}
|
||||
{{ text }}
|
||||
{% endblock texto %}
|
||||
|
||||
{% block home %}
|
||||
<h1>HOME</h1>
|
||||
{% endblock home %}
|
||||
|
||||
Reference in New Issue
Block a user