From 2b1fc63ec05ff64b1547215f5ab3be9f4ff8a926 Mon Sep 17 00:00:00 2001 From: nodejh Date: Sat, 20 Feb 2021 22:57:40 +0800 Subject: [PATCH] feat: refactor header and navigation --- archetypes/default.md | 15 +- layouts/_default/baseof.html | 9 +- layouts/index copy-back.html | 1 + layouts/index.html | 57 +- layouts/partials/navigation.html | 12 +- layouts/partials/profile.html | 21 +- static/css/style copy.css | 943 +++++++++++++++++++++++++++ static/css/style.css | 1045 +++++------------------------- static/images/avatar.png | Bin 3094 -> 8704 bytes static/images/avatar@2x.png | Bin 8704 -> 0 bytes 10 files changed, 1183 insertions(+), 920 deletions(-) create mode 100644 static/css/style copy.css delete mode 100644 static/images/avatar@2x.png diff --git a/archetypes/default.md b/archetypes/default.md index f87f0b0..93e7403 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,7 +1,8 @@ -+++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" -date = {{ .Date }} -tags = [""] -categories = [""] -draft = false -+++ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +tags: +categories: +draft: false + +--- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3a7f169..5f65de7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,8 +9,11 @@ {{ partial "navigation.html" . }} - {{ block "header" . }}{{ end }} - {{ block "main" . }}{{ end }} - {{ block "footer" . }}{{ end }} + +
+ {{ block "header" . }}{{ end }} + {{ block "main" . }}{{ end }} + {{ block "footer" . }}{{ end }} +
diff --git a/layouts/index copy-back.html b/layouts/index copy-back.html index 74411da..8c63f69 100644 --- a/layouts/index copy-back.html +++ b/layouts/index copy-back.html @@ -13,3 +13,4 @@ {{ partial "js.html" . }} +cl \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 0778fbb..b117184 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,27 +1,46 @@ {{ define "main" }} - {{ partial "profile.html" . }} +{{ partial "profile.html" . }} + +
+ + +

old

{{ end }} diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index bed4e0d..9519e0b 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,4 +1,4 @@ -