mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 17:26:37 -04:00
move <Layout>
to _app.tsx so it's not rerendered
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
import { graphql } from "@octokit/graphql";
|
||||
import Layout from "../components/Layout";
|
||||
import { NextSeo } from "next-seo";
|
||||
import PageTitle from "../components/page/PageTitle";
|
||||
import RepoCard from "../components/projects/RepoCard";
|
||||
import { ProjectsIcon } from "../components/icons";
|
||||
import type { GetStaticProps } from "next";
|
||||
|
||||
const Projects = ({ repos }) => (
|
||||
<Layout title="Projects">
|
||||
<>
|
||||
<NextSeo
|
||||
title="Projects"
|
||||
openGraph={{
|
||||
title: "Projects",
|
||||
}}
|
||||
/>
|
||||
|
||||
<PageTitle
|
||||
title={
|
||||
<>
|
||||
@ -43,6 +50,7 @@ const Projects = ({ repos }) => (
|
||||
<a href="https://github.com/jakejarvis?tab=repositories" target="_blank" rel="noopener noreferrer">
|
||||
View more on GitHub...
|
||||
</a>
|
||||
|
||||
<style jsx>{`
|
||||
p {
|
||||
text-align: center;
|
||||
@ -50,7 +58,7 @@ const Projects = ({ repos }) => (
|
||||
}
|
||||
`}</style>
|
||||
</p>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
|
||||
export const getStaticProps: GetStaticProps = async () => {
|
||||
|
Reference in New Issue
Block a user