From 011905e3aebac2082d977db0400af225efbec3c9 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 11 Nov 2015 15:29:03 -0500 Subject: [PATCH] nitiwiki: update examples with trails Signed-off-by: Jean Privat --- .../examples/default/templates/template.html | 2 ++ .../nitiwiki/examples/nitiwiki/assets/css/main.css | 14 ++++++++++++++ .../examples/nitiwiki/pages/section/a_last_page.md | 1 + .../examples/nitiwiki/pages/section/a_page.md | 1 + .../nitiwiki/pages/section/another_page.md | 1 + .../examples/nitiwiki/pages/section/index.md | 7 +++++++ .../nitiwiki/pages/section/sub_section/bar.md | 1 + .../nitiwiki/pages/section/sub_section/foo.md | 1 + .../nitiwiki/pages/section/sub_section/index.md | 4 ++++ .../examples/nitiwiki/templates/template.html | 2 ++ 10 files changed, 34 insertions(+) create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/a_last_page.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/a_page.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/another_page.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/index.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/bar.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/foo.md create mode 100644 contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/index.md diff --git a/contrib/nitiwiki/examples/default/templates/template.html b/contrib/nitiwiki/examples/default/templates/template.html index 692a999..f7061a0 100644 --- a/contrib/nitiwiki/examples/default/templates/template.html +++ b/contrib/nitiwiki/examples/default/templates/template.html @@ -8,7 +8,9 @@ %HEADER% %TOP_MENU%
+ %TRAIL% %BODY% + %TRAIL% %FOOTER%
diff --git a/contrib/nitiwiki/examples/nitiwiki/assets/css/main.css b/contrib/nitiwiki/examples/nitiwiki/assets/css/main.css index c00394a..63dda7c 100644 --- a/contrib/nitiwiki/examples/nitiwiki/assets/css/main.css +++ b/contrib/nitiwiki/examples/nitiwiki/assets/css/main.css @@ -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 index 0000000..885663d --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/a_last_page.md @@ -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 index 0000000..bf5a54f --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/a_page.md @@ -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 index 0000000..ec67b83 --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/another_page.md @@ -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 index 0000000..229d1f0 --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/index.md @@ -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 index 0000000..d93e603 --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/bar.md @@ -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 index 0000000..c2a8392 --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/foo.md @@ -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 index 0000000..040e564 --- /dev/null +++ b/contrib/nitiwiki/examples/nitiwiki/pages/section/sub_section/index.md @@ -0,0 +1,4 @@ +# A sub-section + +* [[trail: foo]] +* [[trail: bar]] diff --git a/contrib/nitiwiki/examples/nitiwiki/templates/template.html b/contrib/nitiwiki/examples/nitiwiki/templates/template.html index 7c43833..57196fa 100644 --- a/contrib/nitiwiki/examples/nitiwiki/templates/template.html +++ b/contrib/nitiwiki/examples/nitiwiki/templates/template.html @@ -21,7 +21,9 @@ %TOP_MENU%
+ %TRAIL% %BODY% + %TRAIL%
%FOOTER%
-- 1.7.9.5