Skip to content

Commit

Permalink
Don't add post image if there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicbartl committed Sep 30, 2014
1 parent d151c7a commit 48c444a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}


{{! Everything below outputs content of the the post which has been published }}
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{#if tags}}on {{tags separator=" | "}}{{/if}}</span>

<h1 class="post-title">{{{title}}}</h1>

<img src="{{image}}" class="banner">
{{#if image}}
<img src="{{image}}" class="banner">
{{/if}}


<section class="post-content">
{{content}}
Expand Down
7 changes: 5 additions & 2 deletions standalone/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}


{{! Everything below outputs content of the the post which has been published }}
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{#if tags}}on {{tags separator=" | "}}{{/if}}</span>

<h1 class="post-title">{{{title}}}</h1>

<img src="{{image}}" class="banner">
{{#if image}}
<img src="{{image}}" class="banner">
{{/if}}


<section class="post-content">
{{content}}
Expand Down

0 comments on commit 48c444a

Please sign in to comment.