Skip to content

Commit

Permalink
Fixed all bugs with post page bios (#7). Set v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gauderkd committed Jun 11, 2016
1 parent c730aec commit 245c747
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 35 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Here is what the edited theme looks like
- Different hover effect for Featured posts
- Social Icons (from [Font Awesome](http://fontawesome.io/icons/)) with hover effects
- Increased excerpt length
- Added Author bios to bottom of Post Pages
- Added Author image to top of Post Page meta bar
- Author bios at bottom of Post Pages (similar to Casper theme)

[Click here to see the theme in action](http://www.fdraconis.com/)

Expand All @@ -32,10 +31,10 @@ Here is what the edited theme looks like
- Removed ".nav-menu" and ".menu" hierarchy (no pop-up menu).
- Moved {{navigation}} HB expression from footer to body where nav-menu was

### post.hbs
## posts.hbs

- Added code for Author Meta information (image, bio, links, etc) at the bottom of the posts (after tags, before Disqus)
- Added author image to top of post meta (with the author name, date, number of words...)
- Added code in footer for bios
- Includes picture, bio, location and website link

### /partials/loop.hbs

Expand Down
25 changes: 14 additions & 11 deletions assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
<a href="https://www.youtube.com/c/LittleGadgetGames"><i class="fa fa-inverse fa-youtube-play" aria-hidden="true" ></i></a>
<a href="https://twitter.com/LittleGadgeting"><i class="fa fa-inverse fa-twitter" aria-hidden="true"></i></a>
<a href="https://github.com/gauderkd"><i class="fa fa-inverse fa-github" aria-hidden="true"></i></a>
<!--
<a href="https://www.etsy.com/ca/shop/PumpernickelCottage"><i class="fa fa-inverse fa-paint-brush" aria-hidden="true"></i></a>
-->

</div>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Bleak-Draconis",
"version": "1.3",
"name": "bleak-Draconis",
"version": "1.2",
"description": "Ghost Theme",
"author": "Peter Amende (edits by Kyle Gauder)",
"repository": {
Expand Down
22 changes: 7 additions & 15 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,8 @@

<header class="post-header">
<span class="post-meta">
<span class="aimage-postmeta-span">
{{#author}}
{{#if image}}
<figure class="author-image-postmeta">
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}
{{/author}}
</span>
<div class="rest-of-meta">
<span class="post-author">{{author}}</span> | <span class="post-date">{{date format="DD MMM YYYY"}} <span class="post-reading-time">| <span class="estimated-reading-time"></span> (<span class="word-count"></span> words)</span></span>
</div>
</span>
<span class="post-author">{{author}}</span> | <span class="post-date">{{date format="DD MMM YYYY"}} <span class="post-reading-time">| <span class="estimated-reading-time"></span> (<span class="word-count"></span> words)</span></span>
</span>
<div class="clear"></div>
<h1 class="post-title">{{{title}}}</h1>
</header>
Expand Down Expand Up @@ -54,17 +43,20 @@
<figure class="author-image">
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}
<section class="author-section">
{{else}}
<section class="author-section-noimage">
{{/if}}
<h4 class="author-name"><a href="{{url}}">{{name}}</a></h4>
{{#if bio}}
<p>{{bio}}</p>
{{else}}
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
{{/if}}
<div class="author-meta">
{{#if location}}<i class="fa fa-map-marker" aria-hidden="true"></i><div class="author-location">{{location}}</div>{{/if}}
{{#if location}}<i class="fa fa-map-marker" aria-hidden="true"></i><div class="author-location">{{location}}</div>
<div class="author-meta-break"> | </div>
{{/if}}
{{#if website}}<i class="fa fa-link" aria-hidden="true"></i><a href="{{website}}">{{website}}</a>{{/if}}
</div>
</section>
Expand Down

0 comments on commit 245c747

Please sign in to comment.