diff --git a/config/_default/config.yaml b/config/_default/config.yaml
index 05e1f1e..6940163 100644
--- a/config/_default/config.yaml
+++ b/config/_default/config.yaml
@@ -9,10 +9,6 @@ enableRobotsTXT: true
paginate: 10
summaryLength: 0
-services:
- googleAnalytics:
- ID: G-D3VB7YFCTH
-
outputs:
home:
- HTML
diff --git a/config/_default/module.yaml b/config/_default/module.yaml
index 6b83f16..6c5d164 100644
--- a/config/_default/module.yaml
+++ b/config/_default/module.yaml
@@ -1,3 +1,14 @@
imports:
- path: github.com/jpanther/congo/v2
- path: github.com/remvn/hugo-vmoji
+
+mounts:
+ - source: assets
+ target: assets
+ - source: node_modules/@builder.io/partytown/lib/partytown.js
+ target: assets/js/partytown.js
+ - source: static
+ target: static
+ - source: node_modules/@builder.io/partytown/lib
+ target: static/~partytown
+ excludeFiles: debug
diff --git a/config/_default/params.yaml b/config/_default/params.yaml
index e4b0cef..90255ba 100644
--- a/config/_default/params.yaml
+++ b/config/_default/params.yaml
@@ -15,6 +15,8 @@ enableImageLazyLoading: true
enableImageWebp: true
fingerprintAlgorithm: sha256
+gtmID: "G-D3VB7YFCTH"
+
images:
- images/gopher-feature.jpg
- images/avatar-cover.jpg
diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html
new file mode 100644
index 0000000..69da13f
--- /dev/null
+++ b/layouts/partials/analytics.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
diff --git a/package-lock.json b/package-lock.json
index eb478ed..9338906 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,56 +1,69 @@
{
- "name": "hugo-vmoji",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "hugo-vmoji",
- "version": "1.0.0",
- "license": "ISC",
- "devDependencies": {
- "prettier": "^3.3.3",
- "prettier-plugin-go-template": "^0.0.15"
- }
- },
- "node_modules/prettier": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
- "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
- "dev": true,
- "bin": {
- "prettier": "bin/prettier.cjs"
- },
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/prettier/prettier?sponsor=1"
- }
- },
- "node_modules/prettier-plugin-go-template": {
- "version": "0.0.15",
- "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.15.tgz",
- "integrity": "sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==",
- "dev": true,
- "dependencies": {
- "ulid": "^2.3.0"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "peerDependencies": {
- "prettier": "^3.0.0"
- }
- },
- "node_modules/ulid": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz",
- "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==",
- "dev": true,
- "bin": {
- "ulid": "bin/cli.js"
- }
- }
+ "name": "hugo-blog",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "hugo-blog",
+ "version": "1.0.0",
+ "license": "ISC",
+ "devDependencies": {
+ "@builder.io/partytown": "^0.10.2",
+ "prettier": "^3.3.3",
+ "prettier-plugin-go-template": "^0.0.15"
+ }
+ },
+ "node_modules/@builder.io/partytown": {
+ "version": "0.10.2",
+ "resolved": "https://registry.npmjs.org/@builder.io/partytown/-/partytown-0.10.2.tgz",
+ "integrity": "sha512-A9U+4PREWcS+CCYzKGIPovtGB/PBgnH/8oQyCE6Nr9drDJk6cMPpLQIEajpGPmG9tYF7N3FkRvhXm/AS9+0iKg==",
+ "dev": true,
+ "bin": {
+ "partytown": "bin/partytown.cjs"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
+ "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
+ "dev": true,
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/prettier-plugin-go-template": {
+ "version": "0.0.15",
+ "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.15.tgz",
+ "integrity": "sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==",
+ "dev": true,
+ "dependencies": {
+ "ulid": "^2.3.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "prettier": "^3.0.0"
+ }
+ },
+ "node_modules/ulid": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz",
+ "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==",
+ "dev": true,
+ "bin": {
+ "ulid": "bin/cli.js"
+ }
}
+ }
}
diff --git a/package.hugo.json b/package.hugo.json
new file mode 100644
index 0000000..bfccd64
--- /dev/null
+++ b/package.hugo.json
@@ -0,0 +1,10 @@
+{
+ "name": "hugo-blog",
+ "version": "1.0.0",
+ "license": "ISC",
+ "devDependencies": {
+ "@builder.io/partytown": "^0.10.2",
+ "prettier": "^3.3.3",
+ "prettier-plugin-go-template": "^0.0.15"
+ }
+}
diff --git a/package.json b/package.json
index 3641899..3a242cf 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,19 @@
{
- "name": "blog",
- "version": "1.0.0",
- "license": "ISC",
+ "comments": {
+ "dependencies": {},
"devDependencies": {
- "prettier": "^3.3.3",
- "prettier-plugin-go-template": "^0.0.15"
+ "@builder.io/partytown": "project",
+ "prettier": "project",
+ "prettier-plugin-go-template": "project"
}
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "@builder.io/partytown": "^0.10.2",
+ "prettier": "^3.3.3",
+ "prettier-plugin-go-template": "^0.0.15"
+ },
+ "license": "ISC",
+ "name": "hugo-blog",
+ "version": "1.0.0"
}