From 0888f273e817c9d860d8d92dde176509637ed0b5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 3 Jan 2025 20:48:53 +0800 Subject: Initial commit --- layouts/_default/baseof.html | 18 ++++++++++++++++++ layouts/_default/home.html | 15 +++++++++++++++ layouts/_default/section.html | 7 +++++++ layouts/_default/single.html | 7 +++++++ 4 files changed, 47 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/section.html create mode 100644 layouts/_default/single.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..359e544 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,18 @@ + + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + {{ $style := resources.Get "style.css" | resources.Minify | resources.Fingerprint }} + + + + {{ block "main" . }} + {{ end }} + {{ block "footer" . }} + {{ end }} + + + + diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..8bcf1b4 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,15 @@ +{{ define "title" }} + {{ .Site.Title }} +{{ end }} +{{ define "main" }} +

{{ .Site.Title }}

+ {{ .Content }} +

Projects

+ +{{ end }} + diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..480b8f5 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Title }} +{{ end }} +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..480b8f5 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Title }} +{{ end }} +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{ end }} -- cgit v1.2.3