Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs : remove {{ page.root_path }}

  • Loading branch information...
commit aa0f9180a8850bb8a9d422da821893671737958d 1 parent 8be273b
@desandro desandro authored
Showing with 53 additions and 82 deletions.
  1. +6 −5 _layouts/default.html
  2. +2 −3 _posts/demos/2011-05-01-basic-single-column.html
  3. +2 −3 _posts/demos/2011-05-02-basic-multi-column.html
  4. +2 −3 _posts/demos/2011-05-03-images.html
  5. +2 −3 _posts/demos/2011-05-04-tumblelog.html
  6. +2 −3 _posts/demos/2011-05-05-animating-jquery.html
  7. +2 −3 _posts/demos/2011-05-06-animating-css-transitions.html
  8. +2 −3 _posts/demos/2011-05-07-animating-modernizr.html
  9. +3 −4 _posts/demos/2011-05-08-adding-items.html
  10. +3 −4 _posts/demos/2011-05-09-infinite-scroll.html
  11. +2 −3 _posts/demos/2011-05-10-gutters.html
  12. +2 −3 _posts/demos/2011-05-11-right-to-left.html
  13. +2 −3 _posts/demos/2011-05-17-centered.html
  14. +2 −3 _posts/demos/2011-07-26-fluid.html
  15. +0 −1  _posts/docs/2011-05-01-intro.mdown
  16. +0 −1  _posts/docs/2011-05-02-options.mdown
  17. +0 −1  _posts/docs/2011-05-03-methods.mdown
  18. +0 −1  _posts/docs/2011-05-04-animating.mdown
  19. +0 −1  _posts/docs/2011-05-30-help.mdown
  20. +2 −3 _posts/pages/2011-05-02-2.html
  21. +2 −3 _posts/pages/2011-05-03-3.html
  22. +2 −3 _posts/pages/2011-05-04-4.html
  23. +2 −3 _posts/pages/2011-05-05-5.html
  24. +2 −3 _posts/tests/2011-05-14-lots-of-bricks.html
  25. +3 −4 _posts/tests/2011-05-17-dual.html
  26. +2 −3 _posts/tests/2011-05-18-first-child-no-width.html
  27. +2 −3 _posts/tests/2011-05-19-empty.html
  28. +2 −6 index.html
