From 0874dd5d5652f7d710d98329ba111fd69e7d8fce Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 24 Feb 2025 02:18:20 +0800 Subject: feat(www): YEAH! --- www/layouts/_default/baseof.html | 54 ++++++++++++++++++++++++++++++++++++++++ www/layouts/_default/list.html | 12 +++++++++ www/layouts/_default/single.html | 17 +++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 www/layouts/_default/baseof.html create mode 100644 www/layouts/_default/list.html create mode 100644 www/layouts/_default/single.html (limited to 'www/layouts/_default') 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 @@ + + + + + + + + + {{ block "title" . }} + {{ .Site.Title }} + {{ end }} + {{ with resources.Get "catppuccin-latte.css" | minify | fingerprint }} + + {{ end }} + {{ with resources.Get "catppuccin-mocha.css" | minify | fingerprint }} + + {{ end }} + {{ partial "css.html" "base-style.css" }} + {{ block "head" . }} + {{ end }} + + + {{ partial "js.html" "color-scheme.ts" }} +
+ 🙃The world is full of pain, but we can fix it with love! +
+ {{ block "pre-article" .}} + {{ end }} +
+ {{ block "content" . }} + {{ end }} +
+ +
+ + {{ block "scripts" . }} + {{ end }} + + 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" . }} +

Posts

+ {{ 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" . }} +

{{ .Title }}

+
+

{{ partial "date.html" .Date }} Last updated: {{ partial "date.html" .Lastmod }}

+ {{ .Content }} +
+ {{ partial "nav.html" . }} +{{ end }} -- cgit v1.2.3