aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-20 10:50:58 +0300
committerGravatar ks129 <[email protected]>2020-09-20 10:50:58 +0300
commitda171ff951c0e4f20d53a2260a3974dc3027f41c (patch)
tree3cc28c972455571d586e8580ea25d231040c8dba /pydis_site/templates
parentCreate HTML template for single guide view (diff)
Create HTML template for guides category view
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/guides/category.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/pydis_site/templates/guides/category.html b/pydis_site/templates/guides/category.html
new file mode 100644
index 00000000..f70a668f
--- /dev/null
+++ b/pydis_site/templates/guides/category.html
@@ -0,0 +1,41 @@
+{% extends 'base/base.html' %}
+{% load static %}
+
+{% block title %}{{ category_info.name }}{% endblock %}
+{% block head %}
+ <link rel="stylesheet" href="{% static "css/guides/guide.css" %}">
+{% endblock %}
+
+{% block content %}
+ {% include "base/navbar.html" %}
+
+ <section class="breadcrumb-section section">
+ <div class="container">
+ <nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs">
+ <ul>
+ <li><a href="/guides">Guides</a></li>
+ <li class="is-active"><a href="#">{{ category_info.name }}</a></li>
+ </ul>
+ </nav>
+ </div>
+ </section>
+
+ <section class="section">
+ <div class="container">
+ <div class="content">
+ <h1>{{ category_info.name }}</h1>
+ {% for guide, data in guides.items %}
+ <div class="box" style="max-width: 800px;">
+ <span class="icon is-size-4 is-medium">
+ <i class="fab fa-python is-size-3 is-black has-icon-padding" aria-hidden="true"></i>
+ </span>
+ <a href="/guides/category/{{ category_name }}/{{ guide }}/">
+ <span class="is-size-4 has-text-weight-bold">{{ data.title.0 }}</span>
+ </a>
+ <p class="is-italic">{{ data.short_description.0 }}</p>
+ </div>
+ {% endfor %}
+ </div>
+ </div>
+ </section>
+{% endblock %}