From 7aca24a28fb30c1e820420d1b33bcc6ad92dac38 Mon Sep 17 00:00:00 2001 From: Chaos Date: Thu, 27 Aug 2026 17:12:10 +0200 Subject: [PATCH 1/2] FEAT: Add Dynamic Page names Adds dynamic page names, specific overwrites and meta data tag configuring. Also changes the project name for NPM files to `Tickets Documentation` --- docs/.vitepress/config.mts | 15 +++++++-------- docs/src/en/index.md | 1 + docs/src/en/team/index.md | 1 + package-lock.json | 3 ++- package.json | 1 + 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 0764679..9c092ab 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,7 +3,8 @@ import { footnote } from "@mdit/plugin-footnote"; // https://vitepress.dev/reference/site-config export default defineConfig({ - title: "Tickets Docs", + title: "Tickets Documentation", + titleTemplate: ":title | Tickets Documentation", description: "Official Documentation of the Tickets Discord Bot", srcDir: "./src", rewrites: { @@ -459,13 +460,6 @@ export default defineConfig({ }, cleanUrls: true, head: [ - [ - "meta", - { - content: "Tickets | Documentation", - property: "og:title", - }, - ], [ "meta", { @@ -508,4 +502,9 @@ export default defineConfig({ allowedHosts: [".tickets.bot"], }, }, + transformHead({ title }) { + return [ + ["meta", { property: "og:title", content: title }], + ]; + }, }); diff --git a/docs/src/en/index.md b/docs/src/en/index.md index 722c894..18e68c6 100644 --- a/docs/src/en/index.md +++ b/docs/src/en/index.md @@ -1,5 +1,6 @@ --- # https://vitepress.dev/reference/default-theme-home-page +title: Home layout: home hero: diff --git a/docs/src/en/team/index.md b/docs/src/en/team/index.md index 7c8814f..7c420b5 100644 --- a/docs/src/en/team/index.md +++ b/docs/src/en/team/index.md @@ -1,5 +1,6 @@ --- layout: page +title: Meet the Team ---