summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorforever2k38 <forever2k38@noreply.codeberg.org>2026-09-05 01:34:40 +0200
committerforever2k38 <forever2k38@noreply.codeberg.org>2026-09-05 01:34:40 +0200
commitaa2528adf2e9e7d1d1e8baed2d6fda511a0502d9 (patch)
tree1824ef5dc9ccdda8c0e60e9eedfc39c7aecb286c /layouts
initial commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html7
-rw-r--r--layouts/_partials/head.html14
-rw-r--r--layouts/baseof.html29
-rw-r--r--layouts/home.html3
-rw-r--r--layouts/page.html6
5 files changed, 59 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..c2e7875
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ {{ range .Pages }}
+ <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+ {{ end }}
+{{ end }}
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
new file mode 100644
index 0000000..1689fcc
--- /dev/null
+++ b/layouts/_partials/head.html
@@ -0,0 +1,14 @@
+<title>forever2k38</title>
+
+{{ $scss := resources.Get "scss/main.scss" }}
+{{ $css := $scss | toCSS (dict "transpiler" "dartsass") | minify | fingerprint }}
+<link rel="stylesheet"
+ href="{{ $css.RelPermalink }}"
+ integrity="{{ $css.Data.Integrity }}"
+ crossorigin="anonymous">
+
+{{ $favicon := resources.Get "img/favicon.png" }}
+<link rel="icon"
+ href="{{ $favicon.RelPermalink }}"
+ integrity="{{ $css.Data.Integrity }}"
+ crossorigin = "anonymous">
diff --git a/layouts/baseof.html b/layouts/baseof.html
new file mode 100644
index 0000000..291be14
--- /dev/null
+++ b/layouts/baseof.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ {{ partial "head.html" . }}
+ </head>
+ <body>
+ <header>
+ <h1><a href="/">forever2k38</a></h1>
+
+ <nav>
+ {{- range .Site.Menus.main }}
+ <a {{ with .Params.class -}} class="{{ . }}" {{ end -}} href="{{ .URL }}">{{ .Name }}</a>
+ {{- end }}
+ </nav>
+ </header>
+
+
+ <main>
+ <div class="content">
+ {{ block "main" . }}
+ {{ end }}
+ </div>
+ </main>
+
+ <footer>
+ <p>copyright (c) 2026 forever2k38</p>
+ </footer>
+ </body>
+</html>
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..e0e8308
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/page.html b/layouts/page.html
new file mode 100644
index 0000000..79b5a0e
--- /dev/null
+++ b/layouts/page.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ <div class="content">
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ </div>
+{{ end }}