about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/_default
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-03-07 16:23:59 -0800
committerFranck Cuny <franck@fcuny.net>2021-03-07 16:23:59 -0800
commita3f8e661ad54cfec14ca671ea671e728ffc9bb91 (patch)
tree311e573cd5669a07a88b630f906a66ff0aa52d85 /users/fcuny/notes/layouts/_default
downloadworld-a3f8e661ad54cfec14ca671ea671e728ffc9bb91.tar.gz
initial site with hugo
Start my website from scratch once more, using hugo to generate it. For
now the layout is pretty simple:
- an index page that will list future notes
- notes should be created under the "content" directory

The theme is custom and I'll try to keep this simple.
Diffstat (limited to 'users/fcuny/notes/layouts/_default')
-rw-r--r--users/fcuny/notes/layouts/_default/baseof.html11
-rw-r--r--users/fcuny/notes/layouts/_default/list.html10
-rw-r--r--users/fcuny/notes/layouts/_default/single.html11
3 files changed, 32 insertions, 0 deletions
diff --git a/users/fcuny/notes/layouts/_default/baseof.html b/users/fcuny/notes/layouts/_default/baseof.html
new file mode 100644
index 0000000..d9ca51a
--- /dev/null
+++ b/users/fcuny/notes/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<html lang="en">
+  {{ partial "head.html" . }}
+  <body>
+    <div class="main">
+      <main>
+       {{ block "main" . }}{{ end }}
+      </main>
+    </div>
+  </body>
+</html>
diff --git a/users/fcuny/notes/layouts/_default/list.html b/users/fcuny/notes/layouts/_default/list.html
new file mode 100644
index 0000000..3423cb6
--- /dev/null
+++ b/users/fcuny/notes/layouts/_default/list.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+<h1>{{ .Title }}</h1>
+{{ range .Pages.ByPublishDate.Reverse }}
+<p>
+  <a class="font-125" href="{{ .RelPermalink }}">{{ .Title }}</a>
+</p>
+{{ end }}
+
+{{ end }}
diff --git a/users/fcuny/notes/layouts/_default/single.html b/users/fcuny/notes/layouts/_default/single.html
new file mode 100644
index 0000000..a8c1dc7
--- /dev/null
+++ b/users/fcuny/notes/layouts/_default/single.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+
+<p><a href="/">&larr; Back to Franck's homepage</a></p>
+
+<h1>{{ .Title }}</h1>
+
+<p><span class="published">{{ .Date.Format "January 2021" }}</span></p>
+
+{{ .Content }}
+
+{{ end }}