Skip to content

Commit

Permalink
Author image if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
max-holland committed May 23, 2014
1 parent d505156 commit 6c7f03f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<footer>
<ul class="clearfix">
<li itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="author-image hide-on-mobile" src="{{author.image}}" alt="{{author.name}}"><span class="author-info"><span rel="author" itemprop="url name">{{author.name}}</span> {{tags separator=", " prefix="in "}}</span>
{{#if author.image}}<img class="author-image hide-on-mobile" src="{{author.image}}" alt="{{author.name}}">{{/if}}<span class="author-info"><span rel="author" itemprop="url name">{{author.name}}</span> {{tags separator=", " prefix="in "}}</span>
</li>

</ul>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Peeves",
"version": "2.0.3c"
"version": "2.0.3d"
}
11 changes: 8 additions & 3 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<h1 itemprop="name">{{{title}}}</h1>
<ul class="clearfix">
<li class="hide-on-mobile">
<img class="author-image" src="{{author.image}}" alt="{{author.name}}"><span class="author-info">{{author.name}} {{tags separator=" , " prefix="in "}}</span>
{{#if author.image}}<img class="author-image" src="{{author.image}}" alt="{{author.name}}">{{/if}}<span class="author-info">{{author.name}} {{tags separator=" , " prefix="in "}}</span>
<span class="author-info hide-on-mobile" style="float:right;">&nbsp;read</span>
<span class="author-info post-reading-time " style="float:right;"></span>
</li>
<li class="hide-on-desktop hide-on-tablet">
<img class="author-image" src="{{author.image}}" alt="{{author.name}}"><span class="author-info">{{author.name}} </span>
{{#if author.image}}<img class="author-image" src="{{author.image}}" alt="{{author.name}}">{{/if}}<span class="author-info">{{author.name}} </span>
<span class="author-info post-reading-time" style="float:right;"></span>
</li>

Expand Down Expand Up @@ -72,8 +72,13 @@
<div class="author-wrapper" itemprop="author" itemscope itemtype="http://schema.org/Person">
<ul class="clearfix">


{{#if author.image}}
<li><img src="{{author.image}}" alt="{{author.name}}"></li>
<li>
<li>
{{else}}
<li style="margin-left:0;" >
{{/if}}
<h3 rel="author" itemprop="url name">{{author.name}}</h3>
<p>{{author.bio}}</p>
</li>
Expand Down
2 changes: 1 addition & 1 deletion tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<footer>
<ul class="clearfix">
<li itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="author-image hide-on-mobile" src="{{author.image}}" alt="{{author.name}}"><span class="author-info"><span rel="author" itemprop="url name">{{author.name}}</span> {{tags separator=", " prefix="in "}}</span>
{{#if author.image}}<img class="author-image hide-on-mobile" src="{{author.image}}" alt="{{author.name}}">{{/if}}<span class="author-info"><span rel="author" itemprop="url name">{{author.name}}</span> {{tags separator=", " prefix="in "}}</span>
</li>
</ul>
</footer>
Expand Down

0 comments on commit 6c7f03f

Please sign in to comment.