From 1590d3fe272ff876f02edf2a05f7977487e7b900 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Wed, 4 Sep 2024 09:11:38 +0200 Subject: [PATCH] Enable some theme features --- content/.vitepress/config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/content/.vitepress/config.js b/content/.vitepress/config.js index d495e91..7634ecd 100644 --- a/content/.vitepress/config.js +++ b/content/.vitepress/config.js @@ -4,6 +4,7 @@ import footnote from 'markdown-it-footnote'; export default defineConfig({ title: 'HPG Romein', + description: ' ', lang: 'nl', assetsDir: 'immutable', @@ -43,6 +44,19 @@ export default defineConfig({ darkModeSwitchTitle: 'Licht thema', returnToTopLabel: 'Terug naar boven', + editLink: { + pattern: 'https://code.smartyellow.net/romein/hpg/src/branch/main/content/:path', + text: 'Deze pagina is open source!', + }, + + lastUpdated: { + text: 'Laatste aanpassing', + formatOptions: { + dateStyle: 'long', + timeStyle: 'short', + }, + }, + docFooter: { prev: 'Vorige', next: 'Volgende', @@ -55,6 +69,15 @@ export default defineConfig({ copyright: `© 2022-${new Date().getFullYear()} Romein van Buren.`, }, + head: [ + [ 'script', { + async: '', + defer: '', + src: 'https://static.cloudflareinsights.com/beacon.min.js', + 'data-cf-beacon': '{"token": "e1c160a4aa1641b1b8a387ad6438647b"}', + } ], + ], + markdown: { config: md => { md.use(footnote);