From 60438e0bf6b3de5a1c57d16622a30814b2b3ee2f Mon Sep 17 00:00:00 2001 From: Stanley Nguyen Date: Sun, 24 May 2020 20:42:32 +0800 Subject: [PATCH 1/3] fix(post) Fix typo in post template --- layouts/partials/post.html | 41 ++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/layouts/partials/post.html b/layouts/partials/post.html index f735a20..4036716 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -6,17 +6,14 @@

- {{ with $.Site.Params.avatar }} + {{ with $.Site.Params.avatar }} - - {{ else }} - - {{ end }} + + {{ else }} + + {{ end }} - {{ .Site.Params.author }} + {{ .Site.Params.author }} / {{ .Title }} @@ -26,7 +23,7 @@ title="Created at {{ .PublishDate.Format "2006/01/02" }}"> {{ .PublishDate.Format "2006-01-02" }} - Modifyed {{ .Lastmod.Format "2006-01-02" }}

@@ -70,17 +67,17 @@ async> --> -{{ end }} +{{ end }} \ No newline at end of file From 097e6a64328402a0855f959bfedf1b6e344bf21a Mon Sep 17 00:00:00 2001 From: Stanley Nguyen Date: Sun, 24 May 2020 20:45:38 +0800 Subject: [PATCH 2/3] fix(archetypes) Fix default archetypes syntax --- archetypes/default.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index a9faf2e..6fbc6a3 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,8 +1,8 @@ +++ -title: "" -date: "" -author: "" -keywords: ["", ""] -cover: "" -summary: "" +title = "" +date = {{ .Date }} +author = "" +keywords = ["", ""] +cover = "" +summary = "" +++ From 767ec84c6ae2dc4189938ba26274662294650e02 Mon Sep 17 00:00:00 2001 From: Stanley Nguyen Date: Sun, 24 May 2020 20:50:38 +0800 Subject: [PATCH 3/3] feat(disable_dark_mode) Add property to disable dark mode --- layouts/partials/head.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8391b18..af635b4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,8 +2,11 @@ + {{ if $.Site.Params.disableDarkMode }} + {{ else }} + {{end}} @@ -56,4 +59,4 @@ {{ partial "extended_head.html" . }} {{ template "_internal/google_analytics_async.html" . }} - + \ No newline at end of file