mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-23 08:04:28 -04:00
move <Layout>
to _app.tsx so it's not rerendered
This commit is contained in:
@@ -1,13 +1,21 @@
|
||||
import { NextSeo } from "next-seo";
|
||||
import { format } from "date-fns";
|
||||
import Layout from "../../components/Layout";
|
||||
import List from "../../components/notes/List";
|
||||
import { getAllNotes } from "../../lib/parse-notes";
|
||||
import type { GetStaticProps } from "next";
|
||||
|
||||
const Notes = ({ notesByYear }) => (
|
||||
<Layout title="Notes" description="Recent posts by Jake Jarvis.">
|
||||
<>
|
||||
<NextSeo
|
||||
title="Notes"
|
||||
description="Recent posts by Jake Jarvis."
|
||||
openGraph={{
|
||||
title: "Notes",
|
||||
}}
|
||||
/>
|
||||
|
||||
<List notesByYear={notesByYear} />
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
|
||||
export const getStaticProps: GetStaticProps = async () => {
|
||||
|
Reference in New Issue
Block a user