diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-25 10:09:57 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-25 10:10:09 +0100 |
commit | ae402342fe5736d74cf86e21c642abbb0805ff83 (patch) | |
tree | f46fea3076f18b2fcfb9fb6fa6fbd1370e0dfcd9 /src/main/resources/templates/benki/wiki/wikiPage.html | |
parent | 298dcac3717ccde4231a5f35b9a59319036d40bd (diff) |
Web: Extract base template.
Change-Id: I20a4fbb04aa75a94f96617b0c4d1be00ab3e4aca
Diffstat (limited to 'src/main/resources/templates/benki/wiki/wikiPage.html')
-rw-r--r-- | src/main/resources/templates/benki/wiki/wikiPage.html | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/src/main/resources/templates/benki/wiki/wikiPage.html b/src/main/resources/templates/benki/wiki/wikiPage.html index 865d3ba..7caf94d 100644 --- a/src/main/resources/templates/benki/wiki/wikiPage.html +++ b/src/main/resources/templates/benki/wiki/wikiPage.html @@ -1,28 +1,22 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="UTF-8"> +{@eu.mulk.mulkcms2.benki.wiki.WikiPageRevision page} - <title>{title} — Benki Wiki</title> +{#include base.html} +{#title}{page.title} — Benki Wiki{/title} +{#body} +<article id="wiki-page"> + <header> + <h1>{page.title}</h1> + </header> - <link rel="stylesheet" type="text/css" href="/common.css" /> -</head> + <main> + {#with page}{content.raw}{/} + </main> -<body> - <article id="wiki-page"> - <header> - <h1>{title}</h1> - </header> + <hr> - <main> - {content.raw} - </main> - - <hr> - - <footer> - <a href="/wiki/{title}/revisions">Page revisions</a> - </footer> - </article> -</body> -</html> + <footer> + <a href="/wiki/{page.title}/revisions">Page revisions</a> + </footer> +</article> +{/body} +{/include} |