From 8e29f0b7c63f9696a611f607d98b8d6c07945262 Mon Sep 17 00:00:00 2001 From: Benny Guo Date: Thu, 17 Aug 2023 02:26:50 +0800 Subject: [PATCH] feat: add footer link feature --- _config.yml | 23 ++- src/App.vue | 7 +- src/components/Button/PrimaryButton.vue | 2 +- src/components/Button/SecondaryButton.vue | 2 +- src/components/{ => Footer}/Footer.vue | 4 +- src/components/Footer/FooterLink.vue | 148 ++++++++++++++++++++ src/components/Link/LinkBox.vue | 11 +- src/components/LoadingSkeleton/Skeleton.vue | 1 - src/components/Sidebar/src/Toc.vue | 6 +- src/components/Sticky.vue | 46 +++--- src/hooks/useLightBox.ts | 1 - src/icons/reload.svg | 6 + src/models/ThemeConfig.class.ts | 32 ++++- src/utils/comments/gravatar.ts | 2 - 14 files changed, 257 insertions(+), 34 deletions(-) rename src/components/{ => Footer}/Footer.vue (98%) create mode 100644 src/components/Footer/FooterLink.vue create mode 100644 src/icons/reload.svg diff --git a/_config.yml b/_config.yml index e6c91de2..3291442d 100644 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,14 @@ site: police_beian: number: '' link: '' - started_date: # Start date of the blog YYY-MM-DD / 博客开始运行日期 + # Start date of the blog YYY-MM-DD + # 博客开始运行日期 + started_date: + # Path unique identifier (文章 URL 唯一标识) + # uid: use unique ID + # slug: use generated slug base on title + # (Default is 'slug') + pathSlug: 'slug' #! --------------------------------------------------------------- #! Authors Configs @@ -190,3 +197,17 @@ aurora_bot: injects: scripts: css: + +#! --------------------------------------------------------------- +#! Footer links +#! --------------------------------------------------------------- +footer_links: + - title: # main title + links: + - title: # link title + url: # URL link + - title: # link title + url: # URL link + - title: Friends # link of friends mode / 友链模式 + mode: 'links' + diff --git a/src/App.vue b/src/App.vue index 8e44f624..7030caba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,6 +21,7 @@
+