diff --git a/assets/css/screen.css b/assets/css/screen.css index 88c781d9..32105b6a 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -94,14 +94,6 @@ figcaption { background-color: transparent; } -.gh-head-inner { - padding: clamp(24px, 1.9355rem + 1.2903vw, 40px) 0; -} - -.gh-head-brand-wrapper { - gap: 32px; -} - .gh-head-logo { font-weight: 800; } @@ -114,15 +106,13 @@ figcaption { font-weight: 700; } -.gh-head-menu a { - color: inherit; +.is-head-stacked .gh-head-menu::before, +.is-head-stacked .gh-head-menu::after { + background-color: var(--color-border); } -.gh-head-btn.gh-btn { - height: 36px; - padding: 0 16px; - font-size: 1.6rem; - font-weight: 700; +.gh-head-menu a { + color: inherit; } @media (max-width: 991px) { diff --git a/default.hbs b/default.hbs index 8bffc330..8778dd23 100644 --- a/default.hbs +++ b/default.hbs @@ -36,69 +36,83 @@ {{ghost_head}} - -
-
-
- + +
- - -
- - {{#if @site.members_enabled}} - {{#unless @member}} - {{^is "home"}} - Subscribe - {{/is}} +
+
+
+
+ Account + {{@site.title}} + {{/if}} + +
+ + +
+ + + +
+ {{#unless @site.members_enabled}} + {{^match @custom.navigation_layout "Stacked"}} + + {{/match}} + {{else}} + + {{#unless @member}} + {{#unless @site.members_invite_only}} + Subscribe + {{else}} + Login {{/unless}} - {{/if}} -
-
-
- - {{{body}}} - -
-
- - - + {{/unless}}
-
-
+
+
- {{#is "post, page"}} - {{> "pswp"}} - {{/is}} + {{{body}}} - + + +
+ +{{#is "post, page"}} + {{> "pswp"}} +{{/is}} + + + +{{ghost_foot}} - {{ghost_foot}} diff --git a/package.json b/package.json index d47efa70..e3bcff56 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,11 @@ "type": "color", "default": "#ffffff" }, + "navigation_layout": { + "type": "select", + "options": ["Logo on the left", "Logo in the middle", "Stacked"], + "default": "Logo on the left" + }, "typography": { "type": "select", "options": ["Modern sans-serif", "Elegant serif", "Consistent mono"],