diff --git a/.vitepress/config.mts b/.vitepress/config.mts index b79ed2c3e..d08a06d35 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -2,13 +2,13 @@ import { defineConfig } from "vitepress"; import { withPwa } from "@vite-pwa/vitepress"; import UnoCSS from "unocss/vite"; import { presetUno, presetAttributify, presetIcons } from "unocss"; -import { info } from "./constants"; +import { meta } from "./constants"; import { pwa } from "./pwa"; export default withPwa( defineConfig({ title: "FMHY", - description: info.description, + description: meta.description, titleTemplate: ":title | FreeMediaHeckYeah", lang: "en-US", lastUpdated: true, @@ -17,28 +17,28 @@ export default withPwa( srcExclude: ["README.md", "single-page", "DEVTools.md"], ignoreDeadLinks: true, sitemap: { - hostname: info.hostname, + hostname: meta.hostname, }, head: [ ["meta", { name: "theme-color", content: "#7bc5e4" }], ["meta", { name: "og:type", content: "website" }], ["meta", { name: "og:locale", content: "en" }], ["meta", { property: "og:type", content: "website" }], - ["meta", { property: "og:title", content: info.name }], + ["meta", { property: "og:title", content: meta.name }], // ["meta", { property: "og:image", content: ogImage }], - ["meta", { property: "og:description", content: info.description }], + ["meta", { property: "og:description", content: meta.description }], // ["meta", { property: "og:url", content: ogUrl }], ["link", { rel: "icon", href: "/favicon.ico", sizes: "any" }], ["link", { rel: "icon", href: "/logo.svg", type: "image/svg+xml" }], ["link", { rel: "apple-touch-icon", href: "/apple-touch-icon.png" }], ["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" }], ["meta", { name: "author", content: "Joaquín Sánchez" }], - ["meta", { name: "keywords", content: info.keywords.join(" ") }], - ["meta", { name: "twitter:description", content: info.description }], - ["meta", { name: "twitter:title", content: info.name }], + ["meta", { name: "keywords", content: meta.keywords.join(" ") }], + ["meta", { name: "twitter:description", content: meta.description }], + ["meta", { name: "twitter:title", content: meta.name }], ["meta", { name: "twitter:card", content: "summary_large_image" }], // ["meta", { name: "twitter:image", content: ogImage }], - ["meta", { name: "twitter:site", content: info.hostname }], + ["meta", { name: "twitter:site", content: meta.hostname }], // ["meta", { name: "twitter:url", content: ogUrl }], ], vite: { diff --git a/.vitepress/pwa.ts b/.vitepress/pwa.ts index d2abc277c..6d20865a3 100644 --- a/.vitepress/pwa.ts +++ b/.vitepress/pwa.ts @@ -1,5 +1,5 @@ import type { PwaOptions } from "@vite-pwa/vitepress"; -import { info } from "./constants"; +import { meta } from "./constants"; export const pwa = { outDir: ".vitepress/dist", @@ -7,9 +7,9 @@ export const pwa = { includeManifestIcons: false, manifest: { id: "/", - name: info.name, - short_name: info.name, - description: info.description, + name: meta.name, + short_name: meta.name, + description: meta.description, theme_color: "#ffffff", start_url: "/", lang: "en-US", @@ -17,7 +17,7 @@ export const pwa = { orientation: "natural", display: "standalone", display_override: ["window-controls-overlay"], - categories: info.keywords, + categories: meta.keywords, icons: [ { src: "pwa-64x64.png",