diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-09 06:46:33 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-09 06:46:33 +0100 |
commit | c275812ffa1382f350c24cf3967aa3fc5cdebcdb (patch) | |
tree | 09e5967a31e1c5908fa00b0630b499b0379d7ad2 /src/main/resources/templates | |
parent | 6fea813b3d7a8f2acd163ef737bb3ebfce2bb961 (diff) |
Create a base design.
Change-Id: Idf90f0e4b1c411edb72d468d9b4c10daac6c67a3
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r-- | src/main/resources/templates/base.html | 20 | ||||
-rw-r--r-- | src/main/resources/templates/benki/wiki/wikiPage.html | 8 | ||||
-rw-r--r-- | src/main/resources/templates/benki/wiki/wikiPageRevisionList.html | 2 |
3 files changed, 26 insertions, 4 deletions
diff --git a/src/main/resources/templates/base.html b/src/main/resources/templates/base.html index 6b1ad42..8619f3e 100644 --- a/src/main/resources/templates/base.html +++ b/src/main/resources/templates/base.html @@ -13,6 +13,24 @@ </head> <body> -{#insert body}{/} + <header> + <h1><a href="/">Benki</a> → {#insert siteSection}{/}</h1> + </header> + + <nav> + <ol> + <li><a href="/bookmarx">Bookmarks</a></li> + <li><a href="/lafargue">Remarks</a></li> + <li class="this-page"><a href="/wiki">Wiki</a></li> + </ol> + </nav> + + <main> + {#insert body}{/} + </main> + + <footer> + <a href="/imprint">Imprint</a> + </footer> </body> </html> diff --git a/src/main/resources/templates/benki/wiki/wikiPage.html b/src/main/resources/templates/benki/wiki/wikiPage.html index e4a7d58..6ebf7c2 100644 --- a/src/main/resources/templates/benki/wiki/wikiPage.html +++ b/src/main/resources/templates/benki/wiki/wikiPage.html @@ -4,6 +4,8 @@ {#title}{page.title} — Benki Wiki{/title} +{#siteSection}Wiki{/siteSection} + {#head} <link rel="stylesheet" type="text/css" href="/web_modules/ContentTools/build/content-tools.min.css" /> <script type="module" src="/web_modules/elix/define/ExpandablePanel.js" defer></script> @@ -75,14 +77,14 @@ <h1>{page.title}</h1> </div> - <elix-expandable-panel id="warning-panel"><div id="warning-text"></div></elix-expandable-panel> + <elix-expandable-panel id="warning-panel" role="alert"><div id="warning-text"></div></elix-expandable-panel> </header> - <main> + <section id="wiki-page-content"> <div data-editable data-name="wiki-content" id="wiki-content"> {#with page}{enrichedContent.raw}{/} </div> - </main> + </section> <hr> diff --git a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html index f4a3d95..eb64ff9 100644 --- a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html +++ b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html @@ -5,6 +5,8 @@ {#title}Revisions — {title} — Benki Wiki{/title} +{#siteSection}Wiki{/siteSection} + {#body} <header> <h1>Revisions — <a href="/wiki/{title}">{title}</a></h1> |