summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki/wiki/wikiPage.html
blob: 8ca34e7e20acfa0c6ac58abd7ab8c640fbebab8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{@eu.mulk.mulkcms2.benki.wiki.WikiPageRevision page}

{#include base.html}

{#title}{page.title} — Benki Wiki{/title}

{#head}
<link rel="stylesheet" type="text/css" href="/web_modules/ContentTools/build/content-tools.min.css" />
<script type="module">
  import {ContentTools} from "/web_modules/ContentTools.js";
  window.addEventListener('DOMContentLoaded', function() {
    let editor = ContentTools.EditorApp.get();
    editor.init('*[data-editable]', 'data-name');
  });
</script>
{/head}

{#body}
<article id="wiki-page">
  <header>
    <h1>{page.title}</h1>
  </header>

  <main>
    <div data-editable data-name="main-content">
      {#with page}{content.raw}{/}
    </div>
  </main>

  <hr>

  <footer>
    <a href="/wiki/{page.title}/revisions">Page revisions</a>
  </footer>
</article>
{/body}

{/include}