mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-20 23:22:00 +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:
|
||||
VITE_BASE: /kodo/
|
||||
VITE_HOSTNAME: https://xhenos.github.io
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@ -34,7 +35,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: npm
|
||||
cache-dependency-path: "**/package-lock.json"
|
||||
|
||||
|
@ -9,11 +9,11 @@ import "./icons";
|
||||
import generateMeta from "./hooks/generateMeta";
|
||||
import generateFeed from "./hooks/generateFeed";
|
||||
|
||||
const hostname: string = "https://kodo.moe";
|
||||
|
||||
export default ({ mode }) => {
|
||||
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
||||
|
||||
const hostname: string = process.env.VITE_HOSTNAME || "https://kodo.moe";
|
||||
|
||||
return defineConfig({
|
||||
appearance: "dark",
|
||||
lastUpdated: true,
|
||||
@ -22,9 +22,9 @@ export default ({ mode }) => {
|
||||
lang: "en-US",
|
||||
title: "Tachiyomi",
|
||||
description: "Read your favorite manga, webtoons, comics, and more – easier than ever on your Android.",
|
||||
/*sitemap: {
|
||||
hostname: "https://kodo.moe",
|
||||
},*/
|
||||
sitemap: {
|
||||
hostname: hostname,
|
||||
},
|
||||
head,
|
||||
markdown,
|
||||
themeConfig: themeConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user