-
Notifications
You must be signed in to change notification settings - Fork 0
/
in.html
58 lines (53 loc) · 1.4 KB
/
in.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
47
48
49
50
51
52
53
54
55
56
57
58
<section class="webring">
<h3>Posts from blogs I follow</h3>
<section class="articles">
{% for article in articles %}
<div class="article">
<h4 class="title" dir="auto">
<a href="{{ article.link | safe }}" target="_blank" rel="noopener">{{ article.title | safe }}</a>
</h4>
<p class="summary" dir="auto">{{ article.summary | linebreaksbr | replace(from="<br>", to=" ") | striptags | trim
| truncate(length=256) | safe }}</p>
<small class="source"> via <a href="{{ article.source_link | safe }}">{{ article.source_title | safe
}}</a></small>
<small class="date">{{ article.timestamp | date(format="%B %d, %Y") }}</small>
</div>
{% endfor %}
</section>
<p class="attribution">
Generated by
<a href="https://github.com/lukehsiao/openring-rs">openring-rs</a>
</p>
</section>
<style>
.webring {
margin-top: 4rem;
}
.webring .articles {
display: flex;
flex-wrap: wrap;
margin: -0.5rem;
}
.webring .title {
margin: 0.1rem;
}
.webring .article {
flex: 1 1 0;
display: flex;
flex-direction: column;
margin: 0.5rem;
padding: 0.5rem;
background: lab(15% 0 0);
min-width: 10rem;
border-radius: 15px;
}
.webring .summary {
font-size: 1.0rem;
flex: 1 1 0;
}
.webring .attribution {
text-align: right;
font-size: 0.8rem;
color: lab(50% 0 0);
}
</style>