summaryrefslogtreecommitdiff
path: root/themes/plaintext/layouts/_default
diff options
context:
space:
mode:
authorclaw0ry <me@claw0ry.net>2024-12-11 13:56:52 +0100
committerclaw0ry <me@claw0ry.net>2024-12-11 13:56:52 +0100
commit4719cc03837490ed4bf1b9725d75a686e56e5a6a (patch)
tree769dd3a3a87153df049b3043196bd131495b10ad /themes/plaintext/layouts/_default
fresh start
Diffstat (limited to 'themes/plaintext/layouts/_default')
-rw-r--r--themes/plaintext/layouts/_default/baseof.html36
-rw-r--r--themes/plaintext/layouts/_default/list.html8
-rw-r--r--themes/plaintext/layouts/_default/single.html10
3 files changed, 54 insertions, 0 deletions
diff --git a/themes/plaintext/layouts/_default/baseof.html b/themes/plaintext/layouts/_default/baseof.html
new file mode 100644
index 0000000..2f38a78
--- /dev/null
+++ b/themes/plaintext/layouts/_default/baseof.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+
+{{ "<!--" | safeHTML }}
+
+ Hello, from the source code! :)
+
+ I'm sorry the source code is a little messy. Hugo does not indent correctly..
+
+ @claw0ry
+
+{{ "-->" | safeHTML }}
+
+<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}">
+
+<head>
+ {{ partial "head.html" . }}
+</head>
+
+<body>
+ <header>
+ {{ partial "header.html" . }}
+ </header>
+
+ <div class="content">
+ <main>
+ {{ block "main" . }}{{ end }}
+
+ </main>
+
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
+ </div>
+</body>
+
+</html>
diff --git a/themes/plaintext/layouts/_default/list.html b/themes/plaintext/layouts/_default/list.html
new file mode 100644
index 0000000..50fc92d
--- /dev/null
+++ b/themes/plaintext/layouts/_default/list.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ {{ range .Pages }}
+ <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+ {{ .Summary }}
+ {{ end }}
+{{ end }}
diff --git a/themes/plaintext/layouts/_default/single.html b/themes/plaintext/layouts/_default/single.html
new file mode 100644
index 0000000..7e286c8
--- /dev/null
+++ b/themes/plaintext/layouts/_default/single.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+
+ {{ .Content }}
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+{{ end }}