From 953f0291ee58d4fde0586571c2f6d7823cb54e15 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 3 Jan 2025 18:04:14 +0800 Subject: New site --- layouts/_default/baseof.html | 15 +++++++++++++++ layouts/_default/home.html | 7 +++++++ layouts/_default/single.html | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/single.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..6d931cb --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,15 @@ + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + {{ block "main" . }} + {{ end }} + {{ block "footer" . }} + {{ end }} + + + + diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..872513f --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Site.Title }} +{{ end }} +{{ define "main" }} +

{{ .Site.Title }}

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

{{ .Title }}

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