From 95ed945f4d538d66c456b2c89bb87ca47223210f Mon Sep 17 00:00:00 2001 From: Meyer Zinn <20zinnm@users.noreply.github.com> Date: Wed, 29 Jun 2016 13:56:13 -0400 Subject: [PATCH 1/2] Update index.hbs Changes it to use the dynamic {{navigation}} placeholder or the defaults in case there's no navigation. --- index.hbs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.hbs b/index.hbs index 7ce655b..02e8805 100644 --- a/index.hbs +++ b/index.hbs @@ -12,8 +12,13 @@

{{@blog.title}}

{{@blog.description}}

- Take a tour - Cut to the chase
+ {{#if @blog.navigation}} + {{navigation}} + {{else}} + Take a tour + Cut to the chase
+ {{/if}} + @@ -57,4 +62,4 @@ {{!! After all the posts, we have the previous/next pagination links }} - \ No newline at end of file + From 2d7f211bcf4c106fc57f2dd04416a50990573854 Mon Sep 17 00:00:00 2001 From: Meyer Zinn <20zinnm@users.noreply.github.com> Date: Wed, 29 Jun 2016 13:57:16 -0400 Subject: [PATCH 2/2] Create navigation.hbs --- partials/navigation.hbs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 partials/navigation.hbs diff --git a/partials/navigation.hbs b/partials/navigation.hbs new file mode 100644 index 0000000..a6dc7de --- /dev/null +++ b/partials/navigation.hbs @@ -0,0 +1,3 @@ +{{#foreach navigation}} + {{label}} +{{/foreach}}