From 41a2fa7778086e3498a7b2cc3b5a0b617b0e4b54 Mon Sep 17 00:00:00 2001 From: wangalin Date: Thu, 18 Jul 2024 17:49:37 +0800 Subject: [PATCH] config the site --- .vitepress/config.mts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index d7cab4d..1b417d3 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -4,6 +4,24 @@ import { defineConfig } from 'vitepress' export default defineConfig({ title: "Elin's Blog", description: "To record and Share my ideas.", + lastUpdated: true, + sitemap: { + hostname: "https://violinmeng.github.io" + }, + head: [ + [ + 'script', + { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=GTM-KDFF455F' } + ], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'GTM-KDFF455F');` + ] + ], themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [