Skip to content

Commit

Permalink
Fix Liquid
Browse files Browse the repository at this point in the history
Fix Liquid processing to work with GitHub Pages' gem versions
  • Loading branch information
alfredxing committed Jul 10, 2014
1 parent f42da11 commit 5617e6d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 62 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
gem 'jekyll', '>=2.0.0'
source 'https://rubygems.org'
gem 'github-pages'
2 changes: 1 addition & 1 deletion brick.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

// Catalogue array
{% assign fonts = site.pages | sort: 'family' %}
{% assign fonts = site.pages %}
$catalogue = array(
{% for font in fonts %}
{% if font.layout == "font" %}
Expand Down
4 changes: 2 additions & 2 deletions fonts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<section id="catalogue" class="width">
<ul id="fonts">
{% assign fonts = site.pages | sort: 'family' %}
{% assign fonts = site.pages %}
{% for font in fonts %}
{% if font.layout == 'font' %}
{% assign id = font.family | replace: ' ', '' | downcase %}
Expand All @@ -48,7 +48,7 @@
<article>
<a href="./{{ id }}" target="_blank"><h1>{{ font.family }}</h1></a>
<span>{{ font.styles.size }} styles</span>
<span href="#" class="add" data-font="{{ font.name }}" data-styles="{% for style in font.styles %}{{ style[0] }}{% unless forloop.last %},{% endunless %}{% endfor %}">+</span>
<span href="#" class="add" data-font="{{ font.family }}" data-styles="{% for style in font.styles %}{{ style[0] }}{% unless forloop.last %},{% endunless %}{% endfor %}">+</span>
</article>
</li>
{% endif %}
Expand Down
58 changes: 0 additions & 58 deletions fonts/index.html.orig

This file was deleted.

0 comments on commit 5617e6d

Please sign in to comment.