aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/simple/layouts/_default')
-rw-r--r--themes/simple/layouts/_default/baseof.html11
-rw-r--r--themes/simple/layouts/_default/list.html32
-rw-r--r--themes/simple/layouts/_default/rss.xml27
-rw-r--r--themes/simple/layouts/_default/single.html46
4 files changed, 116 insertions, 0 deletions
diff --git a/themes/simple/layouts/_default/baseof.html b/themes/simple/layouts/_default/baseof.html
new file mode 100644
index 0000000..5f8e2ec
--- /dev/null
+++ b/themes/simple/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
1<!DOCTYPE html>
2<html>
3 {{- partial "head.html" . -}}
4 <body>
5 {{- partial "header.html" . -}}
6 <div id="content">
7 {{- block "main" . }}{{- end }}
8 </div>
9 {{- partial "footer.html" . -}}
10 </body>
11</html>
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html
new file mode 100644
index 0000000..e194063
--- /dev/null
+++ b/themes/simple/layouts/_default/list.html
@@ -0,0 +1,32 @@
1{{ define "main" }}
2<main aria-role="main" class="container-blog">
3
4 <h1 class="text-2xl font-bold mb-6">Blog posts</h1>
5
6 <!-- List of all blog posts -->
7 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12">
8 <meta itemprop="name" content="Article list">
9 <ul>
10 {{ range (where .Site.RegularPages "Section" "posts") }}
11 <li class="mb-5">
12 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time>
13 <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200">{{.Title}}</a>
14 </li>
15 {{end}}
16 </ul>
17 </nav>
18
19 <!-- Projects I work on -->
20 <section class="mb-12">
21 <h4 class="text-2xl font-bold mb-6">Side projects I work/worked on</h4>
22 <ul class="list-disc ml-6">
23 <li><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">journalctl-proxy - Exposes your systemd logs to web via web interface</a></li>
24 <li><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">redis-marshal - Lightweight Redis data exploration tool</a></li>
25 <li><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">dna-encoding - Tools for encoding files to DNA sequence</a></li>
26 <li><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">vertex - Create mock API's and add basic logic to simplify prototyping</a></li>
27 <li><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">scarecrow - Minimal configuration reverse proxy</a></li>
28 </ul>
29 </section>
30
31</main>
32{{ end }}
diff --git a/themes/simple/layouts/_default/rss.xml b/themes/simple/layouts/_default/rss.xml
new file mode 100644
index 0000000..38c8755
--- /dev/null
+++ b/themes/simple/layouts/_default/rss.xml
@@ -0,0 +1,27 @@
1<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
2
3 <channel>
4
5 <title>{{ .Site.Author.name }}</title>
6 <link>{{ .Permalink }}</link>
7 <description>{{ .Site.Params.description }}</description>
8 <language>en-us</language>
9
10 {{ range (where .Site.RegularPages "Section" "posts") }}
11 <item>
12 <title>{{ .Title }}</title>
13 <link>{{ .Permalink }}</link>
14 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
15 {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
16 <guid>{{ .Permalink }}</guid>
17
18 <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
19 <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded>
20
21 </item>
22 {{end}}
23
24 </channel>
25
26
27</rss>
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
new file mode 100644
index 0000000..7142f1b
--- /dev/null
+++ b/themes/simple/layouts/_default/single.html
@@ -0,0 +1,46 @@
1{{ define "main" }}
2<main aria-role="main" class="container-blog">
3
4 <!-- Single article -->
5 <article itemtype="http://schema.org/Article" class="mb-12">
6 <header>
7 <h1 itemtype="headline" class="text-4xl font-extrabold mb-6">{{.Title}}</h1>
8 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
9 </header>
10
11 <div class="leading-relaxed">
12 {{.Content}}
13 </div>
14 </article>
15
16 <hr class="border-2 border-gray-100 mb-10">
17
18 <!-- Comment, contact -->
19 <section class="mb-10">
20 <p class="mb-4">
21 <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>.
22 </p>
23 <p>You can also just write me an email at <a href="mailto:m@mitjafelicijan.com">m@mitjafelicijan.com</a>.</p>
24 </section>
25
26 <hr class="border-2 border-gray-100 mb-10">
27
28 <!-- Read more -->
29 <section>
30 <h1 class="text-2xl font-bold mb-6">Read more from this site</h1>
31 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12">
32 <meta itemprop="name" content="Article list">
33 <ul>
34 {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }}
35 {{ range $randomPosts }}
36 <li class="mb-3">
37 <time class="block text-gray-500 text-sm">{{ .Date.Format "Mon Jan 2, 2006" }}</time>
38 <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200">{{.Title}}</a>
39 </li>
40 {{end}}
41 </ul>
42 </nav>
43 </section>
44
45</main>
46{{ end }}