forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
20 lines (16 loc) · 786 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
layout: default
---
<div class="brews">
{% for brew in site.posts %}
<article class="brew">
<h1><a href="{{ site.baseurl }}{{ brew.url }}">{{ brew.title }}</a></h1>
{% if brew.OG %}{% if brew.FG %}<pre class="hover-tooltip" tip="Alcohol by volume = (OG - FG) * 131.25 = ({{ brew.OG }} - {{ brew.FG }}) * 131.25 = {{ brew.OG | minus:brew.FG | times:131.25 }} %">Estimated ABV: {{ brew.OG | minus:brew.FG | times:131.25 }} %</pre>{% endif %}{% endif %}
<div class="date">Brewed on {{ brew.date | date: "%B %e, %Y" }}</div>
<div class="entry">
{{ brew.content | truncatewords:25}}
</div>
<a href="{{ site.baseurl }}{{ brew.url }}" class="read-more">Read More</a>
</article>
{% endfor %}
</div>