nitiwiki: update examples with trails
authorJean Privat <jean@pryen.org>
Wed, 11 Nov 2015 20:29:03 +0000 (15:29 -0500)
committerJean Privat <jean@pryen.org>
Thu, 12 Nov 2015 01:10:34 +0000 (20:10 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/nitiwiki/examples/default/templates/template.html
contrib/nitiwiki/examples/nitiwiki/assets/css/main.css
contrib/nitiwiki/examples/nitiwiki/pages/section/a_last_page.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/a_page.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/another_page.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/index.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/bar.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/foo.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/index.md [new file with mode: 0644]
contrib/nitiwiki/examples/nitiwiki/templates/template.html

index 692a999..f7061a0 100644 (file)
@@ -8,7 +8,9 @@
         %HEADER%
         %TOP_MENU%
         <div>
+            %TRAIL%
             %BODY%
+            %TRAIL%
             %FOOTER%
         </div>
     </body>
index c00394a..63dda7c 100644 (file)
@@ -28,3 +28,17 @@ footer {
 .summary li li li { font-size: 12px; font-weight: normal }
 
 .breadcrumb { margin-top: 20px; }
+
+.trail {
+       list-style-type: none;
+       color: #838183;
+       text-align: center;
+}
+
+.trail li{
+       display: inline;
+}
+
+.trail li+li:before{
+       content: " | ";
+}
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/a_last_page.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/a_last_page.md
new file mode 100644 (file)
index 0000000..885663d
--- /dev/null
@@ -0,0 +1 @@
+# a last page
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/a_page.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/a_page.md
new file mode 100644 (file)
index 0000000..bf5a54f
--- /dev/null
@@ -0,0 +1 @@
+# a page
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/another_page.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/another_page.md
new file mode 100644 (file)
index 0000000..ec67b83
--- /dev/null
@@ -0,0 +1 @@
+# another page
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/index.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/index.md
new file mode 100644 (file)
index 0000000..229d1f0
--- /dev/null
@@ -0,0 +1,7 @@
+
+# Example of trail
+
+* [[trail: a_page]]
+* [[trail: another_page]]
+* [[trail: sub_section]]
+* [[trail: a_last_page]]
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/bar.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/bar.md
new file mode 100644 (file)
index 0000000..d93e603
--- /dev/null
@@ -0,0 +1 @@
+# bar
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/foo.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/foo.md
new file mode 100644 (file)
index 0000000..c2a8392
--- /dev/null
@@ -0,0 +1 @@
+# foo
diff --git a/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/index.md b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/index.md
new file mode 100644 (file)
index 0000000..040e564
--- /dev/null
@@ -0,0 +1,4 @@
+# A sub-section
+
+* [[trail: foo]]
+* [[trail: bar]]
index 7c43833..57196fa 100644 (file)
@@ -21,7 +21,9 @@
                %TOP_MENU%
                <div class="container">
                        <div class="row">
+                               %TRAIL%
                                %BODY%
+                               %TRAIL%
                        </div>
                        %FOOTER%
                </div>