From bfe5b0055ba46c5431e1fcca2982e74c936a8a87 Mon Sep 17 00:00:00 2001 From: Matthew Hinton Date: Thu, 23 Aug 2018 10:18:37 -0500 Subject: [PATCH] Update for Ghost v2 --- assets/css/screen.css | 24 ++++++++++++++++-------- default.hbs | 37 ++++++++++++++++++------------------- partials/loop.hbs | 4 ++-- post.hbs | 10 +++++----- 4 files changed, 41 insertions(+), 34 deletions(-) diff --git a/assets/css/screen.css b/assets/css/screen.css index 13e1011..b247270 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -25,6 +25,14 @@ 0. Normalize.css v2.1.3 | MIT License | git.io/normalize | (minified) ========================================================================== */ +.post-full-content .kg-width-wide .kg-image { + max-width: 1040px; +} + +.post-full-content .kg-width-full .kg-image { + max-width: 100vw; +} + article, aside, details, figcaption, figure, footer, header, hgroup, @@ -758,8 +766,8 @@ body.nav-opened .nav { /* Hide when there's no cover image or on page2+ */ .no-cover .scroll-down, .no-cover.main-header:after, -.archive-template .scroll-down, -.archive-template .main-header:after { +.paged .scroll-down, +.paged .main-header:after { display: none } @@ -1325,7 +1333,7 @@ body:not(.post-template) .post-title { /* Turn off meta for page2+ to make room for extra pagination prev/next links */ -.archive-template .author-profile .author-meta { +.paged .author-profile .author-meta { display: none; } @@ -1553,12 +1561,12 @@ body:not(.post-template) .post-title { } /* On page2+ make all the headers smaller */ -.archive-template .main-header { +.paged .main-header { max-height: 30vh; } /* On page2+ show extra pagination controls at the top of post list */ -.archive-template .extra-pagination { +.paged .extra-pagination { display: block; } @@ -1624,7 +1632,7 @@ body:not(.post-template) .post-title { .scroll-down, .home-template .main-header:after { display: none; } - .archive-template .main-header { + .paged .main-header { min-height: 180px; padding: 10% 0; } @@ -1754,7 +1762,7 @@ body:not(.post-template) .post-title { height: 30vh; } - .archive-template .main-header { + .paged .main-header { max-height: 20vh; min-height: 160px; padding: 10% 0; @@ -1986,7 +1994,7 @@ body:not(.post-template) .post-title { font-size: 1.4rem; } - .archive-template .main-header .page-description { + .paged .main-header .page-description { display: none; } diff --git a/default.hbs b/default.hbs index 15dc52b..8e15032 100644 --- a/default.hbs +++ b/default.hbs @@ -7,31 +7,30 @@ {{! Page Meta }} {{meta_title}} - {{! Favicon }} - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + {{! Styles'n'Scripts }} diff --git a/partials/loop.hbs b/partials/loop.hbs index f496280..e0a2a00 100644 --- a/partials/loop.hbs +++ b/partials/loop.hbs @@ -13,8 +13,8 @@

{{excerpt words="26"}} »

diff --git a/post.hbs b/post.hbs index a235c2c..f1a0797 100644 --- a/post.hbs +++ b/post.hbs @@ -36,12 +36,12 @@