From e12f35a1b4ec2a7536353f628e071efea2bea42c Mon Sep 17 00:00:00 2001 From: Matt-wzy Date: Tue, 3 Jan 2023 23:36:08 +0800 Subject: [PATCH 1/3] 1.add dark mode with auto detect 2.add a back to top button @sulibo 3.link jump to the next page rather than inside the current page 4.add hitokoto at the bottom of the website 5.add Aplayer and meeting js 6.upgrade open color to version 1.9.1 --- _includes/head.html | 61 +++ _includes/nav.html | 2 + _layouts/default.html | 12 +- _sass/_highlights.scss | 234 +++++--- _sass/_open-color.scss | 25 +- _sass/_variables.scss | 23 + assets/js/back-to-top.js | 16 + images/moon.ico | Bin 0 -> 67646 bytes images/sun.ico | Bin 0 -> 67646 bytes style.scss | 1104 ++++++++++++++++++++++++++++---------- 10 files changed, 1103 insertions(+), 374 deletions(-) create mode 100644 assets/js/back-to-top.js create mode 100644 images/moon.ico create mode 100644 images/sun.ico diff --git a/_includes/head.html b/_includes/head.html index 8d75326d3..d21e97f20 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -16,6 +16,17 @@ + + + + + + + + + + + + + + diff --git a/_includes/nav.html b/_includes/nav.html index 5b8c13943..736bd15c2 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -24,6 +24,8 @@

{{ site.name }}

\ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 4fa06c5ac..dcbef7dde 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,7 +1,7 @@ {% include head.html %} - + {% include nav.html %} {% if page.toc==true %} @@ -17,6 +17,14 @@ {% include analytics.html %} + + + + + {% if page.toc==true %} @@ -28,6 +36,8 @@