chore: add marmaris widget to layout
This commit is contained in:
+10
-9
@@ -1,10 +1,10 @@
|
||||
import type { Metadata } from "next";
|
||||
import Script from "next/script";
|
||||
import { Cormorant_Garamond, Plus_Jakarta_Sans } from "next/font/google";
|
||||
import {NextIntlClientProvider} from 'next-intl';
|
||||
import {getMessages, setRequestLocale} from 'next-intl/server';
|
||||
import {routing} from '@/i18n/routing';
|
||||
import {notFound} from 'next/navigation';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getMessages, setRequestLocale } from 'next-intl/server';
|
||||
import { routing } from '@/i18n/routing';
|
||||
import { notFound } from 'next/navigation';
|
||||
import "../globals.css";
|
||||
|
||||
const cormorant = Cormorant_Garamond({
|
||||
@@ -28,7 +28,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return routing.locales.map((locale) => ({locale}));
|
||||
return routing.locales.map((locale) => ({ locale }));
|
||||
}
|
||||
|
||||
export default async function LocaleLayout({
|
||||
@@ -36,9 +36,9 @@ export default async function LocaleLayout({
|
||||
params
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{locale: string}>;
|
||||
params: Promise<{ locale: string }>;
|
||||
}) {
|
||||
const {locale} = await params;
|
||||
const { locale } = await params;
|
||||
|
||||
if (!routing.locales.includes(locale as any)) {
|
||||
notFound();
|
||||
@@ -56,11 +56,12 @@ export default async function LocaleLayout({
|
||||
|
||||
{/* VPS Panel Analytics */}
|
||||
<Script src="https://panel.ayris.tech/api/analytics/script" data-domain="http://menu.moybeachakyaka.com" strategy="afterInteractive" />
|
||||
|
||||
|
||||
<div
|
||||
data-marmaris-widget="marmaris"
|
||||
data-limit="3"
|
||||
data-lang="tr"
|
||||
data-lang={locale}
|
||||
data-neighborhood=""
|
||||
style={{ display: "none" }}
|
||||
></div>
|
||||
<Script src="https://marmarislocal.com/widget.js" strategy="afterInteractive" />
|
||||
|
||||
Reference in New Issue
Block a user