-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.06 KB
/
index.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
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{ partial "head" . }}
<body class="text-dark-blue-grey bg-light-blue-grey">
<div class="overflow-hidden">
{{ partial "header" . }}
<main class="my-0 mx-auto max-w-screen-lg pt-4 px-4">
<section class="mx-auto max-w-prose text-center">
<h2 class="py-2 md:py-8 text-xl md:text-2xl font-bold">About</h2>
<article class="prose prose-slate">
{{ .Content }}
</article>
</section>
<section>
<h2 class="py-2 md:py-8 text-xl md:text-2xl font-bold text-center">Recent posts</h2>
<div class="py-2 grid grid-cols-6 gap-x-12 gap-y-6 md:gap-y-12">
{{ range first 12 (where .Site.RegularPages "Section" "posts") }}
{{ .Render "li" }}
{{ end }}
</div>
</section>
<nav class="text-center text-lg my-6 md:my-12">
<a class="mr-4 text-light-ocean-blue visited:text-dark-ocean-blue"
href="/posts/index.html">All posts</a>
</nav>
</main>
{{ partial "footer" . }}
</div>
{{ partial "js" . }}
</body>
</html>