-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
37 lines (35 loc) · 1.34 KB
/
Copy pathposts.html
File metadata and controls
37 lines (35 loc) · 1.34 KB
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
---
layout: base
---
<div class="relative bg-gray-50 pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8">
<div class="relative max-w-7xl mx-auto">
<div class="text-center">
<h2 class="text-3xl leading-9 tracking-tight font-extrabold text-gray-900 sm:text-4xl sm:leading-10">
From the blog
</h2>
</div>
<div class="mt-12 grid gap-5 max-w-lg mx-auto lg:grid-cols-3 lg:max-w-none">
{% for post in site.posts %}
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
<div class="flex-1">
{% unless post.tags == empty %}
<span class="inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium leading-5 bg-indigo-100 text-indigo-800">
{{ post.tags[0] | capitalize }}
</span>
{% endunless %}
<a href="{{ post.url }}" class="block">
<h3 class="mt-2 text-xl leading-7 font-semibold text-gray-900">
{{ post.title }}
</h3>
<p class="mt-3 text-base leading-6 text-gray-500">
{{ post.excerpt }}
</p>
</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>