Skip to content

Commit

Permalink
Fix resource relative paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpai committed Apr 25, 2014
1 parent 22f4ae7 commit 17063c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% capture lvl %}{{ page.url | append:'index.html' | split:'/' | size }}{% endcapture %}
{% capture relative %}{% for i in (3..lvl) %}../{% endfor %}{% endcapture %}
<!DOCTYPE html>
<html>
<head>
Expand All @@ -6,7 +8,7 @@
<title>{{ site.name }}{% if page.title %} - {{ page.title }}{% endif %}</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" href="css/site.css">
<link rel="stylesheet" href="{{ relative }}css/site.css">
<script src="//code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js" type="text/javascript"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/pesticide-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul>
{% for entry in page.data %}
<li>
<a href="/pesticide/{{ entry.id }}">{{ entry.name }}</a>
<a href="{{ entry.id }}">{{ entry.name }}</a>
</li>
{% endfor %}
</ul>

0 comments on commit 17063c6

Please sign in to comment.