Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Colourful blosts
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Aug 4, 2016
1 parent 5a71089 commit 456c680
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
title: Blog
---

<ul class='grid'>
{% for blost in site.posts %}
{% capture description %}{{ blost.description | slice: 0, 100 }}{% endcapture %}
{% if description != '' %}
{% capture description %}{{ description }}...{% endcapture %}
{% endif %}
{% unless title == 'Tech Team Week Notes' %}
{% capture box-colour %}{% cycle 1, 4, 7, 10, 2, 5, 8, 11, 3, 9, 12 %}{% endcapture %}
{% include bright-box.html url = blost.url heading = blost.title subhead = description colour = box-colour %}
{% endunless %}
{% endfor %}
</ul>

<dl class='blog-archive'>
{% for blost in site.posts %}
{% capture title %}{{ blost.title | slice: 0, 20 }}{% endcapture %}
Expand All @@ -18,3 +31,7 @@
{% endunless %}
{% endfor %}
</dl>

<script>
$('.grid').masonry();
</script>

0 comments on commit 456c680

Please sign in to comment.