mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Add Markdown support and better url tolerance for pages
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
{% extends "core/page.html" %}
|
||||
{% load renderer %}
|
||||
|
||||
{% block page %}
|
||||
<h3>Page</h3>
|
||||
@ -14,10 +15,10 @@
|
||||
{% if rev %}
|
||||
<h4>This may not be the last update, you are seeing revision {{ rev.id }}!</h4>
|
||||
<h3>{{ rev.title }}</h3>
|
||||
<p>{{ rev.content }}</p>
|
||||
<p>{{ rev.content|markdown }}</p>
|
||||
{% else %}
|
||||
<h3>{{ page.revisions.last.title }}</h3>
|
||||
<p>{{ page.revisions.last.content }}</p>
|
||||
<p>{{ page.revisions.last.content|markdown }}</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user