aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'www/layouts/_default')
-rw-r--r--www/layouts/_default/baseof.html54
-rw-r--r--www/layouts/_default/list.html12
-rw-r--r--www/layouts/_default/single.html17
3 files changed, 83 insertions, 0 deletions
diff --git a/www/layouts/_default/baseof.html b/www/layouts/_default/baseof.html
new file mode 100644
index 0000000..defa6ac
--- /dev/null
+++ b/www/layouts/_default/baseof.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta charset="UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <link rel="icon" href="/favicon.ico" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>{{ block "title" . }}
+ {{ .Site.Title }}
+ {{ end }}</title>
+ {{ with resources.Get "catppuccin-latte.css" | minify | fingerprint }}
+ <style>{{ printf `@import url(%s);` .RelPermalink | safeCSS }}</style>
+ {{ end }}
+ {{ with resources.Get "catppuccin-mocha.css" | minify | fingerprint }}
+ <style>{{ printf `@import url(%s) (prefers-color-scheme: dark);` .RelPermalink | safeCSS }}</style>
+ {{ end }}
+ {{ partial "css.html" "base-style.css" }}
+ {{ block "head" . }}
+ {{ end }}
+ </head>
+ <body>
+ {{ partial "js.html" "color-scheme.ts" }}
+ <div id="slogan">
+ <span>🙃The world is full of pain, but we can fix it with love!</span>
+ </div>
+ {{ block "pre-article" .}}
+ {{ end }}
+ <article id="main-article">
+ {{ block "content" . }}
+ {{ end }}
+ <hr/>
+ <footer class="mono-link">
+ <p id="license">
+ <small>This work is licensed under
+ <a rel="license noopener noreferrer"
+ href="https://creativecommons.org/licenses/by-nc/4.0/"
+ target="_blank">
+ <span id="license-text">CC BY-NC 4.0</span>
+ <span id="license-img-container">
+ <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg"/>
+ <img src="https://mirrors.creativecommons.org/presskit/icons/by.svg"/>
+ <img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg"/>
+ </span>
+ </a>
+ </small>
+ </p>
+ </footer>
+ </article>
+
+ {{ block "scripts" . }}
+ {{ end }}
+</body>
+</html>
diff --git a/www/layouts/_default/list.html b/www/layouts/_default/list.html
new file mode 100644
index 0000000..ddc3942
--- /dev/null
+++ b/www/layouts/_default/list.html
@@ -0,0 +1,12 @@
+{{ define "head"}}
+ {{ partial "css.html" "partials/preview/article.css" }}
+{{ end }}
+
+{{ define "content" }}
+ {{ partial "nav.html" . }}
+ <h1>Posts</h1>
+ {{ partial "preview/posts.html" (dict
+ "h" "h3"
+ "pages" (.RegularPages.ByDate.Reverse.Limit 3))
+ }}
+{{ end }}
diff --git a/www/layouts/_default/single.html b/www/layouts/_default/single.html
new file mode 100644
index 0000000..83297cf
--- /dev/null
+++ b/www/layouts/_default/single.html
@@ -0,0 +1,17 @@
+{{ define "head"}}
+ {{ partial "css.html" "single.css" }}
+{{ end }}
+
+{{ define "title" }}
+ {{ .Title }}
+{{ end }}
+
+{{ define "content" }}
+ {{ partial "nav.html" . }}
+ <h1 class="post-title">{{ .Title }}</h1>
+ <hr/>
+ <p class="post-info"><span class="created">{{ partial "date.html" .Date }}</span> <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span></p>
+ {{ .Content }}
+ <hr class="end-hr"/>
+ {{ partial "nav.html" . }}
+{{ end }}