]> juplo.de Git - website/commitdiff
WIP:layout:menu
authorKai Moritz <kai@juplo.de>
Sun, 14 Dec 2025 16:21:00 +0000 (17:21 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 14 Dec 2025 17:45:14 +0000 (18:45 +0100)
layouts/_partials/menu.html

index c23c77a3ec04119c384970673a5225540ca18231..0669b2402c1ba5beca0a0c8bf91389c9c1395925 100644 (file)
     {{- end }}
   {{- end }}
   </ul>
-
-  <ul th:include="${submenu}?:_"
-      th:with="
-        len=${crumbs == null} ? 0 : ${crumbs.size()},
-        parent=${section},
-        submenu=${_childs.get(parent)},
-        pos=2"
-      class="s"
-      th:class="'s' + (${len == 1 or (len == 2 and _childs.get(uri) == null)} ? ' selected' : '')"
-      >
-    <li th:fragment="submenu(submenu, parent, pos)"
-        th:each="entry : ${submenu}"
-        th:with="
-            child=${pos == len},
-            hidden=${!child && _canonical.get(crumbs.get(pos)) == entry},
-            entry=${hidden?crumbs.get(pos):entry},
-            selected=${(child and crumbs.get(pos-1) + '?about' == entry) or (!child and (crumbs.get(pos) == entry or hidden))},
-            leaf=${pos >= (len - 1) and not selected},
-            sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
-            childs=${entry == parent ? null : _childs.get(entry)}
-            "
-        class="s sub"
-        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') + ' len_' + ${len} + ' pos_' + ${pos} + (${leaf}?' leaf':'')"
-          th:text="${_titles.get(entry)}"
-          >Hallo Weltf</a>
-      <ul th:if="${selected and childs != null}"
-          class="s active"
-          th:class="'s' + (${entry == uri or (len &gt; 1 and entry == crumbs.get(len-2) and _childs.get(uri) == null)} ? ' selected' : '')"
-          >
-        <li th:replace="this :: submenu(submenu=${childs}, parent=${entry}, pos=${pos + 1})"
-            class="s"
-            >
-          <strong class="s">Overview</strong>
-        </li>
-        <!--/*-->
-        <li class="s"><a href="../potemkin/fix-swf/getting-started.html" class="s">Getting Started</a></li>
-        <li class="s"><a href="#" class="s">FAQ</a></li>
-        <li class="s"><a href="#" class="s">Documentation</a></li>
-        <!--*/-->
-      </ul>
-    </li>
-    <!--/*-->
-    <li class="s sub off"><a href="#" class="s">hibernate4-maven-plugin</a></li>
-    <li class="s off"><a href="#" class="s">jquery.openx</a></li>
-    <li class="s sub off"><a href="../potemkin/html-experimente.html" th:href="@{/potemkin/html-experimente.html}" class="s">HTML-Experimente</a></li>
-    <li class="s sub off"><a href="#" class="s">accelerator</a></li>
-    <li class="s off"><a href="../potemkin/typo.html" th:href="@{/potemkin/typo.html}" class="s">Typography</a></li>
-    <!--*/-->
-    <li th:replace="this :: submenu(submenu=${childs}, parent=${entry}, pos=${pos + 1})" class="s off"><a href="../potemkin/typo.html" th:href="@{/potemkin/typo.html}" class="s">Typography</a></li>
-  </ul>
   <hr class="n"/>
 </nav>