Generierung der Menüstruktur aus den JSON-Daten überarbeitet
[website] / dist / blog / blog.json
index af1010c..ee206b0 100644 (file)
@@ -1,28 +1,25 @@
 {
-  "pages": {
-    "/blog/": {
-      "name": "Blog",
-      "childs": {
-        "/blog/article.html": "An Article",
-        "/blog/comments.html": "Comments"
-      },
-      "crumbs": [
-        { "uri": "/blog/", "name": "Blog" }
-      ]
-    },
-    "/blog/article.html": {
-      "name": "An Article",
-      "crumbs": [
-        { "uri": "/blog/", "name": "Blog" },
-        { "uri": "/blog/article.html", "name": "An Article" }
-      ]
-    },
-    "/blog/comments.html": {
-      "name": "Comments",
-      "crumbs": [
-        { "uri": "/blog/", "name": "Blog" },
-        { "uri": "/blog/comments.html", "name": "Comments" }
-      ]
-    }
+  "_names": {
+    "/blog/article.html": "An Article",
+    "/blog/comments.html":"Comments"
+  },
+  "_childs": {
+    "/blog/": [
+      "/blog/article.html",
+      "/blog/comments.html"
+    ]
+  },
+  "_crumbs": {
+    "/blog/": [
+      "/blog/"
+    ],
+    "/blog/article.html": [
+      "/blog/",
+      "/blog/article.html"
+    ],
+    "/blog/comments.html": [
+      "/blog/",
+      "/blog/comments.html"
+    ]
   }
 }