diff --git a/components/AnalyticsBusuanzi.js b/components/AnalyticsBusuanzi.js
new file mode 100644
index 00000000..3248e45d
--- /dev/null
+++ b/components/AnalyticsBusuanzi.js
@@ -0,0 +1,18 @@
+/**
+ * 不蒜子统计 访客和阅读量
+ * @returns
+ */
+export default function AnalyticsBusuanzi() {
+ return (
+
+
diff --git a/components/BeiAnSite.js b/components/BeiAnSite.js
new file mode 100644
index 00000000..d7c93121
--- /dev/null
+++ b/components/BeiAnSite.js
@@ -0,0 +1,21 @@
+import { siteConfig } from '@/lib/config'
+
+/**
+ * 站点域名备案
+ * @returns
+ */
+export default function BeiAnSite() {
+ const beian = siteConfig('BEI_AN')
+ if (!beian) {
+ return null
+ }
+ return (
+
+
+
+ {siteConfig('BEI_AN')}
+
+
+
+ )
+}
diff --git a/components/CopyRightDate.js b/components/CopyRightDate.js
new file mode 100644
index 00000000..e7858422
--- /dev/null
+++ b/components/CopyRightDate.js
@@ -0,0 +1,26 @@
+import { siteConfig } from '@/lib/config'
+
+/**
+ * 网站版权日期
+ * 示例: 2021-2024
+ * @returns
+ */
+export default function CopyRightDate() {
+ const d = new Date()
+ const currentYear = d.getFullYear()
+ const since = siteConfig('SINCE')
+ const copyrightDate =
+ parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
+
+ return (
+
+
+ {copyrightDate}
+
+ {siteConfig('AUTHOR')}
+
+
+ )
+}
diff --git a/components/PoweredBy.js b/components/PoweredBy.js
new file mode 100644
index 00000000..e07825ea
--- /dev/null
+++ b/components/PoweredBy.js
@@ -0,0 +1,20 @@
+import { siteConfig } from '@/lib/config'
+
+/**
+ * 驱动版权
+ * @returns
+ */
+export default function PoweredBy(props) {
+ return (
+
+ )
+}
diff --git a/public/svg/zhishixingqiu-white.svg b/public/svg/zhishixingqiu-white.svg
new file mode 100644
index 00000000..d9a72ede
--- /dev/null
+++ b/public/svg/zhishixingqiu-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/themes/commerce/components/Footer.js b/themes/commerce/components/Footer.js
index dbe0d224..3411773c 100644
--- a/themes/commerce/components/Footer.js
+++ b/themes/commerce/components/Footer.js
@@ -1,4 +1,6 @@
-import { GongAnBeiAn } from '@/components/GongAnBeiAn'
+import { BeiAnGongAn } from '@/components/BeiAnGongAn'
+import BeiAnSite from '@/components/BeiAnSite'
+import CopyRightDate from '@/components/CopyRightDate'
import { siteConfig } from '@/lib/config'
import Link from 'next/link'
import CONFIG from '../config'
@@ -186,14 +188,7 @@ const Footer = props => {
{/* 网站所有者 */}
{/* 技术支持 */}
@@ -227,15 +222,10 @@ const Footer = props => {
{siteConfig('DESCRIPTION')}
{/* 可选备案信息 */}
- {siteConfig('BEI_AN') && (
- <>
-
{' '}
-
- {siteConfig('BEI_AN')}
-
- >
- )}
-
+
+
+
+
diff --git a/themes/example/components/Footer.js b/themes/example/components/Footer.js
index 02614f9d..029a31b7 100644
--- a/themes/example/components/Footer.js
+++ b/themes/example/components/Footer.js
@@ -1,44 +1,25 @@
+import { BeiAnGongAn } from '@/components/BeiAnGongAn'
+import BeiAnSite from '@/components/BeiAnSite'
+import CopyRightDate from '@/components/CopyRightDate'
import DarkModeButton from '@/components/DarkModeButton'
-import { GongAnBeiAn } from '@/components/GongAnBeiAn'
-import { siteConfig } from '@/lib/config'
+import PoweredBy from '@/components/PoweredBy'
export const Footer = props => {
- const d = new Date()
- const currentYear = d.getFullYear()
- const since = siteConfig('SINCE')
- const copyrightDate =
- parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
-
return (
-
- {siteConfig('CONTACT_GITHUB') && (
-
-
-
- )}
- {siteConfig('CONTACT_TWITTER') && (
-
-
-
- )}
- {siteConfig('CONTACT_TELEGRAM') && (
-
-
-
- )}
- {siteConfig('CONTACT_LINKEDIN') && (
-
-
-
- )}
- {siteConfig('CONTACT_WEIBO') && (
-
-
-
- )}
- {siteConfig('CONTACT_INSTAGRAM') && (
-
-
-
- )}
- {siteConfig('CONTACT_EMAIL') && (
-
-
-
- )}
- {JSON.parse(siteConfig('ENABLE_RSS')) && (
-
-
-
- )}
- {siteConfig('CONTACT_BILIBILI') && (
-
-
-
- )}
- {siteConfig('CONTACT_YOUTUBE') && (
-
-
-
- )}
+
)
}
diff --git a/themes/magzine/index.js b/themes/magzine/index.js
index ffcd69dd..1b01c3bb 100644
--- a/themes/magzine/index.js
+++ b/themes/magzine/index.js
@@ -276,10 +276,12 @@ const LayoutSlug = props => {
{/* 广告醒图 */}
{/* 推荐关联文章 */}
-
+ {recommendPosts && recommendPosts.length > 0 && (
+
+ )}
>
)
diff --git a/themes/matery/components/Footer.js b/themes/matery/components/Footer.js
index f40c22f7..474f0453 100644
--- a/themes/matery/components/Footer.js
+++ b/themes/matery/components/Footer.js
@@ -1,4 +1,4 @@
-import { GongAnBeiAn } from '@/components/GongAnBeiAn'
+import { BeiAnGongAn } from '@/components/BeiAnGongAn'
import { siteConfig } from '@/lib/config'
const Footer = ({ title }) => {
@@ -37,7 +37,7 @@ const Footer = ({ title }) => {