Skip to content

Commit

Permalink
docs : remove {{ page.root_path }}
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jul 26, 2011
1 parent 8be273b commit aa0f918
Show file tree
Hide file tree
Showing 28 changed files with 53 additions and 82 deletions.
11 changes: 6 additions & 5 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
<html lang="en">
<head>
<meta charset="utf-8" />
{% if page.category != 'homepage' %}{% assign root_path = '../' %}{% assign link_path = '..' %}{% else %}{% assign link_path = '.' %}{% endif %}
<title>{{ page.title }}{% if page.category != 'homepage' %} &middot; {{ site.name }}{% endif %}</title>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

<link rel="stylesheet" href="{{ page.root_path }}css/style.css" />
<link rel="stylesheet" href="{{ root_path }}css/style.css" />

{% if page.has_modernizr %}
<script src="{{ page.root_path }}js/modernizr-transitions.js"></script>
<script src="{{ root_path }}js/modernizr-transitions.js"></script>
{% endif %}
<!-- scripts at bottom of page -->

</head>
<body class="{{ page.category }} {{ page.body_class }}">

<nav id="site-nav">
<h1><a href="{{ page.root_path }}index.html">{{ site.name }}</a></h1>
<h1><a href="{{ root_path }}index.html">{{ site.name }}</a></h1>

<h2>Docs</h2>

Expand All @@ -34,7 +35,7 @@ <h2>Docs</h2>
</li>
{% else %}
{% if doc.layout != 'index-page' %}
<li><a href="..{{ doc.url }}">{{ doc.title }}</a>
<li><a href="{{ link_path }}{{ doc.url }}">{{ doc.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
Expand All @@ -48,7 +49,7 @@ <h2>Demos</h2>
<li class="current"><a href="#content">{{ demo.title }}</a></li>
{% else %}
{% if demo.layout != 'index-page' %}
<li><a href="..{{ demo.url }}">{{ demo.title }}</a>
<li><a href="{{ link_path }}{{ demo.url }}">{{ demo.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-01-basic-single-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
title: Basic single-column
category: demos
layout: default
root_path: ../

---

Expand Down Expand Up @@ -194,8 +193,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-02-basic-multi-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Basic multi-column
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -200,8 +199,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi
</div> <!-- #container -->


<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-03-images.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Images
layout: default
category: demos
root_path: ../
photos:
- <a href="http://www.flickr.com/photos/nemoorange/5013039951/" title="Stanley by Dave DeSandro, on Flickr"><img src="http://farm5.static.flickr.com/4113/5013039951_3a47ccd509.jpg" alt="Stanley" /></a>
- <a href="http://www.flickr.com/photos/nemoorange/5013039885/" title="Officer by Dave DeSandro, on Flickr"><img src="http://farm5.static.flickr.com/4131/5013039885_0d16ac87bc.jpg" alt="Officer" /></a>
Expand Down Expand Up @@ -41,8 +40,8 @@
<a href="../pages/2.html"></a>
</nav>

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-04-tumblelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Tumblelog example
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -206,8 +205,8 @@ <h2>And then, there is this.</h2>

</div> <!-- /#tumblelog -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-05-animating-jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Animating with jQuery
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -130,8 +129,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-06-animating-css-transitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Animating with CSS Transitions
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -119,8 +118,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-07-animating-modernizr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Animating with Modernizr
category: demos
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -122,8 +121,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
7 changes: 3 additions & 4 deletions _posts/demos/2011-05-08-adding-items.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Adding items
category: demos
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -62,9 +61,9 @@

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="{{ page.root_path }}js/box-maker.js"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script src="../js/box-maker.js"></script>
<script>
$(function(){

Expand Down
7 changes: 3 additions & 4 deletions _posts/demos/2011-05-09-infinite-scroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Infinite Scroll
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -228,9 +227,9 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi
<a href="../pages/2.html"></a>
</nav>

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="{{ page.root_path }}js/jquery.infinitescroll.min.js"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script src="../js/jquery.infinitescroll.min.js"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-10-gutters.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Gutters
category: demos
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -195,8 +194,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi
</div> <!-- #container -->


<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-11-right-to-left.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Right-to-left
category: demos
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -120,8 +119,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-05-17-centered.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Centered
category: demos
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -122,8 +121,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/demos/2011-07-26-fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Fluid
category: demos
layout: default
root_path: ../
---

<div id="copy">
Expand Down Expand Up @@ -207,8 +206,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi
</div> <!-- #container -->


<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
1 change: 0 additions & 1 deletion _posts/docs/2011-05-01-intro.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

title: Introduction
category: docs
root_path: ../
layout: default
toc:
- { title: Getting started, anchor: getting_started }
Expand Down
1 change: 0 additions & 1 deletion _posts/docs/2011-05-02-options.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
title: Options
category: docs
layout: default
root_path: ../
body_class: options
toc :
- { title: animationOptions, anchor: animationoptions }
Expand Down
1 change: 0 additions & 1 deletion _posts/docs/2011-05-03-methods.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
title: Methods
category: docs
layout: default
root_path: ../
toc:
- { title: appended, anchor: appended }
- { title: destroy, anchor: destroy }
Expand Down
1 change: 0 additions & 1 deletion _posts/docs/2011-05-04-animating.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

title: Animating
category: docs
root_path: ../
layout: default
toc:
- { title: jQuery, anchor: jquery }
Expand Down
1 change: 0 additions & 1 deletion _posts/docs/2011-05-30-help.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

title: Help
category: docs
root_path: ../
layout: default
toc:
- { title: Reporting bugs and issues, anchor: reporting_bugs_and_issues }
Expand Down
5 changes: 2 additions & 3 deletions _posts/pages/2011-05-02-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Page 2
category: pages
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -171,8 +170,8 @@ <h2>Morbi purus libero</h2>

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/pages/2011-05-03-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Page 3
category: pages
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -156,8 +155,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
5 changes: 2 additions & 3 deletions _posts/pages/2011-05-04-4.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Page 4
category: pages
layout: default
root_path: ../
has_modernizr: true
---

Expand Down Expand Up @@ -141,8 +140,8 @@ <h2>Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehi

</div> <!-- #container -->

<script src="{{ page.root_path }}{{ site.jquery_js }}"></script>
<script src="{{ page.root_path }}{{ site.masonry_js }}"></script>
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.masonry_js }}"></script>
<script>
$(function(){

Expand Down
Loading

0 comments on commit aa0f918

Please sign in to comment.