Guides
Made by us, for you
-- cgit v1.2.3 From d9c329b5815503baea8dc5f6fa951177f6ffd697 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 28 Nov 2020 10:01:28 +0200 Subject: Update guides route in resources.html --- pydis_site/templates/resources/resources.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pydis_site/templates/resources/resources.html') diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html index 5be090dd..2dc88a8c 100644 --- a/pydis_site/templates/resources/resources.html +++ b/pydis_site/templates/resources/resources.html @@ -15,7 +15,7 @@Resources
Guides
Made by us, for you
-- cgit v1.2.3 From 367ba267c4dbc6d406922f80bc4337ee9a0139a0 Mon Sep 17 00:00:00 2001 From: kosayoda tag, since highlight.js does not style
- * backgrounds of tags but bulma does, resulting in a weird off-white
- * border.
- */
- background-color: #282c34;
-}
diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css
new file mode 100644
index 00000000..f46d6b15
--- /dev/null
+++ b/pydis_site/static/css/content/page.css
@@ -0,0 +1,16 @@
+.breadcrumb-section {
+ padding: 1rem;
+}
+
+i.has-icon-padding {
+ padding: 0 10px 25px 0;
+}
+
+pre {
+ /*
+ * Style it the same as the tag, since highlight.js does not style
+ * backgrounds of tags but bulma does, resulting in a weird off-white
+ * border.
+ */
+ background-color: #282c34;
+}
diff --git a/pydis_site/templates/content/article.html b/pydis_site/templates/content/article.html
deleted file mode 100644
index 69d01a8d..00000000
--- a/pydis_site/templates/content/article.html
+++ /dev/null
@@ -1,58 +0,0 @@
-{% extends 'base/base.html' %}
-{% load static %}
-
-{% block title %}{{ article.metadata.title }}{% endblock %}
-{% block head %}
-
-
-
-
-
-
-
-{% endblock %}
-
-{% block content %}
- {% include "base/navbar.html" %}
-
-
-
-
-
-
- {{ article.metadata.title }}
-
-
- {{ article.article|safe }}
-
-
- {% if relevant_links|length > 0 %}
-
-
-
-
- {% endif %}
-
-
-
-
-
-
-{% endblock %}
diff --git a/pydis_site/templates/content/listing.html b/pydis_site/templates/content/listing.html
index 8c06bccc..39eae1c2 100644
--- a/pydis_site/templates/content/listing.html
+++ b/pydis_site/templates/content/listing.html
@@ -1,12 +1,12 @@
{% extends 'base/base.html' %}
{% load static %}
-{% block title %}{{ category_info.name|default:"Articles" }}{% endblock %}
+{% block title %}{{ category_info.name|default:"Pages" }}{% endblock %}
{% block head %}
-
+
-
+
{% endblock %}
{% block content %}
@@ -17,12 +17,12 @@
{{ category_info.name|default:"Articles" }}
+{{ category_info.name|default:"Pages" }}
{% for category, data in categories.items %} {% endfor %} - {% for article, data in content.items %} + {% for page, data in content.items %}{{ data.short_description }}
diff --git a/pydis_site/templates/content/page.html b/pydis_site/templates/content/page.html new file mode 100644 index 00000000..3b0ebb5f --- /dev/null +++ b/pydis_site/templates/content/page.html @@ -0,0 +1,58 @@ +{% extends 'base/base.html' %} +{% load static %} + +{% block title %}{{ page.metadata.title }}{% endblock %} +{% block head %} + + + + + + + +{% endblock %} + +{% block content %} + {% include "base/navbar.html" %} + + + +