diff options
author | 2020-09-20 13:33:48 +0300 | |
---|---|---|
committer | 2020-09-20 13:33:48 +0300 | |
commit | 826aeaf67be682629fe544dcdaed13a87cdf8a33 (patch) | |
tree | fd492e01fd95bcd5ad211265c253cfa2c82eda63 | |
parent | Add codeblock parsing to Markdown parser for guide (diff) |
Add syntax highlight support for guides
-rw-r--r-- | pydis_site/templates/guides/guide.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/templates/guides/guide.html b/pydis_site/templates/guides/guide.html index 0c4bf98b..10da1ea5 100644 --- a/pydis_site/templates/guides/guide.html +++ b/pydis_site/templates/guides/guide.html @@ -4,6 +4,9 @@ {% block title %}{{ metadata.title|first }}{% endblock %} {% block head %} <link rel="stylesheet" href="{% static "css/guides/guide.css" %}"> + <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css"> + <script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> + <script>hljs.initHighlightingOnLoad();</script> {% endblock %} {% block content %} |