Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Ghost v2 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down
37 changes: 18 additions & 19 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,30 @@

{{! Page Meta }}
<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />

<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

{{! Favicon }}
<link rel="apple-touch-icon" sizes="57x57" href="/assets/img/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/assets/img/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/assets/img/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/assets/img/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/assets/img/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/assets/img/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/assets/img/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/assets/img/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/assets/img/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/assets/img/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/assets/img/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/assets/img/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="/assets/img/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/img/favicons/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="{{asset "img/favicons/apple-touch-icon-57x57.png"}}">
<link rel="apple-touch-icon" sizes="60x60" href="{{asset "img/favicons/apple-touch-icon-60x60.png"}}">
<link rel="apple-touch-icon" sizes="72x72" href="{{asset "img/favicons/apple-touch-icon-72x72.png"}}">
<link rel="apple-touch-icon" sizes="76x76" href="{{asset "img/favicons/apple-touch-icon-76x76.png"}}">
<link rel="apple-touch-icon" sizes="114x114" href="{{asset "img/favicons/apple-touch-icon-114x114.png"}}">
<link rel="apple-touch-icon" sizes="120x120" href="{{asset "img/favicons/apple-touch-icon-120x120.png"}}">
<link rel="apple-touch-icon" sizes="144x144" href="{{asset "img/favicons/apple-touch-icon-144x144.png"}}">
<link rel="apple-touch-icon" sizes="152x152" href="{{asset "img/favicons/apple-touch-icon-152x152.png"}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{asset "img/favicons/apple-touch-icon-180x180.png"}}">
<link rel="icon" type="image/png" href="{{asset "img/favicons/favicon-32x32.png"}}" sizes="32x32">
<link rel="icon" type="image/png" href="{{asset "img/favicons/android-chrome-192x192.png"}}" sizes="192x192">
<link rel="icon" type="image/png" href="{{asset "img/favicons/favicon-96x96.png"}}" sizes="96x96">
<link rel="icon" type="image/png" href="{{asset "img/favicons/favicon-16x16.png"}}" sizes="16x16">
<link rel="manifest" href="{{asset "img/favicons/manifest.json"}}">
<link rel="mask-icon" href="{{asset "img/favicons/safari-pinned-tab.svg"}}" color="#5bbad5">
<link rel="shortcut icon" href="{{asset "img/favicons/favicon.ico"}}">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/assets/img/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="/assets/img/favicons/browserconfig.xml">
<meta name="msapplication-TileImage" content="{{asset "img/favicons/mstile-144x144.png"}}">
<meta name="msapplication-config" content="{{asset "img/favicons/browserconfig.xml"}}">
<meta name="theme-color" content="#ffffff">

{{! Styles'n'Scripts }}
Expand Down
4 changes: 2 additions & 2 deletions partials/loop.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">&raquo;</a></p>
</section>
<footer class="post-meta">
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{author}}
{{#if primary_author.profile_image}}<img class="author-thumb" src="{{primary_author.profile_image}}" alt="{{primary_author.name}}" nopin="nopin" />{{/if}}
{{primary_author.name}}
{{tags prefix=" on "}}
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
</footer>
Expand Down
10 changes: 5 additions & 5 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@

<footer class="post-footer">

{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
{{! Everything inside the #primary_author tags pulls data from the author }}
{{#primary_author}}

{{#if author.profile_image}}
{{#if primary_author.profile_image}}
<figure class="author-image">
<a class="img" href="{{url}}" style="background-image: url({{author.profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
<a class="img" href="{{url}}" style="background-image: url({{primary_author.profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}

Expand All @@ -59,7 +59,7 @@
</div>
</section>

{{/author}}
{{/primary_author}}



Expand Down