From 05a16e618c4f2b20398ff7481d8b3ea28431b295 Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 8 Apr 2024 02:50:00 +0900 Subject: [PATCH] fix --- layouts/index.html | 3 + layouts/partials/content.html | 11 +++- layouts/partials/head.html | 2 + layouts/partials/header.html | 4 ++ layouts/partials/particles.html | 5 ++ static/css/style.css | 48 ++++++++------ static/pkg/hotkeys-js/dist/terminal.js | 3 + static/pkg/particles/config.js | 1 + static/pkg/particles/particles.css | 34 ++++++++++ static/pkg/particles/particles.min.js | 9 +++ static/pkg/particles/stats.min.js | 89 ++++++++++++++++++++++++++ 11 files changed, 189 insertions(+), 20 deletions(-) create mode 100644 layouts/partials/particles.html create mode 100644 static/pkg/particles/config.js create mode 100644 static/pkg/particles/particles.css create mode 100644 static/pkg/particles/particles.min.js create mode 100644 static/pkg/particles/stats.min.js diff --git a/layouts/index.html b/layouts/index.html index d6ba684e..6a7b4ee2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,10 @@ {{ partial "navbar.html" . }} {{ partial "header.html" . }} {{ partial "content.html" . }} + + {{ partial "footer.html" . }} + diff --git a/layouts/partials/content.html b/layouts/partials/content.html index addaf45c..47123632 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,4 +1,6 @@ +
+
    @@ -24,7 +26,7 @@ {{ if or (eq $t "chara") (eq $t "story") (eq $t "card") (eq $t "vrm") }}
  • - +
  • @@ -40,7 +42,7 @@ {{ end }}
  • - +
  • + +
+ + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e9832a3b..b4258de9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,4 +40,6 @@ {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index abd86406..8569790f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,9 +1,13 @@ +
+ {{ $s := path.Dir (.Permalink | relURL) }} {{ $t := index (split $s "/") 2 }} {{ $o := index (split $s "/") 1 }} +