diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-09 10:39:45 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-09 10:39:45 +0100 |
commit | 310e71fd6e88cb41ddd4d448cee96a72554db177 (patch) | |
tree | b7fc361b20c221d440f3e1dbaa4d36b2f7bbea80 | |
parent | 521718d5ef2d7a18497bc525fb15d245f6827180 (diff) |
Web: Make navigation bar formatting dynamic.
Change-Id: I65068a6837c325cd4d649696c709d2b6d2b4b3ef
-rw-r--r-- | src/main/resources/templates/base.html | 6 | ||||
-rw-r--r-- | src/main/resources/templates/benki/wiki/wikiPage.html | 2 | ||||
-rw-r--r-- | src/main/resources/templates/benki/wiki/wikiPageRevisionList.html | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/templates/base.html b/src/main/resources/templates/base.html index 8619f3e..aec554a 100644 --- a/src/main/resources/templates/base.html +++ b/src/main/resources/templates/base.html @@ -19,9 +19,9 @@ <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> + <li class="{#insert bookMarxClass}{/}" data-site-section="Book Marx"><a href="/bookmarx">Bookmarks</a></li> + <li class="{#insert lafargueClass}{/}" data-site-section="Lafargue"><a href="/lafargue">Remarks</a></li> + <li class="{#insert wikiClass}{/}" data-site-section="Wiki"><a href="/wiki">Wiki</a></li> </ol> </nav> diff --git a/src/main/resources/templates/benki/wiki/wikiPage.html b/src/main/resources/templates/benki/wiki/wikiPage.html index 6ebf7c2..c5155bc 100644 --- a/src/main/resources/templates/benki/wiki/wikiPage.html +++ b/src/main/resources/templates/benki/wiki/wikiPage.html @@ -3,8 +3,8 @@ {#include base.html} {#title}{page.title} — Benki Wiki{/title} - {#siteSection}Wiki{/siteSection} +{#wikiClass}this-page{/wikiClass} {#head} <link rel="stylesheet" type="text/css" href="/web_modules/ContentTools/build/content-tools.min.css" /> diff --git a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html index eb64ff9..2fd04eb 100644 --- a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html +++ b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html @@ -4,8 +4,8 @@ {#include base.html} {#title}Revisions — {title} — Benki Wiki{/title} - {#siteSection}Wiki{/siteSection} +{#wikiClass}this-page{/wikiClass} {#body} <header> |