Skip to content

Commit

Permalink
feat(templates): Add new tag template
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed May 26, 2014
1 parent 51eecc1 commit e297b2c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
13 changes: 1 addition & 12 deletions src/index.hbs
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
{{!< default}}

<aside role="banner" class="cover">
<div {{#if @blog.cover}}data-load-image="{{@blog.cover}}"{{/if}} class="cover-image"></div>
<div class="cover-container">
{{#if @blog.logo}}
<a href="{{@blog.url}}" class="cover-logo" data-pjax>
<img src="{{@blog.logo}}" alt="Blog Logo">
</a>
{{/if}}
<h1 class="cover-title">{{@blog.title}}</h1>
<p class="cover-description">{{@blog.description}}</p>
</div>
</aside>
{{> cover this}}

<section class="wrapper" tabindex="0">
<div class="wrapper-container">
Expand Down
12 changes: 12 additions & 0 deletions src/partials/cover.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<aside role="banner" class="cover">
<div {{#if @blog.cover}}data-load-image="{{@blog.cover}}"{{/if}} class="cover-image"></div>
<div class="cover-container">
{{#if @blog.logo}}
<a href="{{@blog.url}}" class="cover-logo" data-pjax>
<img src="{{@blog.logo}}" alt="Blog Logo">
</a>
{{/if}}
<h1 class="cover-title">{{@blog.title}}</h1>
<p class="cover-description">{{@blog.description}}</p>
</div>
</aside>
24 changes: 24 additions & 0 deletions src/tag.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{!< default}}

{{> cover this}}

<section class="wrapper" tabindex="0">
<div class="wrapper-container">
<header>
<p><h2>Posts tagged with <i>{{tag.name}}</i></h2></p>
<hr>
</header>

<section class="post-list">
{{#foreach posts}}
{{> post/list this}}
{{/foreach}}
</section>

{{#if pagination}}
{{pagination}}
{{/if}}

{{> footer this}}
</div>
</section>

0 comments on commit e297b2c

Please sign in to comment.