// Base layout import Layout from "./components/Layout" // Next.js import Link from "next/link"; // React import { useRouter } from 'next/router' // i18n import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n'; const { t } = useTranslation(); const [query] = useLanguageQuery(); // microCMS library import { client } from "../libs/client"; // next-seo import { NextSeo } from 'next-seo'; export default function Home({ blog }) { return ( <>

{t('common:post_list')}

); } // Passing data to template export const getStaticProps = async () => { const data = await client.get({ endpoint: "blog" }); return { props: { blog: data.contents, }, }; };