diff --git a/src/components/AppFooter.astro b/src/components/AppFooter.astro new file mode 100644 index 00000000..fe77fb2f --- /dev/null +++ b/src/components/AppFooter.astro @@ -0,0 +1,64 @@ +--- +import CounterAnalytics from '@/components/analytics/CounterAnalytics.astro' +import GoogleAnalytics from '@/components/analytics/GoogleAnalytics.astro' +import Swetrix from '@/components/analytics/Swetrix.astro' +import Icon from '@/components/Icon.astro' +import siteConfig from '@/configs/site' +import { getPluginConfig, isPluginEnabled } from '@/utils/plugin' + +const { author } = siteConfig +const { name, nickname, email, homepage, github, twitter, telegram, reddit } = + author +const socialNetworks: Record = { + github, + twitter, + telegram, + reddit, +} +--- + + +{ + isPluginEnabled('googleAnalytics') ? ( + + ) : ( + '' + ) +} +{isPluginEnabled('swetrix') ? : ''} +{ + isPluginEnabled('counterAnalytics') ? ( + + ) : ( + '' + ) +} + + diff --git a/src/components/AppHeader.astro b/src/components/AppHeader.astro index 07a3a014..7b194b23 100644 --- a/src/components/AppHeader.astro +++ b/src/components/AppHeader.astro @@ -8,7 +8,7 @@ import Icon from './Icon.astro' export interface Props extends HTMLAttributes<'svg'> {} const { ...props } = Astro.props -const { title, description, authorAvatar } = siteConfig +const { title, description, author } = siteConfig ---