Skip to content

Commit

Permalink
Updated to use Ghost 0.4's asset handler.
Browse files Browse the repository at this point in the history
This should enable compatibility with blogs running in a subdirectory,
rather than the root of the domain.
  • Loading branch information
mattvh committed Feb 7, 2014
1 parent 23484d4 commit 1dcc1fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<link href="/assets/css/style.css" rel="stylesheet" />
<link href="/assets/css/colors-dark.css" rel="stylesheet" />
<link href="{{asset 'css/style.css'}}" rel="stylesheet" />
<link href="{{asset 'css/colors-dark.css'}}" rel="stylesheet" />

{{ghost_head}}

Expand All @@ -29,9 +29,9 @@

<header id="header">
{{#if @blog.logo}}
<a id="blog-logo" href="/"><img src="{{@blog.logo}}" /></a>
<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" /></a>
{{else}}
<h1><a href="/"><i class="icon-sun"></i> {{@blog.title}}</a></h1>
<h1><a href="{{@blog.url}}"><i class="icon-sun"></i> {{@blog.title}}</a></h1>
{{/if}}
<p>{{@blog.description}}</p>
</header>
Expand All @@ -46,9 +46,9 @@

<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="{{@blog.url}}">Home</a></li>
<li><a href="http://twitter.com/redwall_hp">Twitter</a></li>
<li><a href="/rss/">RSS Feed</a></li>
<li><a href="{{@blog.url}}/rss/">RSS Feed</a></li>
</ul>
</nav>

Expand Down Expand Up @@ -84,7 +84,7 @@

{{ghost_foot}}

<script src="/assets/js/jquery.mobilemenu.min.js"></script>
<script src="{{asset 'js/jquery.mobilemenu.min.js'}}"></script>
<script>
$(document).ready(function(){
$('#sidebar nav ul').mobileMenu({'topOptionText': 'Menu', 'prependTo': '#sidebar nav'});
Expand Down

0 comments on commit 1dcc1fa

Please sign in to comment.