diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/layout.html | 2 | ||||
-rw-r--r-- | theme/templates/page.html | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/theme/templates/layout.html b/theme/templates/layout.html index dd319d0..3057f4b 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -37,9 +37,11 @@ </head> <body> {% block content %}{% endblock %} + {% block javascript %} <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/mode-javascript.js"></script> <script src="{{ staticBase }}/jsrepl/jsrepl.js" id="jsrepl-script"></script> <script src="{{ staticBase }}/app.js"></script> + {% endblock %} </body> </html> diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100644 index 0000000..8b1048d --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,18 @@ +{% extends "layout.html" %} + +{% block title %}{{ title }}{% endblock %} + +{% block content %} + {% for page in pages %} + <hr> + <article id="{{ page.path }}"> + {% for section in page.content %} + {% if section.type == "normal" %} + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% endif %} + {% endfor %} + </article> + {% endfor %} +{% endblock %} + +{% block javascript %}{% endblock %}
\ No newline at end of file |