diff --git a/src/components/main/MainLayout.tsx b/src/components/main/MainLayout.tsx index 7b8ff79c..476363fb 100644 --- a/src/components/main/MainLayout.tsx +++ b/src/components/main/MainLayout.tsx @@ -83,7 +83,7 @@ export function MainLayout({ ©{" "} diff --git a/src/models/page.model.ts b/src/models/page.model.ts index 87c41716..467b486e 100644 --- a/src/models/page.model.ts +++ b/src/models/page.model.ts @@ -539,6 +539,7 @@ export async function commentPage( content, external_urls: [externalUrl], tags: ["comment"], + sources: ["xlog"], }, pageId.split("-")[0], pageId.split("-")[1], diff --git a/src/pages/dashboard/[subdomain]/editor.tsx b/src/pages/dashboard/[subdomain]/editor.tsx index 7b1253f8..5154d93d 100644 --- a/src/pages/dashboard/[subdomain]/editor.tsx +++ b/src/pages/dashboard/[subdomain]/editor.tsx @@ -24,6 +24,7 @@ import { nanoid } from "nanoid" import { useQueryClient } from "@tanstack/react-query" import { PageContent } from "~/components/common/PageContent" import pinyin from "pinyin" +import { GITHUB_LINK } from "~/lib/env" const getInputDatetimeValue = (date: Date | string) => { const str = dayjs(date).format() @@ -235,7 +236,7 @@ export default function SubdomainEditor() { Tip: xLog Flavored Markdown diff --git a/src/pages/dashboard/[subdomain]/index.tsx b/src/pages/dashboard/[subdomain]/index.tsx index 95cfe461..855ce212 100644 --- a/src/pages/dashboard/[subdomain]/index.tsx +++ b/src/pages/dashboard/[subdomain]/index.tsx @@ -3,6 +3,8 @@ import { DashboardLayout } from "~/components/dashboard/DashboardLayout" import { DashboardMain } from "~/components/dashboard/DashboardMain" import { UniLink } from "~/components/ui/UniLink" import Image from "next/image" +import { DISCORD_LINK, TWITTER_LINK, GITHUB_LINK, APP_NAME } from "~/lib/env" +import { getSiteLink } from "~/lib/helpers" export default function SubdomainIndex() { const router = useRouter() @@ -19,7 +21,7 @@ export default function SubdomainIndex() { This page is quite empty for now, but we will polish it very soon! Maybe some useful analytics!

-

Here{`'`}re some useful links:

+

Here{`'`}re some useful links to get started:

+

+ You are not alone, join the community to meet friends or give xLog + some advice: +

+ diff --git a/src/pages/index.tsx b/src/pages/index.tsx index c87bfcb0..a713b9d9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -227,7 +227,7 @@ export default function Home({ region }: { region: string | null }) {
  • Submit yours