From db8bbfcfabe9ad655b4969bc58aa6e3156dd9042 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 17 Nov 2016 15:12:18 -0500 Subject: [PATCH] Add sample sidebar navigation post --- .../2012-03-15-layout-sidebar-custom.md | 4 +- .../2012-03-15-layout-sidebar-nav-list.md | 62 +++++++++++++++++++ .../2012-03-15-layout-sidebar-custom.md | 4 +- .../2012-03-15-layout-sidebar-nav-list.md | 62 +++++++++++++++++++ 4 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 docs/_posts/2012-03-15-layout-sidebar-nav-list.md create mode 100644 test/_posts/2012-03-15-layout-sidebar-nav-list.md diff --git a/docs/_posts/2012-03-15-layout-sidebar-custom.md b/docs/_posts/2012-03-15-layout-sidebar-custom.md index 0dcbbfe2..ee49173e 100644 --- a/docs/_posts/2012-03-15-layout-sidebar-custom.md +++ b/docs/_posts/2012-03-15-layout-sidebar-custom.md @@ -1,6 +1,6 @@ --- title: "Layout: Sidebar Custom" -excerpt: "A post to custom sidebar content." +excerpt: "A post with custom sidebar content." author_profile: false sidebar: - title: "Title" @@ -11,7 +11,7 @@ sidebar: text: "More text here." --- -This post has a custom sidebar set in the post's YAML Front Matter.. +This post has a custom sidebar set in the post's YAML Front Matter. An example of how that YAML could look is: diff --git a/docs/_posts/2012-03-15-layout-sidebar-nav-list.md b/docs/_posts/2012-03-15-layout-sidebar-nav-list.md new file mode 100644 index 00000000..984ff796 --- /dev/null +++ b/docs/_posts/2012-03-15-layout-sidebar-nav-list.md @@ -0,0 +1,62 @@ +--- +title: "Layout: Sidebar with Navigation List" +excerpt: "A post with a sidebar navigation list." +author_profile: false +sidebar: + title: "Sample Title" + nav: sidebar-sample +--- + +This post has a custom navigation list set in the post's YAML Front Matter. + +```yaml +sidebar: + title: "Sample Title" + nav: sidebar-sample +``` + +Along with navigation elements set in `_data/navigation.yml`. + +```yaml +sidebar-sample: + - title: "Parent Page A" + children: + - title: "Child Page A1" + url: / + - title: "Child Page A2" + url: / + - title: "Child Page A3" + url: / + - title: "Child Page A4" + url: / + - title: "Parent Page B" + children: + - title: "Child Page B1" + url: / + - title: "Child Page B2" + url: / + - title: "Child Page B3" + url: / + - title: "Child Page B4" + url: / + - title: "Child Page B5" + url: / + - title: "Parent Page C" + children: + - title: "Child Page C1" + url: / + - title: "Child Page C2" + url: / + - title: "Child Page C3" + url: / + - title: "Child Page C4" + url: / + - title: "Child Page C5" + url: / + - title: "Parent Page D" + children: + - title: "Child Page D1" + url: / + - title: "Child Page D2" + url: / +``` \ No newline at end of file diff --git a/test/_posts/2012-03-15-layout-sidebar-custom.md b/test/_posts/2012-03-15-layout-sidebar-custom.md index 0dcbbfe2..ee49173e 100644 --- a/test/_posts/2012-03-15-layout-sidebar-custom.md +++ b/test/_posts/2012-03-15-layout-sidebar-custom.md @@ -1,6 +1,6 @@ --- title: "Layout: Sidebar Custom" -excerpt: "A post to custom sidebar content." +excerpt: "A post with custom sidebar content." author_profile: false sidebar: - title: "Title" @@ -11,7 +11,7 @@ sidebar: text: "More text here." --- -This post has a custom sidebar set in the post's YAML Front Matter.. +This post has a custom sidebar set in the post's YAML Front Matter. An example of how that YAML could look is: diff --git a/test/_posts/2012-03-15-layout-sidebar-nav-list.md b/test/_posts/2012-03-15-layout-sidebar-nav-list.md new file mode 100644 index 00000000..984ff796 --- /dev/null +++ b/test/_posts/2012-03-15-layout-sidebar-nav-list.md @@ -0,0 +1,62 @@ +--- +title: "Layout: Sidebar with Navigation List" +excerpt: "A post with a sidebar navigation list." +author_profile: false +sidebar: + title: "Sample Title" + nav: sidebar-sample +--- + +This post has a custom navigation list set in the post's YAML Front Matter. + +```yaml +sidebar: + title: "Sample Title" + nav: sidebar-sample +``` + +Along with navigation elements set in `_data/navigation.yml`. + +```yaml +sidebar-sample: + - title: "Parent Page A" + children: + - title: "Child Page A1" + url: / + - title: "Child Page A2" + url: / + - title: "Child Page A3" + url: / + - title: "Child Page A4" + url: / + - title: "Parent Page B" + children: + - title: "Child Page B1" + url: / + - title: "Child Page B2" + url: / + - title: "Child Page B3" + url: / + - title: "Child Page B4" + url: / + - title: "Child Page B5" + url: / + - title: "Parent Page C" + children: + - title: "Child Page C1" + url: / + - title: "Child Page C2" + url: / + - title: "Child Page C3" + url: / + - title: "Child Page C4" + url: / + - title: "Child Page C5" + url: / + - title: "Parent Page D" + children: + - title: "Child Page D1" + url: / + - title: "Child Page D2" + url: / +``` \ No newline at end of file