Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Sep 7, 2024
1 parent e3b9514 commit a2d880c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export default defineConfig({
title: "Uni Network",
description: "为 uni-app 打造的基于 Promise 的 HTTP 客户端。",
head: [
// icon
["link", { rel: "icon", type: "image/png", href: "/logo.png" }],
// Open Graph
["meta", { name: "og:type", content: "website" }],
["meta", { name: "og:locale", content: "zh-cn" }],
["meta", { name: "og:site_name", content: "Uni Network" }],
Expand All @@ -16,6 +18,22 @@ export default defineConfig({
"https://github.com/uni-helper/website/raw/main/.github/assets/uni-helper-banner.png",
},
],
// Google Analytics
[
"script",
{
async: "",
src: "https://www.googletagmanager.com/gtag/js?id=G-7L81RK6W5F",
},
],
[
"script",
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-7L81RK6W5F');`,
],
],
themeConfig: {
logo: { src: "/logo.png", width: 24, height: 24 },
Expand Down

0 comments on commit a2d880c

Please sign in to comment.