| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 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/",
- // ],
- },
- ],
- };
- }
|