aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-03-24 19:55:16 +0800
committerGravatar kosayoda <[email protected]>2021-03-24 19:55:16 +0800
commit6ccec0d866c44cd7f9789a396ef6ec6cd2cd5df8 (patch)
tree15ffa3caff8b0a625028d1085a3246683c630d07 /pydis_site/templates
parentSimplify pathlib code and specify file encoding. (diff)
Replace `markdown2` with `markdown` and `python-frontmatter`.
This allows us to properly escape codeblocks within markdown, permalink to headers on a page, and decouples getting metadata from a file and getting generated HTML from the Markdown content.
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/content/base.html2
-rw-r--r--pydis_site/templates/content/page.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/templates/content/base.html b/pydis_site/templates/content/base.html
index 1508dfb3..19eec5d4 100644
--- a/pydis_site/templates/content/base.html
+++ b/pydis_site/templates/content/base.html
@@ -3,7 +3,7 @@
{% block title %}{{ page_title }}{% endblock %}
{% block head %}
-<meta property="og:title" content="Python Discord - {{ page_title }}" />
+ <meta property="og:title" content="Python Discord - {{ page_title }}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{{ page_description }}" />
<link rel="stylesheet" href="{% static "css/content/page.css" %}">
diff --git a/pydis_site/templates/content/page.html b/pydis_site/templates/content/page.html
index 5e820c26..06d74208 100644
--- a/pydis_site/templates/content/page.html
+++ b/pydis_site/templates/content/page.html
@@ -12,7 +12,7 @@
{% if relevant_links|length > 0 %}
<div class="columns is-variable is-8">
<div class="column is-two-thirds">
- {{ page.content|safe }}
+ {{ page|safe }}
</div>
<div class="column">
<div class="box">
@@ -26,6 +26,6 @@
</div>
</div>
{% else %}
- <div>{{ page.content|safe }}</div>
+ <div>{{ page|safe }}</div>
{% endif %}
{% endblock %}