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

Commit 2c40a0b

Browse files
authored
Merge pull request kathyqian#49 from jichu4n/master
Support blog cover image
2 parents df07099 + 464ec2d commit 2c40a0b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A minimalist, responsive, and open-source theme for [Ghost](http://ghost.org) by
1616
* Add code for Google Analytics in **default.hbs** after `{{ghost_foot}}`
1717
* Replace the Disqus universal embed code in **partials/comments.hbs**, or delete the #comments div to remove comments altogether
1818
* Remove irrelevant social sharing services in **partials/share.hbs**, or change the colors of social sharing services in **assets/styles/rrssb.css**
19-
* Change your blog logo to change the favicon and the picture in the sidebar (the blog cover is not used)
19+
* Change your blog logo to change the favicon and the picture in the sidebar
2020

2121
### Editing Follow Buttons
2222

assets/styles/crisp.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ header {
2626
left: 0;
2727
height:100%;
2828
width:13.5em;
29+
background-repeat: no-repeat;
30+
background-size: cover;
2931
}
3032
#content {
3133
display: block;

default.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{ghost_head}}
2525
</head>
2626
<body class="{{body_class}}">
27-
<header id="header">
27+
<header id="header" {{#if @blog.cover_image}}style="background-image: url('{{@blog.cover_image}}')"{{/if}}>
2828
{{#if @blog.logo}}<a id="logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
2929
<h1><a href="{{@blog.url}}">{{@blog.title}}</a></h1>
3030
<p>{{@blog.description}}</p>

0 commit comments

Comments
 (0)