blob: d34fabe66b846556c2083c1469dc505657b5680b (
plain)
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
|
{{ define "main" }}
<main aria-role="main" class="container-blog px-6 md:p-0">
<!-- Single article -->
<article itemtype="http://schema.org/Article" class="single mb-12">
<header class="mb-6">
<h1 itemtype="headline" class="text-4xl font-extrabold mb-6">{{.Title}}</h1>
<time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
</header>
<div class="leading-relaxed">
{{.Content}}
</div>
</article>
<hr class="border-2 border-gray-100 mb-10">
<!-- Comment, contact -->
<section class="mb-10">
<p class="mb-4">
<strong>Comment, contact:</strong> The easiest way to contact me is by writing me a message on <a href="https://t.me/mitjafelicijan" target="_blank">Telegram (https://t.me/mitjafelicijan)</a>.
</p>
<p>You can also just write me an email at <a href="mailto:m@mitjafelicijan.com">m@mitjafelicijan.com</a>.</p>
</section>
<hr class="border-2 border-gray-100 mb-10">
<!-- Read more -->
<section>
<h1 class="text-2xl font-bold mb-6">Read more from this site</h1>
<nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12">
<meta itemprop="name" content="Article list">
<ul>
{{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }}
{{ range $randomPosts }}
<li class="mb-6">
<time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time>
<a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200 font-medium">{{.Title}}</a>
<p class="text-gray-600 text-sm">{{.Summary}}</p>
</li>
{{end}}
</ul>
</nav>
</section>
<hr class="border-2 border-gray-100 mb-10">
<!-- Openring -->
{{ partial "openring.html" . }}
</main>
{{ end }}
|