From 85debc882937b6c0ad7d6027854f0fb9c7d94094 Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 8 Mar 2023 09:35:12 +0300 Subject: [PATCH 1/3] Support RTL mode switching from site.config --- lib/site-config.ts | 4 +++- pages/_document.tsx | 3 ++- site.config.ts | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/site-config.ts b/lib/site-config.ts index b8c4fb60a1..2a0ed6e766 100644 --- a/lib/site-config.ts +++ b/lib/site-config.ts @@ -16,12 +16,14 @@ export interface SiteConfig { newsletter?: string youtube?: string zhihu?: string - mastodon?: string; + mastodon?: string defaultPageIcon?: string | null defaultPageCover?: string | null defaultPageCoverPosition?: number | null + RTL: boolean + isPreviewImageSupportEnabled?: boolean isTweetEmbedSupportEnabled?: boolean isRedisEnabled?: boolean diff --git a/pages/_document.tsx b/pages/_document.tsx index 97a7b4ce21..1c3265f109 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -2,6 +2,7 @@ import * as React from 'react' import Document, { Head, Html, Main, NextScript } from 'next/document' import { IconContext } from '@react-icons/all-files' +import siteConfig from 'site.config' export default class MyDocument extends Document { render() { @@ -20,7 +21,7 @@ export default class MyDocument extends Document { - +