Wiring up blog cover image

This commit is contained in:
Hannah Wolfe 2013-09-09 18:07:19 +01:00
parent 74dfeb37b0
commit 9aaa0ec17a

View file

@ -4,7 +4,7 @@
the {body} of the default.hbs template, which contains our header/footer. }} the {body} of the default.hbs template, which contains our header/footer. }}
{{! The big featured header on the homepage, with the site logo and description }} {{! The big featured header on the homepage, with the site logo and description }}
<header id="site-head" {{! style="background-image: url()" }}> <header id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="vertical"> <div class="vertical">
<div id="site-head-content" class="inner"> <div id="site-head-content" class="inner">
@ -25,7 +25,7 @@
<header class="post-header"> <header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span> <span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2> <h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
</header> </header>
<section class="post-excerpt"> <section class="post-excerpt">
<p>{{excerpt}}&hellip;</p> <p>{{excerpt}}&hellip;</p>
@ -33,7 +33,7 @@
</article> </article>
{{/foreach}} {{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }} {{!! After all the posts, we have the previous/next pagination links }}
{{pagination}} {{pagination}}