chore: remove deprecated files and update configuration for improved SEO and performance. Adjust font usage in styles, enhance sitemap handling, and refine search functionality.
This commit is contained in:
@@ -7,7 +7,6 @@ import Head from '@/components/Head.astro'
|
||||
import Navbar from '@/components/react/navbar'
|
||||
import { SITE } from '@/consts'
|
||||
import { cn } from '@/lib/utils'
|
||||
import Posthog from '@/components/Posthog.astro'
|
||||
|
||||
const {
|
||||
isWide = false
|
||||
@@ -19,12 +18,11 @@ const {
|
||||
<Head>
|
||||
<slot name="head" />
|
||||
<script is:inline src="https://analytics.ahrefs.com/analytics.js" data-key="+FHMgRP7/Duxaq5D0gZtJw" async></script>
|
||||
<link rel="sitemap" href="/sitemap.xml" />
|
||||
|
||||
<!-- Preload critical resources -->
|
||||
<link rel="preload" href="/fonts/GeistVF.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<link rel="preload" href="/fonts/GeistMonoVF.woff2" as="font" type="font/woff2" crossorigin />
|
||||
|
||||
<link rel="preload" href="/fonts/ClashDisplay/ClashDisplay-Semibold.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<link rel="preload" href="/fonts/Lexend/Lexend-Regular.woff2" as="font" type="font/woff2" crossorigin />
|
||||
|
||||
<!-- DNS prefetch for external resources -->
|
||||
<link rel="dns-prefetch" href="//analytics.ahrefs.com" />
|
||||
|
||||
@@ -51,7 +49,6 @@ const {
|
||||
})();
|
||||
</script>
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/rss.xml" />
|
||||
<Posthog />
|
||||
</Head>
|
||||
<body>
|
||||
<div class="flex h-fit min-h-screen w-full flex-col gap-y-4 sm:gap-y-6 font-sans">
|
||||
@@ -68,15 +65,5 @@ const {
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-QVK59XQK72"
|
||||
></script>
|
||||
<script is:inline>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "G-QVK59XQK72");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user