feat: 💄 add theme-color for mobile chrome

This commit is contained in:
Sebin Nyshkim 2021-09-22 20:31:15 +02:00
parent c5e0a72665
commit 7b2382d660

View file

@ -21,8 +21,7 @@ module.exports = {
config.plugin("html").tap((args) => { config.plugin("html").tap((args) => {
const meta = { const meta = {
title: "Sebin Nyshkim - Reference Page", title: "Sebin Nyshkim - Reference Page",
desc: desc: "The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions",
"The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions",
type: "website", type: "website",
url: "https://ref.sebin-nyshkim.net", url: "https://ref.sebin-nyshkim.net",
favicon: "favicon.png", favicon: "favicon.png",
@ -31,6 +30,7 @@ module.exports = {
card: "summary_large_image", card: "summary_large_image",
creator: "@SebinNyshkim", creator: "@SebinNyshkim",
}, },
themeColor: "#e74c3c",
}; };
const links = { const links = {
@ -59,6 +59,7 @@ module.exports = {
"og:url": meta.url, "og:url": meta.url,
"og:image": `${meta.url}/${meta.preview}`, "og:image": `${meta.url}/${meta.preview}`,
"og:description": meta.desc, "og:description": meta.desc,
"theme-color": meta.themeColor,
}; };
return args; return args;