Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
fix: migrate usage of feature_image and title to v1.0 syntax
Browse files Browse the repository at this point in the history
Closes #5, #4
  • Loading branch information
dcefram committed Aug 15, 2017
1 parent bc3b2c3 commit 79dd9de
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
{{#foreach posts}}

<article class="preview">
{{#if img_url feature_image}}
{{#if feature_image}}
<div class="preview-image">
<a href="{{url}}" title="{{title}}"><p><img src="{{img_url feature_image}}" alt="Featured" /></p></a>
</div>
{{/if}}
<header>
<h1 class="post-title"><a href="{{url}}">{{{title}}}</a></h1>
<h1 class="post-title"><a href="{{url}}">{{title}}</a></h1>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="dddd, MMMM DD, YYYY"}}</time></div>
</header>
<section class="post-excerpt">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stupendous",
"version": "2.0.0",
"version": "2.0.1",
"author": {
"email": "[email protected]"
},
Expand Down
14 changes: 7 additions & 7 deletions page.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{{!< default}}
{{#post}}
<main class="content{{#if img_url feature_image}} with-header{{/if}}" role="main">
{{#if img_url feature_image}}
<main class="content{{#if feature_image}} with-header{{/if}}" role="main">
{{#if feature_image}}
<div class="post-background">
<div class="image" style="background-image: url({{img_url feature_image}});"></div>
<div class="image" style="background-image: url({{feature_image}});"></div>
</div>
<header class="post-header">
<h1 class="post-title">{{{title}}}</h1>
<h1 class="post-title">{{title}}</h1>
</header>

{{/if}}

<article class="{{post_class}} {{#unless img_url feature_image}}no-post-header{{/unless}}">
{{^if img_url feature_image}}
<article class="{{post_class}} {{#unless feature_image}}no-post-header{{/unless}}">
{{^if feature_image}}
<header>
<h1 class="post-title">{{{title}}}</h1>
<h1 class="post-title">{{title}}</h1>
</header>
{{/if}}

Expand Down
22 changes: 11 additions & 11 deletions post.hbs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{{!< default}}
{{#post}}
<main class="content{{#if img_url feature_image}} with-header{{/if}}" role="main">
{{#if img_url feature_image}}
<main class="content{{#if feature_image}} with-header{{/if}}" role="main">
{{#if feature_image}}
<div class="post-background">
<div class="image" style="background-image: url({{img_url feature_image}});"></div>
<div class="image" style="background-image: url({{feature_image}});"></div>
</div>
<header class="post-header">
<h1 class="post-title">{{{title}}}</h1>
<h1 class="post-title">{{title}}</h1>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="dddd, MMMM DD, YYYY"}}</time></div>
</header>

{{/if}}

<article class="{{post_class}} {{#unless image}}no-post-header{{/unless}}">
{{#unless img_url feature_image}}
{{#unless feature_image}}
<header>
<h1 class="post-title">{{{title}}}</h1>
<h1 class="post-title">{{title}}</h1>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="dddd, MMMM DD, YYYY"}}</time></div>
</header>
{{/unless}}
Expand Down Expand Up @@ -55,23 +55,23 @@



{{!> comments-disqus}}
{{> comments-disqus}}
{{!> comments-facebook}}
{{!> comments-google-plus}}
</article>

<aside class="read-next">
{{#next_post}}
<a class="read-next-story" href="{{url}}"{{#if img_url feature_image}} style="background-image: url({{img_url feature_image}});"{{/if}}>
<section class="post{{#if img_url feature_image}} cover-background{{/if}}">
<a class="read-next-story" href="{{url}}"{{#if feature_image}} style="background-image: url({{feature_image}});"{{/if}}>
<section class="post{{#if feature_image}} cover-background{{/if}}">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}&hellip;</p>
</section>
</a>
{{/next_post}}
{{#prev_post}}
<a class="read-next-story prev" href="{{url}}"{{#if img_url feature_image}} style="background-image: url({{img_url feature_image}});"{{/if}}>
<section class="post{{#if img_url feature_image}} cover-background{{/if}}">
<a class="read-next-story prev" href="{{url}}"{{#if feature_image}} style="background-image: url({{feature_image}});"{{/if}}>
<section class="post{{#if feature_image}} cover-background{{/if}}">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}&hellip;</p>
</section>
Expand Down
4 changes: 2 additions & 2 deletions tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
{{#foreach posts}}

<article class="preview">
{{#if img_url feature_image}}
{{#if feature_image}}
<div class="preview-image">
<a href="{{url}}" title="{{title}}"><p><img src="{{img_url feature_image}}" alt="Featured" /></p></a>
</div>
{{/if}}
<header>
<h1 class="post-title"><a href="{{url}}">{{{title}}}</a></h1>
<h1 class="post-title"><a href="{{url}}">{{title}}</a></h1>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="dddd, MMMM DD, YYYY"}}</time></div>
</header>
<section class="post-excerpt">
Expand Down

0 comments on commit 79dd9de

Please sign in to comment.