From 2a08da15d7502efccba3df5f565d0795ca9e2fcc Mon Sep 17 00:00:00 2001 From: prototypa Date: Fri, 6 Jan 2023 17:17:57 -0500 Subject: [PATCH] Reduce innecessary components --- src/components/common/ExtraMetaTags.astro | 7 ------- src/components/common/MetaTags.astro | 10 +++++----- 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 src/components/common/ExtraMetaTags.astro diff --git a/src/components/common/ExtraMetaTags.astro b/src/components/common/ExtraMetaTags.astro deleted file mode 100644 index 878ed1f..0000000 --- a/src/components/common/ExtraMetaTags.astro +++ /dev/null @@ -1,7 +0,0 @@ ---- -import { getPermalink } from '~/utils/permalinks'; ---- - - - - diff --git a/src/components/common/MetaTags.astro b/src/components/common/MetaTags.astro index 9252d98..f8cfe62 100644 --- a/src/components/common/MetaTags.astro +++ b/src/components/common/MetaTags.astro @@ -4,15 +4,13 @@ import { GoogleAnalytics } from '@astrolib/analytics'; import { getImage } from '@astrojs/image'; import { SITE } from '~/config.mjs'; -import { getCanonical } from '~/utils/permalinks'; +import { MetaSEO } from '~/types'; +import { getPermalink, getCanonical } from '~/utils/permalinks'; import { getRelativeUrlByFilePath } from '~/utils/directories'; import Fonts from '~/components/common/Fonts.astro'; -import ExtraMetaTags from '~/components/common/ExtraMetaTags.astro'; import SplitbeeAnalytics from './SplitbeeAnalytics.astro'; -import { MetaSEO } from '~/types'; - export interface Props extends MetaSEO { dontUseTitleTemplate?: boolean; } @@ -94,4 +92,6 @@ const image = {SITE.splitbeeAnalytics?.enabled && } - + + +