From 3875144dd7667831a72e5fc460c60a827343f883 Mon Sep 17 00:00:00 2001 From: Nagi-ovo <13264500190@163.com> Date: Mon, 26 Aug 2024 21:42:22 +0800 Subject: [PATCH] fix: website url typo --- next-sitemap.js | 2 +- src/components/Seo.tsx | 6 +++--- src/components/layout/Footer.tsx | 6 +++--- src/lib/rss.ts | 2 +- src/pages/_app.tsx | 2 +- src/pages/_document.tsx | 2 +- src/pages/design.tsx | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/next-sitemap.js b/next-sitemap.js index e853f07..0a5bb22 100644 --- a/next-sitemap.js +++ b/next-sitemap.js @@ -1,5 +1,5 @@ module.exports = { - siteUrl: 'https://bjut-swift.cn/', + siteUrl: 'https://bjutswift.cn/', generateRobotsTxt: true, robotsTxtOptions: { policies: [{ userAgent: '*', allow: '/' }], diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index 5943822..c9ffdda 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -5,10 +5,10 @@ import { openGraph } from '@/lib/helper.client'; const defaultMeta = { title: 'BJUT SWIFT', - siteName: 'bjut-swift.cn', + siteName: 'bjutswift.cn', description: 'BJUT SWIFT官网', - url: 'https://bjut-swift.cn', - image: 'https://bjut-swift.cn/favicon/large-og.jpg', + url: 'https://bjutswift.cn', + image: 'https://bjutswift.cn/favicon/large-og.jpg', type: 'website', robots: 'follow, index', author: 'BJUT SWIFT', diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index f655c40..2713fb9 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -81,14 +81,14 @@ function SocialLinks() { ? 'Click the mail logo to copy' : 'Copied to clipboard 🥳'} - bjut-swift@gmail.com + bjut.swift@gmail.com } > { - copy('bjut-swift@gmail.com').then(() => { + copy('bjut.swift@gmail.com').then(() => { setCopyStatus('copied'); setTimeout(() => setCopyStatus('idle'), 1500); }); @@ -158,7 +158,7 @@ const footerLinks: { href: string; text: string; tooltip: React.ReactNode }[] = tooltip: 'Get an email whenever I post, no spam', }, { - href: 'https://bjut-swift.cn/rss.xml', + href: 'https://bjutswift.cn/rss.xml', text: 'RSS', tooltip: 'Add BJUT SWIFT blog to your feeds', }, diff --git a/src/lib/rss.ts b/src/lib/rss.ts index d36b96f..65c4ea6 100644 --- a/src/lib/rss.ts +++ b/src/lib/rss.ts @@ -6,7 +6,7 @@ import { getAllFilesFrontmatter } from '@/lib/mdx.server'; export async function getRssXml() { const frontmatters = await getAllFilesFrontmatter('blog'); - const blogUrl = 'https://bjut-swift.cn/blog'; + const blogUrl = 'https://bjutswift.cn/blog'; const itemXml = frontmatters .filter((fm) => !fm.slug.startsWith('id-')) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7262e59..3f14c88 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -29,7 +29,7 @@ function MyApp({ Component, pageProps }: AppProps) { // Don't increment views if not on main domain if ( window.location.host !== - (process.env.NEXT_PUBLIC_BLOCK_DOMAIN_WHITELIST || 'bjut-swift.cn') && + (process.env.NEXT_PUBLIC_BLOCK_DOMAIN_WHITELIST || 'bjutswift.cn') && blockDomainMeta ) { if (getFromLocalStorage('incrementMetaFlag') !== 'false') { diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 5898626..3c7c0b3 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -28,7 +28,7 @@ class MyDocument extends Document { defer data-website-id={process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID || ''} src='https://umami.thcl.dev/script.js' - data-domains='bjut-swift.cn' + data-domains='bjutswift.cn' /> diff --git a/src/pages/design.tsx b/src/pages/design.tsx index 93f2d0f..637e210 100644 --- a/src/pages/design.tsx +++ b/src/pages/design.tsx @@ -26,7 +26,7 @@ export default function DesignPage() { - bjut-swift.cn color palette + bjutswift.cn color palette
- bjut-swift.cn color palette + bjutswift.cn color palette