mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Enable sitemap and use overridable hostname
Also changes GitHub workflow to reflect recent changes
This commit is contained in:
parent
77f8b9c581
commit
73a0604bef
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
VITE_BASE: /kodo/
|
VITE_BASE: /kodo/
|
||||||
|
VITE_HOSTNAME: https://xhenos.github.io
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -34,7 +35,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: "**/package-lock.json"
|
cache-dependency-path: "**/package-lock.json"
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@ import "./icons";
|
|||||||
import generateMeta from "./hooks/generateMeta";
|
import generateMeta from "./hooks/generateMeta";
|
||||||
import generateFeed from "./hooks/generateFeed";
|
import generateFeed from "./hooks/generateFeed";
|
||||||
|
|
||||||
const hostname: string = "https://kodo.moe";
|
|
||||||
|
|
||||||
export default ({ mode }) => {
|
export default ({ mode }) => {
|
||||||
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
||||||
|
|
||||||
|
const hostname: string = process.env.VITE_HOSTNAME || "https://kodo.moe";
|
||||||
|
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
appearance: "dark",
|
appearance: "dark",
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
@ -22,9 +22,9 @@ export default ({ mode }) => {
|
|||||||
lang: "en-US",
|
lang: "en-US",
|
||||||
title: "Tachiyomi",
|
title: "Tachiyomi",
|
||||||
description: "Read your favorite manga, webtoons, comics, and more – easier than ever on your Android.",
|
description: "Read your favorite manga, webtoons, comics, and more – easier than ever on your Android.",
|
||||||
/*sitemap: {
|
sitemap: {
|
||||||
hostname: "https://kodo.moe",
|
hostname: hostname,
|
||||||
},*/
|
},
|
||||||
head,
|
head,
|
||||||
markdown,
|
markdown,
|
||||||
themeConfig: themeConfig,
|
themeConfig: themeConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user