Skip to content

Commit

Permalink
Upgrade to Ghost 0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianchia committed Mar 4, 2015
1 parent 8f33769 commit 5d2ad1b
Show file tree
Hide file tree
Showing 812 changed files with 68,053 additions and 66,142 deletions.
449 changes: 278 additions & 171 deletions content/themes/casper/assets/css/screen.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions content/themes/casper/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@

$(".scroll-down").arctic_scroll();

$(".menu-button, .nav-cover, .nav-close").on("click", function(e){
e.preventDefault();
$("body").toggleClass("nav-opened nav-closed");
});

});

// smartresize
Expand Down
12 changes: 8 additions & 4 deletions content/themes/casper/author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
{{#author}}
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
<a class="subscribe-button icon-feed" href="{{url}}rss/">{{name}}</a>
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{/if}}
</nav>
</header>

Expand All @@ -19,7 +21,9 @@
</figure>
{{/if}}
<h1 class="author-title">{{name}}</h1>
<h2 class="author-bio">{{bio}}</h2>
{{#if bio}}
<h2 class="author-bio">{{bio}}</h2>
{{/if}}
<div class="author-meta">
{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
{{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
Expand All @@ -34,4 +38,4 @@
{{! The tag below includes the post loop - partials/loop.hbs }}
{{> "loop"}}

</main>
</main>
20 changes: 13 additions & 7 deletions content/themes/casper/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@
{{! Ghost outputs important style and meta data with this tag }}
{{ghost_head}}
</head>
<body class="{{body_class}}">
<body class="{{body_class}} nav-closed">

{{! Everything else gets inserted here }}
{{{body}}}
{{navigation}}

<footer class="site-footer clearfix">
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> &copy; {{date format="YYYY"}}</section>
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
</footer>
<div class="site-wrapper">

{{! Everything else gets inserted here }}
{{{body}}}

<footer class="site-footer clearfix">
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> &copy; {{date format="YYYY"}}</section>
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
</footer>

</div>

{{! Ghost outputs important scripts and data with this tag }}
{{ghost_foot}}
Expand Down
6 changes: 4 additions & 2 deletions content/themes/casper/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
{{#if @blog.navigation}}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{/if}}
</nav>
<div class="vertical">
<div class="main-header-content inner">
Expand All @@ -22,4 +24,4 @@
{{! The tag below includes the post loop - partials/loop.hbs }}
{{> "loop"}}

</main>
</main>
2 changes: 1 addition & 1 deletion content/themes/casper/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Casper",
"version": "1.1.5"
"version": "1.1.6"
}
9 changes: 4 additions & 5 deletions content/themes/casper/page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

<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>
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{/if}}
</nav>
</header>

<main class="content" role="main">

<article class="{{post_class}}">
{{! Everything inside the #post tags pulls data from the post }}

<header class="post-header">
<h1 class="post-title">{{title}}</h1>
Expand All @@ -27,6 +27,5 @@
</section>

</article>

</main>
{{/post}}
13 changes: 13 additions & 0 deletions content/themes/casper/partials/navigation.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="nav">
<h3 class="nav-title">Menu</h3>
<a href="#" class="nav-close">
<span class="hidden">Close</span>
</a>
<ul>
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
{{/foreach}}
</ul>
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
</div>
<span class="nav-cover"></span>
8 changes: 4 additions & 4 deletions content/themes/casper/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

<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>
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{/if}}
</nav>
</header>

<main class="content" role="main">

<article class="{{post_class}}">

<header class="post-header">
Expand Down Expand Up @@ -86,7 +87,6 @@
</footer>

</article>

</main>

{{/post}}
6 changes: 4 additions & 2 deletions content/themes/casper/tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
{{! If we have a tag cover, display that - else blog cover - else nothing }}
<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">
<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>
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{/if}}
</nav>
<div class="vertical">
<div class="main-header-content inner">
Expand Down
84 changes: 57 additions & 27 deletions node_modules/ghost/Gruntfile.js

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

Loading

0 comments on commit 5d2ad1b

Please sign in to comment.