Blog-Layouttest-Seiten an Thymeproxy angepasst
authorKai Moritz <kai@juplo.de>
Thu, 7 Jul 2016 08:30:57 +0000 (10:30 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 28 Jun 2017 09:23:38 +0000 (11:23 +0200)
dist/blog.html
dist/blog/article.html
dist/blog/comments.html
dist/templates/variables.json

index 53876ee..5040237 100644 (file)
@@ -3,6 +3,7 @@
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:layout="http://www.thymeleaf.org"
     layout:decorator="templates/layout"
+    th:with="uri='/blog.html'"
     >
   <head>
     <title>Blog</title>
     <!--*/-->
   </head>
   <body>
-    <ol layout:fragment="breadcrumb">
-      <li class="b"><a class="b" href="index.html" th:href="@{/index.html}">Home</a></li>
-      <li class="b"><strong class="b">Blog</strong></li>
-    </ol>
-    <nav layout:fragment="navigation">
-      <hr class="n"/>
-      <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
-      <h1 class="nav">Navigation</h1>
-      <h2 class="nav menu">Section-Menu</h2>
-      <ul id="menu" class="cf">
-        <li class="m blog"><strong class="m">Blog</strong></li>
-        <li class="m projects"><a href="projects.html" th:href="@{/projects.html}" class="m">Projects</a></li>
-        <li class="m about"><a href="about.html" th:href="@{/about.html}" class="m">About</a></li>
-      </ul>
-    </nav>
     <main class="main" layout:fragment="maincontent">
       <article id="post-140" class="post-140 post type-post status-publish format-standard hentry category-jetty category-less category-maven category-wro4j">
         <header class="entry-header">
index 041febf..ec1a6f6 100644 (file)
@@ -3,6 +3,7 @@
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:layout="http://www.thymeleaf.org"
     layout:decorator="templates/layout"
+    th:with="uri='/blog/article.html'"
     >
   <head>
     <title>juplo - blog - Combining jetty-maven-plugin and wro4j-maven-plugin for Dynamic Reloading of LESS-Resources</title>
     <!--*/-->
   </head>
   <body>
-    <ol layout:fragment="breadcrumb">
-      <li class="b"><a class="b" href="../index.html" th:href="@{/index.html}">Home</a></li>
-      <li class="b"><strong class="b">Blog</strong></li>
-    </ol>
-    <nav layout:fragment="navigation">
-      <hr class="n"/>
-      <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
-      <h1 class="nav">Navigation</h1>
-      <h2 class="nav menu">Section-Menu</h2>
-      <ul id="menu" class="cf">
-        <li class="m blog"><strong class="m">Blog</strong></li>
-        <li class="m projects"><a href="../projects.html" th:href="@{/projects.html}" class="m">Projects</a></li>
-        <li class="m about"><a href="../about.html" th:href="@{/about.html}" class="m">About</a></li>
-      </ul>
-    </nav>
     <article class="main" layout:fragment="maincontent">
       <article id="post-140" class="post-140 post type-post status-publish format-standard hentry category-jetty category-less category-maven category-wro4j">
         <div class="entry-header">
index 6759000..a27e7fd 100644 (file)
@@ -3,6 +3,7 @@
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:layout="http://www.thymeleaf.org"
     layout:decorator="templates/layout"
+    th:with="uri='/blog/comments.html'"
     >
   <head>
     <title>juplo - blog - hibernate4-maven-plugin</title>
     <!--*/-->
   </head>
   <body>
-    <ol layout:fragment="breadcrumb">
-      <li class="b"><a class="b" href="../index.html" th:href="@{/index.html}">Home</a></li>
-      <li class="b"><strong class="b">Blog</strong></li>
-    </ol>
-    <nav layout:fragment="navigation">
-      <hr class="n"/>
-      <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
-      <h1 class="nav">Navigation</h1>
-      <h2 class="nav menu">Section-Menu</h2>
-      <ul id="menu" class="cf">
-        <li class="m blog"><strong class="m">Blog</strong></li>
-        <li class="m projects"><a href="../projects.html" th:href="@{/projects.html}" class="m">Projects</a></li>
-        <li class="m about"><a href="../about.html" th:href="@{/about.html}" class="m">About</a></li>
-      </ul>
-    </nav>
     <article class="main" layout:fragment="maincontent">
       <article id="post-34" class="post-34 post type-post status-publish format-standard hentry category-hibernate category-java category-maven">
         <div class="entry-header">
index 96ba223..2f7172c 100644 (file)
@@ -6,6 +6,30 @@
   },
   "pages": {
     "/index.html": { "name": "Home" },
+    "/blog.html": {
+      "name": "Blog",
+      "childs": {
+        "/blog/article.html": "An Article",
+        "/blog/comments.html": "Comments"
+      },
+      "crumbs": [
+        { "uri": "/blog.html", "name": "Blog" }
+      ]
+    },
+    "/blog/article.html": {
+      "name": "An Article",
+      "crumbs": [
+        { "uri": "/blog.html", "name": "Blog" },
+        { "uri": "/blog/article.html", "name": "An Article" }
+      ]
+    },
+    "/blog/comments.html": {
+      "name": "Comments",
+      "crumbs": [
+        { "uri": "/blog.html", "name": "Blog" },
+        { "uri": "/blog/comments.html", "name": "Comments" }
+      ]
+    },
     "/projects.html": {
       "name": "Projects",
       "childs": {