Skip to content

Commit

Permalink
Merge pull request #89 from polygonix/add_taghbs
Browse files Browse the repository at this point in the history
Add tag.hbs template
  • Loading branch information
JohnONolan committed Mar 19, 2014
2 parents fdb5248 + 381cdc7 commit c965ac3
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 10 deletions.
70 changes: 60 additions & 10 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
3. Utilities
4. General
5. Single Post
6. Third Party Elements
7. Pagination
8. Footer
9. Media Queries (Tablet)
10. Media Queries (Mobile)
6. Tag Archive
7. Third Party Elements
8. Pagination
9. Footer
10. Media Queries (Tablet)
11. Media Queries (Mobile)
*/

Expand Down Expand Up @@ -731,7 +732,56 @@ margin on the iframe, cause it breaks stuff. */


/* ==========================================================================
6. Third Party Elements - Embeds from other services
6. Tag archive
========================================================================== */

.archive-template .site-head {
height: auto;
padding-bottom: 5rem;
}

.archive-template .site-head a {
color: #fff;
}

.archive-template .blog-logo {
display: block;
margin-top: 5rem;
}

.tag-archive-header {
padding: 20px 0;
text-align: center;
max-width: 700px;
margin: 4rem auto;
border-bottom: 1px solid #EBF2F6;
position: relative;
}

.tag-archive-header:after {
display: block;
content: "";
width: 7px;
height: 7px;
border: #E7EEF2 1px solid;
position: absolute;
bottom: -5px;
left: 50%;
margin-left: -5px;
background: #fff;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
border-radius: 100%;
box-shadow: #fff 0 0 0 5px;
}

.archive-template .blog-title {
display: inline-block;
padding: 2.5rem 0;
}

/* ==========================================================================
7. Third Party Elements - Embeds from other services
========================================================================== */

/* Github */
Expand All @@ -748,7 +798,7 @@ margin on the iframe, cause it breaks stuff. */


/* ==========================================================================
7. Pagination - Tools to let you flick between pages
8. Pagination - Tools to let you flick between pages
========================================================================== */

/* The main wrapper for our pagination links */
Expand Down Expand Up @@ -799,7 +849,7 @@ margin on the iframe, cause it breaks stuff. */


/* ==========================================================================
8. Footer - The bottom of every page
9. Footer - The bottom of every page
========================================================================== */

.site-footer {
Expand Down Expand Up @@ -916,7 +966,7 @@ margin on the iframe, cause it breaks stuff. */


/* ==========================================================================
9. Media Queries - Smaller than 900px
10. Media Queries - Smaller than 900px
========================================================================== */

@media only screen and (max-width: 900px) {
Expand Down Expand Up @@ -977,7 +1027,7 @@ margin on the iframe, cause it breaks stuff. */
}

/* ==========================================================================
10. Media Queries - Smaller than 500px
11. Media Queries - Smaller than 500px
========================================================================== */


Expand Down
43 changes: 43 additions & 0 deletions tag.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{!< default}}

{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}

{{! The big featured header on the homepage, with the site logo and description }}
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="vertical">
<div class="site-head-content inner">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
<h2 class="blog-description">{{@blog.description}}</h2>
</div>
</div>
</header>

{{! The main content area on the homepage }}
<main class="content" role="main">

<header class="tag-archive-header">
<h1>{{tag.name}}</h1>
</header>

{{! Each post will be output using this markup }}
{{#foreach posts}}

<article class="{{post_class}}">
<header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{tags prefix="on "}}</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>

</header>
<section class="post-excerpt">
<p>{{excerpt}}&hellip;</p>
</section>
</article>

{{/foreach}}

{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}

</main>

0 comments on commit c965ac3

Please sign in to comment.