add canonical urls

This commit is contained in:
Cloudburst 2022-09-01 10:13:02 +02:00
parent a0e92120b5
commit 4b16174cea
3 changed files with 87 additions and 55 deletions

View file

@ -4,12 +4,7 @@ module.exports = {
"gatsby-plugin-postcss", "gatsby-plugin-postcss",
'gatsby-plugin-preact', 'gatsby-plugin-preact',
'gatsby-plugin-sitemap', 'gatsby-plugin-sitemap',
{ { resolve: 'gatsby-plugin-robots-txt', options: { policy: [{userAgent: '*', allow: '/'}] } },
resolve: 'gatsby-plugin-robots-txt',
options: {
policy: [{userAgent: '*', allow: '/'}]
}
},
{ {
resolve: 'gatsby-source-filesystem', resolve: 'gatsby-source-filesystem',
options: { options: {
@ -31,17 +26,9 @@ module.exports = {
] ]
} }
}, },
{ { resolve: 'gatsby-plugin-html-attributes', options: { lang: 'en', 'data-theme': 'dark' } },
resolve: 'gatsby-plugin-html-attributes',
options: {
lang: 'en',
'data-theme': 'dark'
}
},
{ resolve: 'gatsby-plugin-nprogress', options: { color: '#6419E6' } }, { resolve: 'gatsby-plugin-nprogress', options: { color: '#6419E6' } },
{ { resolve: 'gatsby-plugin-manifest', options: require("./manifest") },
resolve: 'gatsby-plugin-manifest', { resolve: 'gatsby-plugin-canonical-urls', options: { siteUrl: require("./metadata").siteUrl } },
options: require("./manifest")
},
] ]
}; };

118
package-lock.json generated
View file

