Changeset View
Changeset View
Standalone View
Standalone View
blog/templates/blog/post_list.html
| {% extends 'common/base.html' %} | {% extends 'common/base.html' %} | ||||
| {% block title_prepend %}Blog - {% endblock title_prepend %} | {% block title_prepend %}Blog - {% endblock title_prepend %} | ||||
| {% block meta %} | {% block meta %} | ||||
| {% with title="Blog" description="Follow the latest updates from the Blender Cloud." %} | {% with title="Blog" description="Follow the latest updates from the Blender Cloud." %} | ||||
| {% include 'common/components/meta.html' %} | {% include 'common/components/meta.html' %} | ||||
| {% endwith %} | {% endwith %} | ||||
| {% endblock %} | {% endblock %} | ||||
| {% block content %} | {% block content %} | ||||
| <div class="container-xl pt-4"> | <div class="container-xl pt-4"> | ||||
| {% include "common/components/simple_header.html" with title="Blog" subtitle="Follow the latest updates from the Blender Cloud." %} | {% include "common/components/simple_header.html" with title="Blog" subtitle="Follow the latest updates from the Blender Cloud." %} | ||||
| <div class="row justify-content-center mb-3"> | <div class="row justify-content-center mb-3"> | ||||
| <div class="col-auto text-center"> | <div class="col-auto text-center"> | ||||
| {% include "common/components/navigation/pagination.html" %} | {% include "common/components/navigation/pagination.html" %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="row"> | <div class="row"> | ||||
| {% for post in posts %} | {% for post in posts %} | ||||
| {% if post.is_published or user.is_superuser %} | {% if post.is_published or user.is_superuser %} | ||||
| {% include 'blog/card_blog.html' %} | {% include 'blog/card_blog.html' %} | ||||
| {% endif %} | {% endif %} | ||||
| {% endfor %} | {% endfor %} | ||||
| </div> | </div> | ||||
| <div class="row justify-content-center mb-4"> | <div class="row justify-content-center mb-4"> | ||||
| <div class="col-auto text-center"> | <div class="col-auto text-center"> | ||||
| {% include "common/components/navigation/pagination.html" %} | {% include "common/components/navigation/pagination.html" %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {% endblock content %} | {% endblock content %} | ||||