import { isServer } from "./config"; export interface SiteConfig { host: string; title: string; siteName: string; keywords: string; touchIcon: string; description: string; jsonLd: Docs[]; } export default function getSiteConfig(siteHost?: string) { const host = siteHost || (!isServer && window.location.host) || "noveldit.com"; const siteName = "NovelDit"; const title = `${siteName} - Read Novel Online for Free!`; const description = `${siteName} - Online Reading stories, fiction books, light novel for Free!`; const url = `https://${host}`; return { host, siteName, title, description, keywords: "Novel updates, Free books online, Light Novel, Read light novel, Light novel translations, Free Novels Online", touchIcon: `https://${host}/apple-touch-icon.png`, jsonLd: [ { "@type": "WebSite", "@id": url, url: url, name: siteName.toUpperCase(), description, inLanguage: "en", publisher: { "@id": url, }, // potentialAction: { // "@type": "SearchAction", // target: { // "@type": "EntryPoint", // urlTemplate: `https://www.webnovel.com/search?keywords={search_term_string}`, // }, // "query-input": `required name=search_term_string`, // }, }, { "@type": "Organization", "@id": url, name: title, url, logo: `https://${host}/favicon-32x32.png`, // sameAs: [ // "https://www.facebook.com/webnovel", // "https://www.youtube.com/channel/UC8WTtfs6ihFMJn-JgmYxVlQ", // "https://www.instagram.com/webnovelofficial/", // "https://twitter.com/webnovel", // "https://vm.tiktok.com/p6b6Vh/", // ], }, ], }; }