forked from THDCMustang/thdcmustang.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
46 lines (44 loc) · 1.38 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Blog
layout: base
permalink: /blog/
---
<br>
<section class="our-work blog">
<div class="thdc-grid">
<div class="thdc-width-two-thirds">
<h1>Our blog</h1>
<p class="thdc-font-lead">
Read about our work, our team, some of our most recent accomplishments and beautiful stories we've read on the Internet.
</p>
</div>
</div>
{% assign summaries = site.blog_summaries | sort: 'date' | reverse %}
{% assign num_columns = 3 %}
{% assign num_stories = 6 %}
{% for entry in summaries limit: num_stories %}
{% assign index_mod = forloop.index0 | modulo:num_columns %}
{% if index_mod == 0 %}
{% if forloop.index0 > 0 %}
</div>
{% endif %}
<div class="thdc-grid">
{% endif %}
<div class="thdc-width-one-third story blog-item">
<a href="{{ entry.medium_url }}">
<div class="blog-image" style="background-image:url({{ entry.image_url}})" title="{{entry.image_description}}"></div>
</a>
<h3><a href="{{ entry.medium_url}}">{{ entry.title }}</a></h3>
{{ entry.content }}
<p><a class="read-more" title="Read More"><a href="{{ entry.medium_url}}">Read more...</a></p>
</div>
{% if forloop.last %}</div>{% endif %}
{% endfor %}
<div class="thdc-grid">
<a href="{{ site.medium_url }}">
<button>
Read more on Medium
</button>
</a>
</div>
</section>