Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Commit

Permalink
Added compatability with Ghost 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav Lindqvist committed Aug 23, 2017
1 parent 4a8a1e0 commit 1852827
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion author.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!< default}}
<header id="header" class="animated fadeIn"{{#if author.cover}} style="background-image: url({{author.cover}})"{{/if}}>
<header id="header" class="animated fadeIn"{{#if author.cover_image}} style="background-image: url({{author.cover_image}})"{{/if}}>
<div class="header-background">
<section class="blog-content">
<a id="site-url" class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
Expand Down
1 change: 0 additions & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />
<link href="//fonts.googleapis.com/css?family=Noto+Sans:300,400,700" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic" rel="stylesheet" type="text/css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"name": "Saga",
"version": "1.2.3",
"name": "saga",
"version": "1.2.5",
"description": "Tell your story! A Ghost theme designed for photoblogging",
"author": "Gustav Lindqvist"
"author": {
"name": "Gustav Lindqvist",
"email": "gustav@lindqvist.io",
"url": "https://saga.gustavlindqvist.se"
},
"config": {
"posts_per_page": 10
}
}
2 changes: 1 addition & 1 deletion page.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{!< default}}
{{#post ~}}
<header id="header" class="animated fadeIn"{{#if image}} style="background-image: url({{image}})"{{/if}}>
<header id="header" class="animated fadeIn"{{#if feature_image}} style="background-image: url({{feature_image}})"{{/if}}>
<div class="header-background">
<section class="blog-content">
<a id="site-url" class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
Expand Down
4 changes: 2 additions & 2 deletions partials/loop.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<section id="feed" class="feed">
{{#foreach posts}}
<article class="{{post_class}}" style="opacity: 0;">
{{#if image}}
{{#if feature_image}}
<a href="{{url}}" class="post-image">
<img src="{{image}}" alt="">
<img src="{{feature_image}}" alt="">
<h2 class="post-title">{{{title}}}</h2>
</a>{{else}}
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
Expand Down
2 changes: 1 addition & 1 deletion post.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{!< default}}
{{#post ~}}
<header id="header" class="animated fadeIn"{{#if image}} style="background-image: url({{image}})"{{/if}}>
<header id="header" class="animated fadeIn"{{#if feature_image}} style="background-image: url({{feature_image}})"{{/if}}>
<div class="header-background">
<section class="blog-content">
<a id="site-url" class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
Expand Down
4 changes: 2 additions & 2 deletions sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ body {
}
}

.home-template, .archive-template {
.home-template, .paged {
#header {
height: 60px;
position: relative;
Expand Down Expand Up @@ -414,7 +414,7 @@ body {
background-position: center;
}
}
.home-template, .archive-template {
.home-template, .paged {
#header {
.blog-content {
.blog-description {
Expand Down
2 changes: 1 addition & 1 deletion tag.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!< default}}
<header id="header" class="animated fadeIn"{{#if tag.image}} style="background-image: url({{tag.image}})"{{/if}}>
<header id="header" class="animated fadeIn"{{#if tag.feature_image}} style="background-image: url({{tag.feature_image}})"{{/if}}>
<div class="header-background">
<section class="blog-content">
<a id="site-url" class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
Expand Down

0 comments on commit 1852827

Please sign in to comment.