fix config
This commit is contained in:
parent
329f07d30c
commit
7d186e1a45
@ -2,13 +2,13 @@ import { defineConfig } from "vitepress";
|
|||||||
import { withPwa } from "@vite-pwa/vitepress";
|
import { withPwa } from "@vite-pwa/vitepress";
|
||||||
import UnoCSS from "unocss/vite";
|
import UnoCSS from "unocss/vite";
|
||||||
import { presetUno, presetAttributify, presetIcons } from "unocss";
|
import { presetUno, presetAttributify, presetIcons } from "unocss";
|
||||||
import { info } from "./constants";
|
import { meta } from "./constants";
|
||||||
import { pwa } from "./pwa";
|
import { pwa } from "./pwa";
|
||||||
|
|
||||||
export default withPwa(
|
export default withPwa(
|
||||||
defineConfig({
|
defineConfig({
|
||||||
title: "FMHY",
|
title: "FMHY",
|
||||||
description: info.description,
|
description: meta.description,
|
||||||
titleTemplate: ":title | FreeMediaHeckYeah",
|
titleTemplate: ":title | FreeMediaHeckYeah",
|
||||||
lang: "en-US",
|
lang: "en-US",
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
@ -17,28 +17,28 @@ export default withPwa(
|
|||||||
srcExclude: ["README.md", "single-page", "DEVTools.md"],
|
srcExclude: ["README.md", "single-page", "DEVTools.md"],
|
||||||
ignoreDeadLinks: true,
|
ignoreDeadLinks: true,
|
||||||
sitemap: {
|
sitemap: {
|
||||||
hostname: info.hostname,
|
hostname: meta.hostname,
|
||||||
},
|
},
|
||||||
head: [
|
head: [
|
||||||
["meta", { name: "theme-color", content: "#7bc5e4" }],
|
["meta", { name: "theme-color", content: "#7bc5e4" }],
|
||||||
["meta", { name: "og:type", content: "website" }],
|
["meta", { name: "og:type", content: "website" }],
|
||||||
["meta", { name: "og:locale", content: "en" }],
|
["meta", { name: "og:locale", content: "en" }],
|
||||||
["meta", { property: "og:type", content: "website" }],
|
["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:image", content: ogImage }],
|
||||||
["meta", { property: "og:description", content: info.description }],
|
["meta", { property: "og:description", content: meta.description }],
|
||||||
// ["meta", { property: "og:url", content: ogUrl }],
|
// ["meta", { property: "og:url", content: ogUrl }],
|
||||||
["link", { rel: "icon", href: "/favicon.ico", sizes: "any" }],
|
["link", { rel: "icon", href: "/favicon.ico", sizes: "any" }],
|
||||||
["link", { rel: "icon", href: "/logo.svg", type: "image/svg+xml" }],
|
["link", { rel: "icon", href: "/logo.svg", type: "image/svg+xml" }],
|
||||||
["link", { rel: "apple-touch-icon", href: "/apple-touch-icon.png" }],
|
["link", { rel: "apple-touch-icon", href: "/apple-touch-icon.png" }],
|
||||||
["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" }],
|
["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" }],
|
||||||
["meta", { name: "author", content: "Joaquín Sánchez" }],
|
["meta", { name: "author", content: "Joaquín Sánchez" }],
|
||||||
["meta", { name: "keywords", content: info.keywords.join(" ") }],
|
["meta", { name: "keywords", content: meta.keywords.join(" ") }],
|
||||||
["meta", { name: "twitter:description", content: info.description }],
|
["meta", { name: "twitter:description", content: meta.description }],
|
||||||
["meta", { name: "twitter:title", content: info.name }],
|
["meta", { name: "twitter:title", content: meta.name }],
|
||||||
["meta", { name: "twitter:card", content: "summary_large_image" }],
|
["meta", { name: "twitter:card", content: "summary_large_image" }],
|
||||||
// ["meta", { name: "twitter:image", content: ogImage }],
|
// ["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 }],
|
// ["meta", { name: "twitter:url", content: ogUrl }],
|
||||||
],
|
],
|
||||||
vite: {
|
vite: {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { PwaOptions } from "@vite-pwa/vitepress";
|
import type { PwaOptions } from "@vite-pwa/vitepress";
|
||||||
import { info } from "./constants";
|
import { meta } from "./constants";
|
||||||
|
|
||||||
export const pwa = {
|
export const pwa = {
|
||||||
outDir: ".vitepress/dist",
|
outDir: ".vitepress/dist",
|
||||||
@ -7,9 +7,9 @@ export const pwa = {
|
|||||||
includeManifestIcons: false,
|
includeManifestIcons: false,
|
||||||
manifest: {
|
manifest: {
|
||||||
id: "/",
|
id: "/",
|
||||||
name: info.name,
|
name: meta.name,
|
||||||
short_name: info.name,
|
short_name: meta.name,
|
||||||
description: info.description,
|
description: meta.description,
|
||||||
theme_color: "#ffffff",
|
theme_color: "#ffffff",
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
lang: "en-US",
|
lang: "en-US",
|
||||||
@ -17,7 +17,7 @@ export const pwa = {
|
|||||||
orientation: "natural",
|
orientation: "natural",
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
display_override: ["window-controls-overlay"],
|
display_override: ["window-controls-overlay"],
|
||||||
categories: info.keywords,
|
categories: meta.keywords,
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: "pwa-64x64.png",
|
src: "pwa-64x64.png",
|
||||||
|
Loading…
Reference in New Issue
Block a user