From aeb803a5135d08d21d1c0f0ec486166ea84cf4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Wed, 4 May 2022 22:43:06 +0800 Subject: [PATCH] Use dynamic variable Site base information. --- layouts/index.html | 1 - layouts/partials/head.html | 12 ++++++------ layouts/partials/header.html | 8 ++++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 269d142..75883f7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,4 @@ {{ define "main" }} -
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3548b05..a89420e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,15 +7,15 @@ - + - - - - - + + + + + {{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9c831c1..8fbbe91 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,10 +10,10 @@
-

Hexo

+

{{ .Site.Title }}

-

Find the hexo

+

{{ .Site.Params.subtitle }}

@@ -47,8 +47,8 @@
John Doe -

John Doe

-
+

{{ .Site.Params.author }}

+
{{ .Site.Params.description }}