feat(site): Added localization support for custom HTML and keyword fields

This commit is contained in:
web@ppanel
2025-02-22 12:33:09 +07:00
parent 5b64389544
commit f9d7736e48
33 changed files with 147 additions and 17 deletions
+5
View File
@@ -43,6 +43,7 @@ export async function generateMetadata(): Promise<Metadata> {
template: `%s | ${site?.site_name || 'PPanel'}`,
},
description: site?.site_desc || '',
keywords: site?.keywords || '',
icons: {
icon: site?.site_logo
? [
@@ -114,6 +115,10 @@ export default async function RootLayout({
{children}
</Providers>
</NextIntlClientProvider>
<div
id='custom_html'
dangerouslySetInnerHTML={{ __html: config?.site.custom_html || '' }}
/>
</body>
</html>
);