Generierung der Menüstruktur überrabeitet: _names in _titles umbenannt
authorKai Moritz <kai@juplo.de>
Thu, 9 May 2019 15:37:50 +0000 (17:37 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 22 Nov 2020 16:07:21 +0000 (17:07 +0100)
dist/blog/blog.json
dist/potemkin.json
dist/potemkin/accelerator.html
dist/sitemap.json
dist/templates/layout.html

index ee206b0..2196e95 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "_names": {
+  "_titles": {
     "/blog/article.html": "An Article",
     "/blog/comments.html":"Comments"
   },
index a2b38d6..bb2b66c 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "_names": {
+  "_titles": {
     "/projects.html": "Projects",
     "/potemkin/fix-swf/overview.html": "Overview",
     "#faq": "FAQ",
index d43d592..7c8b08d 100644 (file)
@@ -3,7 +3,7 @@
     xmlns="http://www.w3.org/1999/xhtml"
     th:replace="~{/templates/layout.html :: layout(uri='/potemkin/accelerator.html', json='MERGE:potemkin.json,MERGE:
       {
-        &quot;_names&quot;: {
+        &quot;_titles&quot;: {
           &quot;/potemkin/accelerator.html&quot;: &quot;Overview&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;,
index 429fe7e..a573ec9 100644 (file)
@@ -4,7 +4,7 @@
     "projects": "/projects.html",
     "about": "/about.html"
   },
-  "_names": {
+  "_titles": {
     "/index.html": "Home",
     "/blog/": "Blog",
     "/projects.html": "Projects",
index b8e870c..70ef030 100644 (file)
@@ -55,7 +55,7 @@
         <ol class="b" th:include="~{::#crumbs}?:_">
           <li class="b"><a class="b" href="../index.html" th:href="@{/index.html}">Home</a></li>
           <li class="b" th:each="crumb: ${crumbs}">
-            <a class="b" href="../projects.html" th:href="@{${crumb}}" th:text="${_names.get(crumb)}">Projects</a>
+            <a class="b" href="../projects.html" th:href="@{${crumb}}" th:text="${_titles.get(crumb)}">Projects</a>
           </li>
           <!--/*-->
           <li class="b"><strong class="b" th:text="${title}">Fix SWF</strong></li>
             <h2 class="nav menu">Section-Menu</h2>
             <ul id="menu" class="cf">
               <li class="m blog" th:each="entry : ${_sections}" th:class="'m ' + ${entry.key}">
-                <a href="../blog/" th:href="@{${entry.value}}" class="m" th:class="${entry.value == section} ? 'm selected' : 'm'" th:text="${_names.get(entry.value)}">Blog</a>
+                <a href="../blog/" th:href="@{${entry.value}}" class="m" th:class="${entry.value == section} ? 'm selected' : 'm'" th:text="${_titles.get(entry.value)}">Blog</a>
               </li>
               <!--/*-->
               <li class="m projects"><a href="../projects.html" class="m selected">Projects</a></li>
             </ul>
             <h2 class="nav submenu">
               <span class="s">Submenu for section</span>
-              <a class="s selected" href="../projects.html" th:href="@{${section}}" th:text="${_names.get(section)}">Projects</a>
+              <a class="s selected" href="../projects.html" th:href="@{${section}}" th:text="${_titles.get(section)}">Projects</a>
             </h2>
             <ul th:include="${submenu}?:_"
                 th:with="
                     th:href="@{${entry}}"
                     class="s selected"
                     th:class="${selected} ? 's selected' : 's'"
-                    th:text="${_names.get(entry)}"
+                    th:text="${_titles.get(entry)}"
                     >fix-swf</a>
                 <ul th:if="${selected and childs != null}"
                     class="s active"