-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.njk
53 lines (42 loc) · 1.99 KB
/
index.njk
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
47
48
49
50
51
52
53
---
layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
img: /img/whiskies.jpg
---
<div class="head">
<h2>An Exploration of Flavour</h2>
<h3>Whisky</h3>
</div>
<img src="/img/L1020234.jpg" alt="A collection of whiskies sitting on a shelf" style="margin:50px 0 -50px;">
<div class="content">
<div class="sidebar">
<p>Welcome to my library of whiskies. My journey into whisky is both short and long. For many years, friends had tried to introduce me to it and I shuddered with every sip. For some reason, it did not do anything for me. I preferred to stick to my screwdrivers and long islands. </p>
<p>Something clicked and ever since, I have had the opportunity to explore many whiskies from many regions. I have quickly grown my personal collection of whiskies over the last few years.</p>
<p>Of course, people have different tastes. These are mine. I wanted a place to document what I've tried and remember what I have in my collection. I hope you enjoy this, too.</p>
<center><img src="/img/glass.png" width="126" height="110" style="width:auto" alt="An empty whisky glass"></center>
</div>
<div class="article">
<h1>Latest Reviews</h1>
{% set postslist = collections.posts | head(-6) %}
{% set postslistCounter = collections.posts | length %}
<div>
{% for post in postslist | reverse %}
<div class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
<div>
{% for tag in post.data.tags %}
{%- if collections.tagList.indexOf(tag) != -1 -%}
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
<a href="{{ tagUrl | url }}" class="tagg">{{ tag }}</a>
{%- endif -%}
{% endfor %}
</div>
</div>
{% endfor %}
</div>
<a href="/posts/">See the list of all whiskies</a>
</div>
</div>