-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathindex.md.template
96 lines (59 loc) · 1.84 KB
/
index.md.template
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
title: "BigFunctions - Blog"
description: "Blog Posts related to BigFunctions"
hide:
- navigation
- toc
search:
exclude: true
---
<style>
.blog-posts {
max-width: 800px;
margin: auto;
}
.blog-post-abstract {
display: grid;
grid-template-columns: minmax(0, 1fr) 20%;
grid-column-gap: 5%;
}
.blog-post-abstract p {
color: rgb(38, 38, 38);
}
.blog-post-abstract p.footer, .blog-post-abstract:hover p {
color: rgb(92, 92, 92);
}
.blog-post-abstract img, .lg\:two-columns img {
margin: 2.5em 0px 0em;
}
</style>
<div class="hero" markdown>
# Featured Posts
</div>
{% for post in posts if post.is_featured %}
<div class="lg:two-columns {{ loop.cycle('lg:revert-items', '') }}" markdown>
- ## [{{ post.title }}]({{ post.url }}){% if post.url.startswith('https://') %}{ target="_blank" }{% endif %}
{{ post.text | trim | indent(width=4) }}
[Read More :octicons-arrow-right-24:]({{ post.url }}){ .md-button{% if post.url.startswith('https://') %} target="_blank" {% endif %} }
- { loading=lazy style="{{ 'width: 100%; max-width: 400px; height: auto;' if post.is_image_vertical else '' }} display: block; margin-{{ loop.cycle('left', 'right') }}: auto;" }
</div>
{% endfor %}
---
<div class="hero" markdown>
# Latest Posts
</div>
<div class="blog-posts">
{% for post in posts if not post.is_featured %}
<a class="blog-post-abstract" href="{{ post.url }}" target="_blank">
<div>
<h3>{{ post.title | truncate(120) | trim }}</h3>
<p>{{ post.text | truncate(120) }}...</p>
<p class="footer">{{ post.date }} • {{ post.author }}</p>
</div>
<div>
<img src="{{ post.image_url or 'https://dummyimage.com/200x150/eee/eee' }}" loading=lazy>
</div>
</a>
<hr>
{% endfor %}
</div>