From 0b49431daaf26a02b45ac694a95fbbdfae8141fb Mon Sep 17 00:00:00 2001 From: Doge Date: Tue, 11 May 2021 23:16:57 +0800 Subject: Add support for logo with dark mode and icon descriptions --- _config.yml | 15 +++++++++------ layout/_partial/header.ejs | 35 +++++++++++++++++++++-------------- layout/_partial/scripts.ejs | 6 +++++- source/js/script.js | 11 +++++++++++ source/js/script.min.js | 2 +- source/js/script.ts | 13 +++++++++++++ 6 files changed, 60 insertions(+), 22 deletions(-) diff --git a/_config.yml b/_config.yml index 244a5e2..3d16dc3 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,7 @@ -logo: false +logo: + enable: false + lightmode: null + darkmode: null favicon: false timeformat: "MMM, D YYYY" podcast: true @@ -9,12 +12,12 @@ highlight: lightmode: 'atom-one-light' darkmode: 'atom-one-dark' navbar: - - ['mailto:privet@utc3.live', 'fa fa-paper-plane'] - - ['https://github.com/guiqiqi/chromate', 'fa fa-github'] - - ['/feed.rss', 'fa fa-rss'] + - ['mailto:privet@utc3.live', 'fa fa-paper-plane', ''] + - ['https://github.com/guiqiqi/chromate', 'fa fa-github', ''] + - ['/feed.rss', 'fa fa-rss', ''] menubar: - - ['/about/', '关于'] - - ['/archives/', '归档'] + - ['/about/', 'About'] + - ['/archives/', 'Archives'] rss: enable: true path: '/feed.rss' diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 8ad3684..46c5fc5 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -3,8 +3,8 @@