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/index.json5
-rw-r--r--themes/simple/layouts/_default/index.xml (renamed from themes/simple/layouts/_default/rss.xml)0
-rw-r--r--themes/simple/layouts/_default/list.html13
-rw-r--r--themes/simple/layouts/_default/notes.html5
-rw-r--r--themes/simple/layouts/_default/single.html3
5 files changed, 25 insertions, 1 deletions
diff --git a/themes/simple/layouts/_default/index.json b/themes/simple/layouts/_default/index.json
new file mode 100644
index 0000000..b8f3786
--- /dev/null
+++ b/themes/simple/layouts/_default/index.json
@@ -0,0 +1,5 @@
1{{- $.Scratch.Add "index" slice -}}
2{{- range .Site.RegularPages -}}
3{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "type" .Type "permalink" .RelPermalink "summary" .Summary) -}}
4{{- end -}}
5{{- $.Scratch.Get "index" | jsonify -}}
diff --git a/themes/simple/layouts/_default/rss.xml b/themes/simple/layouts/_default/index.xml
index 1f29133..1f29133 100644
--- a/themes/simple/layouts/_default/rss.xml
+++ b/themes/simple/layouts/_default/index.xml
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html
index 589d07b..232598d 100644
--- a/themes/simple/layouts/_default/list.html
+++ b/themes/simple/layouts/_default/list.html
@@ -1,6 +1,19 @@
1{{ define "main" }} 1{{ define "main" }}
2<main role="main" class="container-blog mx-auto px-6 md:p-0"> 2<main role="main" class="container-blog mx-auto px-6 md:p-0">
3 3
4 <!-- Search modal and results -->
5 {{ partial "search.html" . }}
6
7 <!-- Notes CTA -->
8 <a class="flex items-center gap-2 w-full bg-yellow-200 hover:cursor-pointer rounded mb-8 p-4" href="/notes.html">
9 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="hidden lg:block w-6 h-6">
10 <path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25" />
11 </svg>
12 <p>For interesting <span span class="italic font-medium">notes</span> and
13 small <span class="italic font-medium">experiments</span> I usually partake
14 in, check the Notes page.</p>
15 </a>
16
4 <h1 class="text-2xl font-bold mb-6">Blog posts</h1> 17 <h1 class="text-2xl font-bold mb-6">Blog posts</h1>
5 18
6 <!-- List of all blog posts --> 19 <!-- List of all blog posts -->
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html
index 27ac958..02560b0 100644
--- a/themes/simple/layouts/_default/notes.html
+++ b/themes/simple/layouts/_default/notes.html
@@ -1,12 +1,15 @@
1{{ define "main" }} 1{{ define "main" }}
2<main role="main" class="container-blog mx-auto px-6 md:p-0"> 2<main role="main" class="container-blog mx-auto px-6 md:p-0">
3 3
4 <!-- Search modal and results -->
5 {{ partial "search.html" . }}
6
4 <section class="mb-6"> 7 <section class="mb-6">
5 <h1 class="text-2xl font-bold mb-2">Notes, notes and notes</h1> 8 <h1 class="text-2xl font-bold mb-2">Notes, notes and notes</h1>
6 <p class="text-gray-600 italic"> 9 <p class="text-gray-600 italic">
7 Notes about things I learn, things I do, things I want to remember, 10 Notes about things I learn, things I do, things I want to remember,
8 but never do. You can subscribe to this 11 but never do. You can subscribe to this
9 <a href="/notes.xml" class="underline hover:bg-yellow-100">RSS feed</a> 12 <a href="/notes/index.xml" class="underline hover:bg-yellow-100">RSS feed</a>
10 which contains only the notes without the blog posts. 13 which contains only the notes without the blog posts.
11 </p> 14 </p>
12 </section> 15 </section>
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index 77354b7..cadfd7b 100644
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -1,6 +1,9 @@
1{{ define "main" }} 1{{ define "main" }}
2<main role="main" class="container-blog mx-auto px-6 md:p-0"> 2<main role="main" class="container-blog mx-auto px-6 md:p-0">
3 3
4 <!-- Search modal and results -->
5 {{ partial "search.html" . }}
6
4 <!-- Single article --> 7 <!-- Single article -->
5 <article itemtype="http://schema.org/Article" class="single mb-12"> 8 <article itemtype="http://schema.org/Article" class="single mb-12">
6 <header class="mb-6"> 9 <header class="mb-6">