From 27315dacdc76e07ee910e31fe65c9357de34bcaf Mon Sep 17 00:00:00 2001
From: ks129 <45097959+ks129@users.noreply.github.com>
Date: Mon, 21 Sep 2020 16:10:56 +0300
Subject: Move guides and categories getting logic to utils for better
testability
---
pydis_site/templates/guides/category.html | 2 +-
pydis_site/templates/guides/guide.html | 16 ++++++++--------
pydis_site/templates/guides/guides.html | 4 ++--
3 files changed, 11 insertions(+), 11 deletions(-)
(limited to 'pydis_site/templates')
diff --git a/pydis_site/templates/guides/category.html b/pydis_site/templates/guides/category.html
index f70a668f..b5cd9ce0 100644
--- a/pydis_site/templates/guides/category.html
+++ b/pydis_site/templates/guides/category.html
@@ -32,7 +32,7 @@
{{ data.title.0 }}
-
{{ data.short_description.0 }}
+ {{ data.shortdescription.0 }}
{% endfor %}
diff --git a/pydis_site/templates/guides/guide.html b/pydis_site/templates/guides/guide.html
index 8f841c53..bab82415 100644
--- a/pydis_site/templates/guides/guide.html
+++ b/pydis_site/templates/guides/guide.html
@@ -4,9 +4,9 @@
{% block title %}{{ metadata.title|first }}{% endblock %}
{% block head %}
-
+
-
+
@@ -21,10 +21,10 @@
@@ -33,13 +33,13 @@
-
{{ metadata.title|first }}
+
{{ guide.metadata.title|first }}
- {{ guide|safe }}
+ {{ guide.guide|safe }}
Last modified: {{ last_modified }}
- Contributors: {{ metadata.contributors|join:", " }}
+ Contributors: {{ guide.metadata.contributors|join:", " }}
diff --git a/pydis_site/templates/guides/guides.html b/pydis_site/templates/guides/guides.html
index 66878048..0e6f2073 100644
--- a/pydis_site/templates/guides/guides.html
+++ b/pydis_site/templates/guides/guides.html
@@ -29,9 +29,9 @@
- {{ data.name.0 }}
+ {{ data.title.0 }}
-
{{ data.short_description.0 }}
+
{{ data.shortdescription.0 }}
{% endfor %}
{% for category, data in categories.items %}
--
cgit v1.2.3