add goatcounter

master
gman 1 year ago
parent 2fe1c63f18
commit e4192f3d4f

@ -9,23 +9,36 @@ export default defineConfig({
redirects: { redirects: {
'/': '/chapters', '/': '/chapters',
}, },
integrations: [starlight({ integrations: [
title: 'Веб-картография', starlight({
description: 'Веб-картография и веб-картографирование: практическое пособие', title: 'Веб-картография',
locales: { description: 'Веб-картография и веб-картографирование: практическое пособие',
root: { head: [
label: 'Русский', {
lang: 'ru', tag: 'script',
attrs: {
src: "//gc.zgo.at/count.js",
'data-goatcounter': "https://webkartography.goatcounter.com/count",
async: true
}
}
],
locales: {
root: {
label: 'Русский',
lang: 'ru',
}
},
sidebar: [
{
label: 'Введение в веб-картографию',
autogenerate: { directory: 'chapters' },
}
],
components: {
SocialIcons: './src/components/CustomSocialIcons.astro',
} }
}, }),
sidebar: [ react()
{ ],
label: 'Введение в веб-картографию',
autogenerate: { directory: 'chapters' },
}
],
components: {
SocialIcons: './src/components/CustomSocialIcons.astro',
}
}), react()],
}); });
Loading…
Cancel
Save