summaryrefslogtreecommitdiff
path: root/notes/index.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'notes/index.html.tmpl')
-rw-r--r--notes/index.html.tmpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/notes/index.html.tmpl b/notes/index.html.tmpl
new file mode 100644
index 0000000..468a466
--- /dev/null
+++ b/notes/index.html.tmpl
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Notes — tjp.lol</title>
+<meta name="description" content="A public cut of my Obsidian notes — a small digital garden.">
+<link rel="stylesheet" href="../style.css">
+</head>
+<body>
+<div class="wrap">
+
+{{template "header" .}}
+ <main>
+ <section class="intro">
+ <p>This is a digital garden &mdash; a public slice of the notes I keep in Obsidian. Unlike the <a href="../weblog/index.html">weblog</a>, these aren't essays. They're living pages: some are a paragraph, some are years old, most link to each other. Start anywhere and follow the threads.</p>
+ </section>
+
+ <section>
+ <h2 class="sec">start here</h2>
+ </section>
+
+ <section>
+ <h2 class="sec">all notes</h2>
+ {{$notes := sortPages (index .Pages "notes") "mod_time"}}{{with $notes}}<div class="note-index">
+ {{range .}}<a href="{{rel "notes/index.html" .OutputPath}}">{{.Title}}</a>{{end}}
+ </div>{{end}}
+ </section>
+ </main>
+
+{{template "footer" .}}