-
Notifications
You must be signed in to change notification settings - Fork 0
/
interesting.njk
60 lines (60 loc) · 1.08 KB
/
interesting.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
54
55
56
57
58
59
60
---
layout: main.njk
title: Interesting things I found on the Internet
description: I love reading on the internet. And frequently I come accross amazing things.
---
<style>
.title {
margin-bottom: 5px;
}
.posts {
margin: 10px auto;
}
.tagline {
margin: 0;
margin-botton: 10px;
}
.postTitle {
margin: 0;
}
.postTitle a {
text-decoration: none;
color: slateblue;
}
.post {
display: flex;
margin-bottom: 5px;
align-items: center;
}
.bullet {
margin: 0 5px;
}
@media only screen and (max-width: 768px) {
.title {
margin-top: 0
}
.post {
flex-direction: column;
align-items: flex-start;
margin-bottom: 10px;
}
.bullet {
display: none;
}
}
</style>
<span>
<a href="/">home</a>
<span>/</span>
<span>interesting</span>
</span>
<h1 class="title">{{ title }}</h1>
<p class="tagline">{{ description }}</p>
<hr/>
<div class="posts">
{%- for i in interesting | reverse -%}
<div class="post">
<p class="postTitle"><a href="{{ i.url }}">{{ i.title }}</a></p>
</div>
{%- endfor -%}
</div>