Fix links

pull/56/head
Glen Cheney 11 years ago
parent 5a6ae78c36
commit 8a30832fac

@ -24,4 +24,4 @@ $('.js-shuffle-search').on('keyup change', function() {
});
});</code></pre>
<p>For another example of advanced filters, check out the <a href="{% post_url demos/2013-05-02-adaptive %}">compounded filters demo</a>.</p>
<p>For another example of advanced filters, check out the <a href="{{ site.url }}/{% post_url demos/2013-05-02-adaptive %}">compounded filters demo</a>.</p>

@ -7,7 +7,7 @@
<h3 class="site-nav__title">Shuffle.js</h3>
<div class="row-fluid">
<div class="span3">
<a class="btn btn--primary" href="/">Home</a>
<a class="btn btn--primary" href="{{ site.url }}/">Home</a>
</div>
<div class="span3">
<a class="btn btn--primary" href="https://github.com/Vestride/Shuffle">GitHub Repo</a>
@ -21,7 +21,7 @@
<div class="row-fluid m-row js-demos site-nav__demos">
{% for post in site.demos %}
<div class="span3 m-span3 figure-wrap js-demo">
<a href="/{{ post.slug }}">
<a href="{{ site.url }}/{{ post.slug }}">
<figure>
<div class="keep-ratio four-three">
<img src="{{ site.url }}/img/demos/{{ post.slug }}.webp" alt="{{ post.label }}" />

@ -41,7 +41,7 @@
<h3 id="columns">How column widths work</h3>
<p>The <code>columnWidth</code> option is used to calculate the column width. You have several options:</p>
<ol>
<li>Use a <strong>sizer</strong> element. This is the easest way to specify column and gutter widths. You can use an element or an element wrapped in jQuery. The column and gutter widths will be measured using this element. The <code>sizer</code> option is an alias for <code>columnWidth</code>. See <a href="{% post_url demos/2013-05-01-basic %}">a demo</a> using a sizer element or <a href="{{ site.url }}/js/demos/homepage.js">look at the js file</a> for the sizer demo.</li>
<li>Use a <strong>sizer</strong> element. This is the easest way to specify column and gutter widths. You can use an element or an element wrapped in jQuery. The column and gutter widths will be measured using this element. The <code>sizer</code> option is an alias for <code>columnWidth</code>. See <a href="{{ site.url }}/{% post_url demos/2013-05-01-basic %}">a demo</a> using a sizer element or <a href="{{ site.url }}/js/demos/homepage.js">look at the js file</a> for the sizer demo.</li>
<li>Use a <strong>function</strong>. When a function is used, its first parameter will be the width of the shuffle element. You need to return the column width for shuffle to use (in pixels).</li>
<li>A <strong>number</strong>. This will explicitly set the column width to your number (in pixels).</li>
<li>By default, shuffle will use jQuery's <code class="language-javascript">outerWidth(true)</code> to calculate the column width of the first item and use that value.</li>

@ -9,9 +9,9 @@ prism: true
<div class="container-fluid">
<h2>Images!</h2>
<p>You can encounter problems when shuffle item dimensions depend on images. <a href="{% post_url demos/2013-06-29-image-problems %}">Like this demo</a>. There are three good solutions to this.</p>
<p>You can encounter problems when shuffle item dimensions depend on images. <a href="{{ site.url }}/{% post_url demos/2013-06-29-image-problems %}">Like this demo</a>. There are three good solutions to this.</p>
<ol>
<li>Set an explicit height on <code>.shuffle-item</code>s like the <a href="{% post_url demos/2013-05-01-basic %}">basic demo</a>.</li>
<li>Set an explicit height on <code>.shuffle-item</code>s like the <a href="{{ site.url }}/{% post_url demos/2013-05-01-basic %}">basic demo</a>.</li>
<li>Similar to number 1, make the height of the image container a percentage of the width. This can be seen in the nav images above with the <code>div.keep-ratio</code>.</li>
<li>Get notified when images load (this page). In this case, I'm using <a href="http://desandro.github.io/imagesloaded/">Desandro's images loaded plugin</a>. Please note that imagesloaded does not support IE7.</li>
</ol>

@ -7,7 +7,7 @@ extraJS: [ "demos/images-broken.js"]
<div class="container-fluid">
<h2>This probably looks broken.</h2>
<p>Demo in which shuffle item dimensions are based on images without a fix. <a href="{% post_url demos/2013-05-03-images %}">See here</a> for a solution.</p>
<p>Demo in which shuffle item dimensions are based on images without a fix. <a href="{{ site.url }}/{% post_url demos/2013-05-03-images %}">See here</a> for a solution.</p>
<p>Resize the window and it'll fix itself.</p>
</div>

@ -11,8 +11,8 @@ prism: true
<h2>Downloads</h2>
<div class="row-fluid">
<nav class="span6" role="secondary">
<a href="js/jquery.shuffle.js">jquery.shuffle.js</a>
<a href="js/jquery.shuffle.min.js">jquery.shuffle.min.js</a>
<a href="{{ site.url }}/js/jquery.shuffle.js">jquery.shuffle.js</a>
<a href="{{ site.url }}/js/jquery.shuffle.min.js">jquery.shuffle.min.js</a>
</nav>
</div>
</div>

Loading…
Cancel
Save