aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default/notes.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-24 05:57:50 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-24 05:57:50 +0200
commitb3dfbe8b70b870399dc335b8dcf028bb9a3955de (patch)
treecd9b9aaa0445d4641356227866827f2d828a1517 /themes/simple/layouts/_default/notes.html
parent660cebf99b4317856401acda8238bff75f82c4cc (diff)
downloadmitjafelicijan.com-b3dfbe8b70b870399dc335b8dcf028bb9a3955de.tar.gz
Added notes as a separate type of content and moved the content
Diffstat (limited to 'themes/simple/layouts/_default/notes.html')
-rw-r--r--themes/simple/layouts/_default/notes.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html
new file mode 100644
index 0000000..b3a2f44
--- /dev/null
+++ b/themes/simple/layouts/_default/notes.html
@@ -0,0 +1,29 @@
1{{ define "main" }}
2<main role="main" class="container-blog mx-auto px-6 md:p-0">
3
4 <section class="mb-6">
5 <h1 class="text-2xl font-bold">Notes, notes and notes</h1>
6 <p class="text-gray-600 italic">Notes about things I learn, things I do, things I want to remember, but never do.</p>
7 </section>
8
9 <hr class="border-2 border-gray-100 mb-12">
10
11 <!-- List of all notes -->
12 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12" role="feed">
13 <meta itemprop="name" content="Article list">
14 <section>
15 {{ range (where .Site.RegularPages "Section" "notes") }}
16 <div class="mb-10">
17 <article class="mb-5 single" itemscope itemtype="http://schema.org/Article">
18 <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2>
19 <div class="content">
20 {{ .Content | safeHTML }}
21 </div>
22 </article>
23 </div>
24 {{ end }}
25 </section>
26 </nav>
27
28</main>
29{{ end }}