Skip to content

Commit 7552161

Browse files
authored
gtag (#169)
Signed-off-by: JYC0413 <juyichen0413@foxmail.com>
1 parent 27183bc commit 7552161

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docusaurus.config.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ const config = {
3838
}
3939
},
4040

41+
plugins: [
42+
[
43+
'@docusaurus/plugin-google-gtag',
44+
{
45+
trackingID: 'G-Q77VSJHYQB',
46+
},
47+
],
48+
],
49+
4150
presets: [
4251
[
4352
'classic',
@@ -86,9 +95,9 @@ const config = {
8695
({
8796
metadata: [
8897
{ name: 'keywords', content: 'wasmedge, wasm, web assembly, rust, cncf, edge devices, cloud, serverless' },
89-
{ name: 'description', content: 'WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.' },
98+
{ name: 'description', content: 'WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.' },
9099
{ name: 'og:title', content: 'WasmEdge' },
91-
{ name: 'og:description', content: 'WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.' },
100+
{ name: 'og:description', content: 'WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.' },
92101
{ name: 'og:url', content: 'https://wasmedge.org/' },
93102
{ name: 'og:type', content: 'Documentation' },
94103
{ name: 'twitter:card', content: 'summary' },

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@docusaurus/core": "^2.4.0",
33+
"@docusaurus/plugin-google-gtag": "^2.4.1",
3334
"@docusaurus/preset-classic": "^2.4.0",
3435
"@docusaurus/theme-mermaid": "^2.4.1",
3536
"@easyops-cn/docusaurus-search-local": "^0.35.0",

0 commit comments

Comments
 (0)