aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-08-13 22:49:36 +0200
committerGravatar Hassan Abouelela <[email protected]>2022-08-13 22:49:36 +0200
commit95da22074e6f2c7b2425ccca75cd25f9ef5596fb (patch)
tree1031b796ac400102e63acafa8e21d1de76fe3c66 /pydis_site/templates
parentClean Up Tag Link Substitution (diff)
Enable Code Highlighting On All Content Pages
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/content/base.html4
-rw-r--r--pydis_site/templates/content/page.html8
2 files changed, 4 insertions, 8 deletions
diff --git a/pydis_site/templates/content/base.html b/pydis_site/templates/content/base.html
index dbd303a1..2fd721a3 100644
--- a/pydis_site/templates/content/base.html
+++ b/pydis_site/templates/content/base.html
@@ -8,6 +8,10 @@
<meta property="og:description" content="{{ page_description }}" />
<link rel="stylesheet" href="{% static "css/content/page.css" %}">
<link rel="stylesheet" href="{% static "css/collapsibles.css" %}">
+ <link rel="stylesheet"
+ href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/atom-one-dark.min.css">
+ <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/highlight.min.js"></script>
+ <script>hljs.highlightAll();</script>
<script src="{% static "js/collapsibles.js" %}"></script>
{% endblock %}
diff --git a/pydis_site/templates/content/page.html b/pydis_site/templates/content/page.html
index 625c01f1..679ecec6 100644
--- a/pydis_site/templates/content/page.html
+++ b/pydis_site/templates/content/page.html
@@ -1,13 +1,5 @@
{% extends 'content/base.html' %}
-{% block head %}
- {{ block.super }}
- <link rel="stylesheet"
- href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/atom-one-dark.min.css">
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/highlight.min.js"></script>
- <script>hljs.highlightAll();</script>
-{% endblock %}
-
{% block page_content %}
{% if relevant_links or toc %}
<div class="columns is-variable is-8">