Compare commits

...

15 Commits
1.1.0 ... 1.1.4

Author SHA1 Message Date
82253b06f2 Derp 2014-12-23 14:21:53 +02:00
969a20ef6d Add tag mgmt support to Casper 2014-12-23 13:50:59 +02:00
dbaaf955af Version bump to 1.1.3 2014-12-04 15:32:09 +00:00
de94edc8a8 Merge pull request #149 from conradkleinespel/master
Support for Pastebin embeds
2014-11-29 11:12:20 +01:00
1292f2e22b support for pastebin 2014-11-29 00:09:46 +01:00
933ebb86ca Version bump to 1.1.2 2014-11-17 17:24:50 +00:00
cb1196630b Merge pull request #147 from novaugust/page-fix
Move page #post helper to encapsulate image references
2014-11-11 07:34:45 +01:00
bcdbdab861 Move page #post helper to encapsulate image references
Ref #143
- Fixes header images for static pages
2014-11-10 22:02:52 -07:00
9a1988aa6d Merge pull request #143 from cubb/master
Fixes to visual bugs on static pages
2014-10-29 18:31:04 +01:00
e2911f2d46 Changed button background fix to match post.hbs
As per JohnONolan’s suggestion, I have edited the nav to match the code
in post.hbs: https://github.com/TryGhost/Casper/blob/master/post.hbs#L9
2014-10-29 10:14:00 -07:00
df09b7c375 Fixed bottom margin on static page post-title h1
Static pages were previously missing a margin on the bottom of the
post-title h1. By adding <header> with a post-header class around the
h1, we gain the exact same bottom margin as seen on post (non-static)
pages.
2014-10-29 09:24:31 -07:00
09d827249f Removed button backgrounds on static pages
The home and subscribe buttons had backgrounds on static pages, but not
post pages. The backgrounds are now removed from these buttons on
static pages.
2014-10-29 09:17:57 -07:00
e264f609de Version bump to 1.1.1 2014-10-18 21:43:45 +02:00
12ad5f5404 Merge pull request #136 from novaugust/master
Remove old reference to medium desktop media queries from ToC
2014-09-29 09:09:01 +02:00
ba798581ec Remove old reference to medium desktop media queries from ToC 2014-09-28 14:19:58 -06:00
4 changed files with 31 additions and 16 deletions

View File

@ -14,10 +14,9 @@
7. Third Party Elements 7. Third Party Elements
8. Pagination 8. Pagination
9. Footer 9. Footer
10. Media Queries (Medium Desktop) 10. Media Queries (Tablet)
11. Media Queries (Tablet) 11. Media Queries (Mobile)
12. Media Queries (Mobile) 12. Animations
13. Animations
*/ */
@ -1199,6 +1198,10 @@ body:not(.post-template) .post-title {
font-size: 1.1rem; font-size: 1.1rem;
} }
/* Pastebin */
.content .embedPastebin {
margin-bottom: 1.75em;
}
/* ========================================================================== /* ==========================================================================
8. Pagination - Tools to let you flick between pages 8. Pagination - Tools to let you flick between pages

View File

@ -1,4 +1,4 @@
{ {
"name": "Casper", "name": "Casper",
"version": "1.1.0" "version": "1.1.4"
} }

View File

@ -3,24 +3,30 @@
{{! This is a page template. A page outputs content just like any other post, and has all the same {{! This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. }} attributes by default, but you can also customise it to behave differently if you prefer. }}
<nav class="main-nav clearfix"> {{! Everything inside the #post tags pulls data from the page }}
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a> {{#post}}
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
</nav> <header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
</nav>
</header>
<main class="content" role="main"> <main class="content" role="main">
<article class="{{post_class}}"> <article class="{{post_class}}">
{{! Everything inside the #post tags pulls data from the post }} {{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<h1 class="post-title">{{title}}</h1> <header class="post-header">
<h1 class="post-title">{{title}}</h1>
</header>
<section class="post-content"> <section class="post-content">
{{content}} {{content}}
</section> </section>
{{/post}}
</article> </article>
</main> </main>
{{/post}}

14
tag.hbs
View File

@ -1,8 +1,8 @@
{{!< default}} {{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }} {{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
{{! The big featured header }} {{! If we have a tag cover, display that - else blog cover - else nothing }}
<header class="main-header tag-head {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}"> <header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
<nav class="main-nav overlay clearfix"> <nav class="main-nav overlay clearfix">
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a> <a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
<a class="subscribe-button icon-feed" href="{{@blog.url}}/tag/{{tag.slug}}/rss/">{{tag.name}}</a> <a class="subscribe-button icon-feed" href="{{@blog.url}}/tag/{{tag.slug}}/rss/">{{tag.name}}</a>
@ -10,7 +10,13 @@
<div class="vertical"> <div class="vertical">
<div class="main-header-content inner"> <div class="main-header-content inner">
<h1 class="page-title">{{tag.name}}</h1> <h1 class="page-title">{{tag.name}}</h1>
<h2 class="page-description">A {{pagination.total}}-post collection</h2> <h2 class="page-description">
{{#if tag.description}}
{{tag.description}}
{{else}}
A {{pagination.total}}-post collection
{{/if}}
</h2>
</div> </div>
</div> </div>
</header> </header>
@ -21,4 +27,4 @@
{{! The tag below includes the post loop - partials/loop.hbs }} {{! The tag below includes the post loop - partials/loop.hbs }}
{{> "loop"}} {{> "loop"}}
</main> </main>