blob: 8ca34e7e20acfa0c6ac58abd7ab8c640fbebab8b [file] [log] [blame]
Matthias Andreas Benkardae402342020-01-25 10:09:57 +01001{@eu.mulk.mulkcms2.benki.wiki.WikiPageRevision page}
Matthias Andreas Benkardd8f16442020-01-25 05:37:43 +01002
Matthias Andreas Benkardae402342020-01-25 10:09:57 +01003{#include base.html}
Matthias Andreas Benkardffb428e2020-01-25 10:47:36 +01004
Matthias Andreas Benkardae402342020-01-25 10:09:57 +01005{#title}{page.title} — Benki Wiki{/title}
Matthias Andreas Benkardffb428e2020-01-25 10:47:36 +01006
7{#head}
8<link rel="stylesheet" type="text/css" href="/web_modules/ContentTools/build/content-tools.min.css" />
9<script type="module">
10 import {ContentTools} from "/web_modules/ContentTools.js";
11 window.addEventListener('DOMContentLoaded', function() {
12 let editor = ContentTools.EditorApp.get();
13 editor.init('*[data-editable]', 'data-name');
14 });
15</script>
16{/head}
17
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010018{#body}
19<article id="wiki-page">
20 <header>
21 <h1>{page.title}</h1>
22 </header>
Matthias Andreas Benkardd8f16442020-01-25 05:37:43 +010023
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010024 <main>
Matthias Andreas Benkardffb428e2020-01-25 10:47:36 +010025 <div data-editable data-name="main-content">
26 {#with page}{content.raw}{/}
27 </div>
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010028 </main>
Matthias Andreas Benkardd8f16442020-01-25 05:37:43 +010029
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010030 <hr>
Matthias Andreas Benkard9222efa2020-01-24 19:11:24 +010031
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010032 <footer>
33 <a href="/wiki/{page.title}/revisions">Page revisions</a>
34 </footer>
35</article>
36{/body}
Matthias Andreas Benkardffb428e2020-01-25 10:47:36 +010037
Matthias Andreas Benkardae402342020-01-25 10:09:57 +010038{/include}