Permalink
Browse files

Drive blog index with pages variable

  • Loading branch information...
khawkins98 committed Feb 10, 2018
1 parent da25dc5 commit 4c49c644018c2639248a97f7e0d27bacbc8f2852
Showing with 8 additions and 115 deletions.
  1. +0 −108 src/data/blog.yml
  2. +8 −7 src/pages/blog/index.html

This file was deleted.

Oops, something went wrong.
@@ -8,22 +8,23 @@
{{/markdown}}

<div class="medium-10 cell ">
{{#each blog}}
<a class="block only-hover" href="{{this.url}}">
{{#each-reverse pages}}
{{#ifequal this.[2].active_path "blog"}}
<a class="block only-hover" href="{{this.[2].url}}">
<div class="grid-x grid-padding-x margin-bottom-large">
<div class="small-4 medium-3 large-2 cell">
<img class="" src="/images/crop-square{{this.image}}" />
<img class="" src="{{root}}/images/crop-square{{this.[2].image}}" />
</div>
<div class="small-8 medium-9 large-10 cell">
{{#markdown}}
### {{this.title}}
<span class="">[{{#date}}{{this.date}}{{/date}}]</span> — {{this.teaser}}
### {{../this.[2].title}}
<span class="">[{{#date}}{{../this.[2].date}}{{/date}}]</span> — {{../this.[2].teaser}}
{{/markdown}}
</div>
</div>
</a>
{{/each}}

{{/ifequal}}
{{/each-reverse}}

{{#markdown}}
#### <span class="emoji">🐦</span> Want more from me? <a href="https://twitter.com/khawkins98" class="readmore">Head to twitter</a>

0 comments on commit 4c49c64

Please sign in to comment.