aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/content/page.html
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/content/page.html
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/content/page.html')
-rw-r--r--pydis_site/templates/content/page.html4
1 files changed, 2 insertions, 2 deletions
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 %}