@ -11,6 +11,7 @@
"@noriginmedia/norigin-spatial-navigation": "^1.0.5", "@noriginmedia/norigin-spatial-navigation": "^1.0.5",
"daisyui": "^2.24.0", "daisyui": "^2.24.0",
"gatsby": "^4.21.1", "gatsby": "^4.21.1",
"gatsby-plugin-canonical-urls": "^4.22.0",
"gatsby-plugin-html-attributes": "^1.0.5", "gatsby-plugin-html-attributes": "^1.0.5",
"gatsby-plugin-manifest": "^4.21.0", "gatsby-plugin-manifest": "^4.21.0",
"gatsby-plugin-nprogress": "^4.21.0", "gatsby-plugin-nprogress": "^4.21.0",
@ -19,7 +20,7 @@
"gatsby-plugin-robots-txt": "^1.7.1", "gatsby-plugin-robots-txt": "^1.7.1",
"gatsby-plugin-sitemap": "^5.21.0", "gatsby-plugin-sitemap": "^5.21.0",
"gatsby-remark-prismjs": "^6.21.0", "gatsby-remark-prismjs": "^6.21.0",
"gatsby-source-filesystem": "^4.21.1", "gatsby-source-filesystem": "^4.22.0",
"gatsby-transformer-remark": "^5.21.0", "gatsby-transformer-remark": "^5.21.0",
"postcss": "^8.4.16", "postcss": "^8.4.16",
"preact": "^10.10.6", "preact": "^10.10.6",
@ -5111,13 +5112,13 @@
} }
}, },
"node_modules/babel-plugin-remove-graphql-queries": { "node_modules/babel-plugin-remove-graphql-queries": {
"version": "4.21.0", "version": "4.22.0",
"resolved": "https://registry.npmjs.org/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.21.0.tgz", "resolved": "https://registry.npmjs.org/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.22.0.tgz",
"integrity": "sha512-V6ryNZki9bduIE8qGmujGfvZLaYsPbOylWwhVzWtwtcHoEWu2Cd7f5hN5lMg4efOBKnyVhBlyDYKlStwYGRG9g==", "integrity": "sha512-x452XRHXrcWu+Fdk4cwyPvtrWox76r21PygvmQwRBaixKrDhu3T5ausZ+u4UMUKmDB4Z3Zy5NHizNovrEj0OGQ==",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"@babel/types": "^7.15.4", "@babel/types": "^7.15.4",
"gatsby-core-utils": "^3.21.0" "gatsby-core-utils": "^3.22.0"
}, },
"engines": { "engines": {
"node": ">=14.15.0" "node": ">=14.15.0"
@ -9225,9 +9226,9 @@
} }
}, },
"node_modules/gatsby-core-utils": { "node_modules/gatsby-core-utils": {
"version": "3.21.0", "version": "3.22.0",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-3.21.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-3.22.0.tgz",
"integrity": "sha512-pCDa9EGU8niRJQVv7ow3ijzmG0PegZaBc5Yt6z4enc4m7Dl5ZT6Edkcw9p8q/FhGiZUkzQhWaRDxUvtaoPwAOQ==", "integrity": "sha512-/0FEKdnNCSn/f7dapxmBFxdFCWhteEZcsrwg/jxtXzSWRzs/7mzG8tyPCVUFlCnw3lLPSfej/9KBlGjXTvIIkQ==",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"ci-info": "2.0.0", "ci-info": "2.0.0",
@ -9356,6 +9357,20 @@
"@parcel/core": "^2.0.0" "@parcel/core": "^2.0.0"
} }
}, },
"node_modules/gatsby-plugin-canonical-urls": {
"version": "4.22.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-canonical-urls/-/gatsby-plugin-canonical-urls-4.22.0.tgz",
"integrity": "sha512-gvAs+WZKGCF4HFT6QsPxx+3JhN0foRCa1ABIx6WBZFHufCAZ10Vht2Ez9Zo/LUEOFfDQJbVV30CysQI6saZsLQ==",
"dependencies": {
"@babel/runtime": "^7.15.4"
},
"engines": {
"node": ">=14.15.0"
},
"peerDependencies": {
"gatsby": "^4.0.0-next"
}
},
"node_modules/gatsby-plugin-html-attributes": { "node_modules/gatsby-plugin-html-attributes": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/gatsby-plugin-html-attributes/-/gatsby-plugin-html-attributes-1.0.5.tgz", "resolved": "https://registry.npmjs.org/gatsby-plugin-html-attributes/-/gatsby-plugin-html-attributes-1.0.5.tgz",
@ -9549,16 +9564,16 @@
} }
}, },
"node_modules/gatsby-plugin-utils": { "node_modules/gatsby-plugin-utils": {
"version": "3.15.0", "version": "3.16.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-utils/-/gatsby-plugin-utils-3.15.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-plugin-utils/-/gatsby-plugin-utils-3.16.0.tgz",
"integrity": "sha512-O4dm4ntakCoQZnnnS4oGihtT48Rrh888fMpcxj0zWu/6/8Uyz8IgagJyJAz0MMdcfhrLIE+X8Rszjk8hINDQhA==", "integrity": "sha512-GemN7/f+yxQQuOPeq+Q7hoVY9TTeN3LdL8b8q+a4qBBjHBwp4w+hcYR4j+pPYUFMya9dvOyMZcc3pkfhMGUaRw==",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"@gatsbyjs/potrace": "^2.2.0", "@gatsbyjs/potrace": "^2.3.0",
"fastq": "^1.13.0", "fastq": "^1.13.0",
"fs-extra": "^10.1.0", "fs-extra": "^10.1.0",
"gatsby-core-utils": "^3.21.0", "gatsby-core-utils": "^3.22.0",
"gatsby-sharp": "^0.15.0", "gatsby-sharp": "^0.16.0",
"graphql-compose": "^9.0.7", "graphql-compose": "^9.0.7",
"import-from": "^4.0.0", "import-from": "^4.0.0",
"joi": "^17.4.2", "joi": "^17.4.2",
@ -9574,6 +9589,18 @@
"graphql": "^15.0.0" "graphql": "^15.0.0"
} }
}, },
"node_modules/gatsby-plugin-utils/node_modules/gatsby-sharp": {
"version": "0.16.0",
"resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.16.0.tgz",
"integrity": "sha512-ApkxUe04waBzqyTE1x9OcP/ZzIbFBYxkjsrBoK+Fl2CZrQgBk7433kVVufy7FVW4o69StQmztrwaNEh2t5miTQ==",
"dependencies": {
"@types/sharp": "^0.30.5",
"sharp": "^0.30.7"
},
"engines": {
"node": ">=14.15.0"
}
},
"node_modules/gatsby-plugin-utils/node_modules/mime": { "node_modules/gatsby-plugin-utils/node_modules/mime": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
@ -9636,6 +9663,7 @@
"version": "0.15.0", "version": "0.15.0",
"resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.15.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.15.0.tgz",
"integrity": "sha512-JtW6lLW5GmuQSyZ5l64Cg1qjXhFsMDAf9nzc2RC8srf6hsr2ifI0vTCHh0jImFXQqseaQ3HVlbCKYMbDtXXCIg==", "integrity": "sha512-JtW6lLW5GmuQSyZ5l64Cg1qjXhFsMDAf9nzc2RC8srf6hsr2ifI0vTCHh0jImFXQqseaQ3HVlbCKYMbDtXXCIg==",
"optional": true,
"dependencies": { "dependencies": {
"@types/sharp": "^0.30.5", "@types/sharp": "^0.30.5",
"sharp": "^0.30.7" "sharp": "^0.30.7"
@ -9645,19 +9673,18 @@
} }
}, },
"node_modules/gatsby-source-filesystem": { "node_modules/gatsby-source-filesystem": {
"version": "4.21.1", "version": "4.22.0",
"resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-4.21.1.tgz", "resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-4.22.0.tgz",
"integrity": "sha512-YPbmR9nSq9cXRCdQ8S3uT9sb/IzLB7GloUn9ZT0KJLoCHl/YzmoFMERb5gOdFAoy2clX5L7ARSUV6rIbXBrSlA==", "integrity": "sha512-fcL3M+bQgI8DxD+XfB5XAnMvXp6czfqRZs8J2RStw9p02ekLaR/8R9ZYrn8OoQYLB9y9CHid+pdA78Dy3h73cg==",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"file-type": "^16.5.4", "file-type": "^16.5.4",
"fs-extra": "^10.1.0", "fs-extra": "^10.1.0",
"gatsby-core-utils": "^3.21.0", "gatsby-core-utils": "^3.22.0",
"md5-file": "^5.0.0", "md5-file": "^5.0.0",
"mime": "^2.5.2", "mime": "^2.5.2",
"pretty-bytes": "^5.4.1", "pretty-bytes": "^5.4.1",
"progress": "^2.0.3",
"valid-url": "^1.0.9", "valid-url": "^1.0.9",
"xstate": "4.32.1" "xstate": "4.32.1"
}, },
@ -24430,13 +24457,13 @@
} }
}, },
"babel-plugin-remove-graphql-queries": { "babel-plugin-remove-graphql-queries": {
"version": "4.21.0", "version": "4.22.0",
"resolved": "https://registry.npmjs.org/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.21.0.tgz", "resolved": "https://registry.npmjs.org/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.22.0.tgz",
"integrity": "sha512-V6ryNZki9bduIE8qGmujGfvZLaYsPbOylWwhVzWtwtcHoEWu2Cd7f5hN5lMg4efOBKnyVhBlyDYKlStwYGRG9g==", "integrity": "sha512-x452XRHXrcWu+Fdk4cwyPvtrWox76r21PygvmQwRBaixKrDhu3T5ausZ+u4UMUKmDB4Z3Zy5NHizNovrEj0OGQ==",
"requires": { "requires": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"@babel/types": "^7.15.4", "@babel/types": "^7.15.4",
"gatsby-core-utils": "^3.21.0" "gatsby-core-utils": "^3.22.0"
} }
}, },
"babel-plugin-syntax-trailing-function-commas": { "babel-plugin-syntax-trailing-function-commas": {
@ -27557,9 +27584,9 @@
} }
}, },
"gatsby-core-utils": { "gatsby-core-utils": {
"version": "3.21.0", "version": "3.22.0",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-3.21.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-3.22.0.tgz",
"integrity": "sha512-pCDa9EGU8niRJQVv7ow3ijzmG0PegZaBc5Yt6z4enc4m7Dl5ZT6Edkcw9p8q/FhGiZUkzQhWaRDxUvtaoPwAOQ==", "integrity": "sha512-/0FEKdnNCSn/f7dapxmBFxdFCWhteEZcsrwg/jxtXzSWRzs/7mzG8tyPCVUFlCnw3lLPSfej/9KBlGjXTvIIkQ==",
"requires": { "requires": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"ci-info": "2.0.0", "ci-info": "2.0.0",
@ -27660,6 +27687,14 @@
"@parcel/transformer-react-refresh-wrap": "2.6.2" "@parcel/transformer-react-refresh-wrap": "2.6.2"
} }
}, },
"gatsby-plugin-canonical-urls": {
"version": "4.22.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-canonical-urls/-/gatsby-plugin-canonical-urls-4.22.0.tgz",
"integrity": "sha512-gvAs+WZKGCF4HFT6QsPxx+3JhN0foRCa1ABIx6WBZFHufCAZ10Vht2Ez9Zo/LUEOFfDQJbVV30CysQI6saZsLQ==",
"requires": {
"@babel/runtime": "^7.15.4"
}
},
"gatsby-plugin-html-attributes": { "gatsby-plugin-html-attributes": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/gatsby-plugin-html-attributes/-/gatsby-plugin-html-attributes-1.0.5.tgz", "resolved": "https://registry.npmjs.org/gatsby-plugin-html-attributes/-/gatsby-plugin-html-attributes-1.0.5.tgz",
@ -27787,16 +27822,16 @@
} }
}, },
"gatsby-plugin-utils": { "gatsby-plugin-utils": {
"version": "3.15.0", "version": "3.16.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-utils/-/gatsby-plugin-utils-3.15.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-plugin-utils/-/gatsby-plugin-utils-3.16.0.tgz",
"integrity": "sha512-O4dm4ntakCoQZnnnS4oGihtT48Rrh888fMpcxj0zWu/6/8Uyz8IgagJyJAz0MMdcfhrLIE+X8Rszjk8hINDQhA==", "integrity": "sha512-GemN7/f+yxQQuOPeq+Q7hoVY9TTeN3LdL8b8q+a4qBBjHBwp4w+hcYR4j+pPYUFMya9dvOyMZcc3pkfhMGUaRw==",
"requires": { "requires": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"@gatsbyjs/potrace": "^2.2.0", "@gatsbyjs/potrace": "^2.3.0",
"fastq": "^1.13.0", "fastq": "^1.13.0",
"fs-extra": "^10.1.0", "fs-extra": "^10.1.0",
"gatsby-core-utils": "^3.21.0", "gatsby-core-utils": "^3.22.0",
"gatsby-sharp": "^0.15.0", "gatsby-sharp": "^0.16.0",
"graphql-compose": "^9.0.7", "graphql-compose": "^9.0.7",
"import-from": "^4.0.0", "import-from": "^4.0.0",
"joi": "^17.4.2", "joi": "^17.4.2",
@ -27805,6 +27840,15 @@
"svgo": "^2.8.0" "svgo": "^2.8.0"
}, },
"dependencies": { "dependencies": {
"gatsby-sharp": {
"version": "0.16.0",
"resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.16.0.tgz",
"integrity": "sha512-ApkxUe04waBzqyTE1x9OcP/ZzIbFBYxkjsrBoK+Fl2CZrQgBk7433kVVufy7FVW4o69StQmztrwaNEh2t5miTQ==",
"requires": {
"@types/sharp": "^0.30.5",
"sharp": "^0.30.7"
}
},
"mime": { "mime": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
@ -27841,25 +27885,25 @@
"version": "0.15.0", "version": "0.15.0",
"resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.15.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-sharp/-/gatsby-sharp-0.15.0.tgz",
"integrity": "sha512-JtW6lLW5GmuQSyZ5l64Cg1qjXhFsMDAf9nzc2RC8srf6hsr2ifI0vTCHh0jImFXQqseaQ3HVlbCKYMbDtXXCIg==", "integrity": "sha512-JtW6lLW5GmuQSyZ5l64Cg1qjXhFsMDAf9nzc2RC8srf6hsr2ifI0vTCHh0jImFXQqseaQ3HVlbCKYMbDtXXCIg==",
"optional": true,
"requires": { "requires": {
"@types/sharp": "^0.30.5", "@types/sharp": "^0.30.5",
"sharp": "^0.30.7" "sharp": "^0.30.7"
} }
}, },
"gatsby-source-filesystem": { "gatsby-source-filesystem": {
"version": "4.21.1", "version": "4.22.0",
"resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-4.21.1.tgz", "resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-4.22.0.tgz",
"integrity": "sha512-YPbmR9nSq9cXRCdQ8S3uT9sb/IzLB7GloUn9ZT0KJLoCHl/YzmoFMERb5gOdFAoy2clX5L7ARSUV6rIbXBrSlA==", "integrity": "sha512-fcL3M+bQgI8DxD+XfB5XAnMvXp6czfqRZs8J2RStw9p02ekLaR/8R9ZYrn8OoQYLB9y9CHid+pdA78Dy3h73cg==",
"requires": { "requires": {
"@babel/runtime": "^7.15.4", "@babel/runtime": "^7.15.4",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"file-type": "^16.5.4", "file-type": "^16.5.4",
"fs-extra": "^10.1.0", "fs-extra": "^10.1.0",
"gatsby-core-utils": "^3.21.0", "gatsby-core-utils": "^3.22.0",
"md5-file": "^5.0.0", "md5-file": "^5.0.0",
"mime": "^2.5.2", "mime": "^2.5.2",
"pretty-bytes": "^5.4.1", "pretty-bytes": "^5.4.1",
"progress": "^2.0.3",
"valid-url": "^1.0.9", "valid-url": "^1.0.9",
"xstate": "4.32.1" "xstate": "4.32.1"
} }

View file

@ -18,6 +18,7 @@
"@noriginmedia/norigin-spatial-navigation": "^1.0.5", "@noriginmedia/norigin-spatial-navigation": "^1.0.5",
"daisyui": "^2.24.0", "daisyui": "^2.24.0",
"gatsby": "^4.21.1", "gatsby": "^4.21.1",
"gatsby-plugin-canonical-urls": "^4.22.0",
"gatsby-plugin-html-attributes": "^1.0.5", "gatsby-plugin-html-attributes": "^1.0.5",
"gatsby-plugin-manifest": "^4.21.0", "gatsby-plugin-manifest": "^4.21.0",
"gatsby-plugin-nprogress": "^4.21.0", "gatsby-plugin-nprogress": "^4.21.0",
@ -26,7 +27,7 @@
"gatsby-plugin-robots-txt": "^1.7.1", "gatsby-plugin-robots-txt": "^1.7.1",
"gatsby-plugin-sitemap": "^5.21.0", "gatsby-plugin-sitemap": "^5.21.0",
"gatsby-remark-prismjs": "^6.21.0", "gatsby-remark-prismjs": "^6.21.0",
"gatsby-source-filesystem": "^4.21.1", "gatsby-source-filesystem": "^4.22.0",
"gatsby-transformer-remark": "^5.21.0", "gatsby-transformer-remark": "^5.21.0",
"postcss": "^8.4.16", "postcss": "^8.4.16",
"preact": "^10.10.6", "preact": "^10.10.6",