From: Neil Smith Date: Sun, 5 Apr 2020 12:30:18 +0000 (+0100) Subject: Primary navigation overridden by secondary X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=842d703b029d8eddf7e88dff82e25026c42e9c6b;p=editorial.git Primary navigation overridden by secondary --- diff --git a/default.hbs b/default.hbs index 1ea4e2f..7bd9528 100644 --- a/default.hbs +++ b/default.hbs @@ -20,6 +20,31 @@ + +
@@ -32,12 +57,7 @@ {{/if}}
    - {{#if @site.twitter}} -
  • Twitter
  • - {{/if}} - {{#if @site.facebook}} -
  • Facebook
  • - {{/if}} + {{ navigation type="secondary" }}
  • RSS
diff --git a/package.json b/package.json index 1db70e3..8e9e0fd 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "editorial", + "name": "editorial-neil", "description": "This is Editorial, a news-oriented theme for Ghost.", "demo": "https://editorial.ghost.io", - "version": "2.0.0", + "version": "2.0.1", "engines": { "ghost": ">=3.0.0", "ghost-api": "v3" diff --git a/partials/navigation.hbs b/partials/navigation.hbs index 37d1877..a1ea16a 100644 --- a/partials/navigation.hbs +++ b/partials/navigation.hbs @@ -1,10 +1,30 @@ - \ No newline at end of file + +{{#if isSecondary}} + + {{#foreach navigation}} + + {{/foreach}} + +{{else}} + + + +{{/if}} +