View
11 _layouts/default.html
@@ -2,15 +2,16 @@
<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 -->
@@ -18,7 +19,7 @@
<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>
@@ -34,7 +35,7 @@
</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 %}
@@ -48,7 +49,7 @@
<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 %}
View
5 _posts/demos/2011-05-01-basic-single-column.html
@@ -3,7 +3,6 @@
title: Basic single-column
category: demos
layout: default
-root_path: ../
---
@@ -194,8 +193,8 @@
</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(){
View
5 _posts/demos/2011-05-02-basic-multi-column.html
@@ -2,7 +2,6 @@
title: Basic multi-column
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -200,8 +199,8 @@
</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(){
View
5 _posts/demos/2011-05-03-images.html
@@ -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>
@@ -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(){
View
5 _posts/demos/2011-05-04-tumblelog.html
@@ -2,7 +2,6 @@
title: Tumblelog example
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -206,8 +205,8 @@
</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(){
View
5 _posts/demos/2011-05-05-animating-jquery.html
@@ -2,7 +2,6 @@
title: Animating with jQuery
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -130,8 +129,8 @@
</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(){
View
5 _posts/demos/2011-05-06-animating-css-transitions.html
@@ -2,7 +2,6 @@
title: Animating with CSS Transitions
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -119,8 +118,8 @@
</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(){
View
5 _posts/demos/2011-05-07-animating-modernizr.html
@@ -2,7 +2,6 @@
title: Animating with Modernizr
category: demos
layout: default
-root_path: ../
has_modernizr: true
---
@@ -122,8 +121,8 @@
</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(){
View
7 _posts/demos/2011-05-08-adding-items.html
@@ -2,7 +2,6 @@
title: Adding items
category: demos
layout: default
-root_path: ../
has_modernizr: true
---
@@ -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(){
View
7 _posts/demos/2011-05-09-infinite-scroll.html
@@ -2,7 +2,6 @@
title: Infinite Scroll
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -228,9 +227,9 @@
<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(){
View
5 _posts/demos/2011-05-10-gutters.html
@@ -2,7 +2,6 @@
title: Gutters
category: demos
layout: default
-root_path: ../
has_modernizr: true
---
@@ -195,8 +194,8 @@
</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(){
View
5 _posts/demos/2011-05-11-right-to-left.html
@@ -2,7 +2,6 @@
title: Right-to-left
category: demos
layout: default
-root_path: ../
has_modernizr: true
---
@@ -120,8 +119,8 @@
</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(){
View
5 _posts/demos/2011-05-17-centered.html
@@ -2,7 +2,6 @@
title: Centered
category: demos
layout: default
-root_path: ../
has_modernizr: true
---
@@ -122,8 +121,8 @@
</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(){
View
5 _posts/demos/2011-07-26-fluid.html
@@ -2,7 +2,6 @@
title: Fluid
category: demos
layout: default
-root_path: ../
---
<div id="copy">
@@ -207,8 +206,8 @@
</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(){
View
1  _posts/docs/2011-05-01-intro.mdown
@@ -2,7 +2,6 @@
title: Introduction
category: docs
-root_path: ../
layout: default
toc:
- { title: Getting started, anchor: getting_started }
View
1  _posts/docs/2011-05-02-options.mdown
@@ -3,7 +3,6 @@
title: Options
category: docs
layout: default
-root_path: ../
body_class: options
toc :
- { title: animationOptions, anchor: animationoptions }
View
1  _posts/docs/2011-05-03-methods.mdown
@@ -3,7 +3,6 @@
title: Methods
category: docs
layout: default
-root_path: ../
toc:
- { title: appended, anchor: appended }
- { title: destroy, anchor: destroy }
View
1  _posts/docs/2011-05-04-animating.mdown
@@ -2,7 +2,6 @@
title: Animating
category: docs
-root_path: ../
layout: default
toc:
- { title: jQuery, anchor: jquery }
View
1  _posts/docs/2011-05-30-help.mdown
@@ -2,7 +2,6 @@
title: Help
category: docs
-root_path: ../
layout: default
toc:
- { title: Reporting bugs and issues, anchor: reporting_bugs_and_issues }
View
5 _posts/pages/2011-05-02-2.html
@@ -2,7 +2,6 @@
title: Page 2
category: pages
layout: default
-root_path: ../
has_modernizr: true
---
@@ -171,8 +170,8 @@
</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(){
View
5 _posts/pages/2011-05-03-3.html
@@ -2,7 +2,6 @@
title: Page 3
category: pages
layout: default
-root_path: ../
has_modernizr: true
---
@@ -156,8 +155,8 @@
</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(){
View
5 _posts/pages/2011-05-04-4.html
@@ -2,7 +2,6 @@
title: Page 4
category: pages
layout: default
-root_path: ../
has_modernizr: true
---
@@ -141,8 +140,8 @@
</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(){
View
5 _posts/pages/2011-05-05-5.html
@@ -2,7 +2,6 @@
title: Page 4
category: pages
layout: default
-root_path: ../
has_modernizr: true
---
@@ -149,8 +148,8 @@
</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(){
View
5 _posts/tests/2011-05-14-lots-of-bricks.html
@@ -2,7 +2,6 @@
title: Lots of bricks
category: tests
layout: default
-root_path: ../
---
<div id="copy">
@@ -1422,8 +1421,8 @@
</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(){
View
7 _posts/tests/2011-05-17-dual.html
@@ -2,7 +2,6 @@
title: Dual instances
category: tests
layout: default
-root_path: ../
has_modernizr: true
---
@@ -214,9 +213,9 @@
</div> <!-- #beta -->
-<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(){
View
5 _posts/tests/2011-05-18-first-child-no-width.html
@@ -2,7 +2,6 @@
title: First child no width
category: tests
layout: default
-root_path: ../
has_modernizr: true
---
@@ -203,8 +202,8 @@
</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(){
View
5 _posts/tests/2011-05-19-empty.html
@@ -2,7 +2,6 @@
title: Empty
category: tests
layout: default
-root_path: ../
---
<div id="copy">
@@ -191,8 +190,8 @@
</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(){
View
8 index.html
@@ -28,10 +28,6 @@
&larr; View docs and demos
</div>
- <!-- <div class="item big-text">
- The flip-side of CSS floats
- </div> -->
-
<div class="item big-text">
Before: CSS Floats
<div class="mini">
@@ -69,8 +65,8 @@
</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(){
Please sign in to comment.
Something went wrong with that request. Please try again.