From ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 3 Jan 2025 18:50:55 +0800 Subject: Website update --- layouts/_default/baseof.html | 3 +++ layouts/_default/home.html | 8 ++++++++ layouts/_default/section.html | 7 +++++++ layouts/_default/single.html | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 layouts/_default/section.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6d931cb..359e544 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,10 @@ + {{ block "title" . }}{{ .Site.Title }}{{ end }} + {{ $style := resources.Get "style.css" | resources.Minify | resources.Fingerprint }} + {{ block "main" . }} diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 872513f..8bcf1b4 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -4,4 +4,12 @@ {{ 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 index ba2e421..480b8f5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "title" }} - {{ .Title }} – {{ .Site.Title }} + {{ .Title }} {{ end }} {{ define "main" }}

{{ .Title }}

-- cgit v1.2.3