From 7ccc33b39a5880a1879dbba4543d2b5e915b6f8e Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 28 Nov 2020 09:59:35 +0200 Subject: Create categories and articles listing template --- pydis_site/templates/content/listing.html | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pydis_site/templates/content/listing.html (limited to 'pydis_site/templates') diff --git a/pydis_site/templates/content/listing.html b/pydis_site/templates/content/listing.html new file mode 100644 index 00000000..8c06bccc --- /dev/null +++ b/pydis_site/templates/content/listing.html @@ -0,0 +1,62 @@ +{% extends 'base/base.html' %} +{% load static %} + +{% block title %}{{ category_info.name|default:"Articles" }}{% endblock %} +{% block head %} + + + + +{% endblock %} + +{% block content %} + {% include "base/navbar.html" %} + + + + + + {% if in_category %} + Articles + {% endif %} + {% for item in breadcrumb_items %} + {{ item.name }} + {% endfor %} + {{ category_info.name|default:"Articles" }} + + + + + + + + + {{ category_info.name|default:"Articles" }} + {% for category, data in categories.items %} + + + + + + + + {{ data.name }} + + {{ data.description }} + + {% endfor %} + {% for article, data in content.items %} + + + + + + {{ data.title }} + + {{ data.short_description }} + + {% endfor %} + + + +{% endblock %} -- cgit v1.2.3
{{ data.description }}
{{ data.short_description }}