Übersichtsseiten (Seiten mit Unterseiten), werden nur einmal angezeigt
authorKai Moritz <kai@juplo.de>
Mon, 6 May 2019 21:14:32 +0000 (23:14 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 9 May 2019 15:39:18 +0000 (17:39 +0200)
* Die "Overview"-Einträge in dem Untermenü werde jetzt einfach unterdrückt
* Löst auch Problem mit der vereinfachten JSON-Struktur: es konnte dort
  kein alternativer Name (i.d.R. "Overview") für diesen doppelten Eintrag
  angegeben werden.
* Außerdem: Falsche Benennung in den JSON-Daten korrigiert

dist/potemkin.json
dist/potemkin/accelerator.html
dist/templates/layout.html

index bb2b66c..a53ef5f 100644 (file)
@@ -1,7 +1,7 @@
 {
   "_titles": {
     "/projects.html": "Projects",
-    "/potemkin/fix-swf/overview.html": "Overview",
+    "/potemkin/fix-swf/overview.html": "Fix SWF",
     "#faq": "FAQ",
     "#documentation": "Documentation",
     "/potemkin/accelerator.html": "Accellerator",
index 7c8b08d..fc4afcd 100644 (file)
@@ -4,7 +4,7 @@
     th:replace="~{/templates/layout.html :: layout(uri='/potemkin/accelerator.html', json='MERGE:potemkin.json,MERGE:
       {
         &quot;_titles&quot;: {
-          &quot;/potemkin/accelerator.html&quot;: &quot;Overview&quot;,
+          &quot;/potemkin/accelerator.html&quot;: &quot;Accelerator&quot;,
           &quot;/potemkin/accelerator.html#read-on&quot;: &quot;Read on&quot;,
           &quot;/potemkin/accelerator.html#read-on-and-on&quot;: &quot;Read on and on&quot;,
           &quot;/potemkin/accelerator.html#read-on-and-on-and-on&quot;: &quot;Read on and on and on&quot;,
index 66625fa..752d254 100644 (file)
                   th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or child} ? '' : ' off')"
                   >
                 <a  href="../potemkin/fix-swf/overview.html"
+                    th:if="${entry != parent}"
                     th:href="@{${entry}}"
                     class="s selected"
                     th:class="${selected} ? 's selected' : 's'"