mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-04 10:55:33 -04:00
fix very, very bad SEO bug
This commit is contained in:
+12
-6
@@ -92,12 +92,11 @@ module.exports = (phase, { defaultConfig }) => {
|
|||||||
{ source: "/apple-touch-icon-precomposed.png", destination: "/static/favicons/apple-touch-icon.png" },
|
{ source: "/apple-touch-icon-precomposed.png", destination: "/static/favicons/apple-touch-icon.png" },
|
||||||
],
|
],
|
||||||
redirects: async () => [
|
redirects: async () => [
|
||||||
{ source: "/notes/:slug/amp.html", destination: "/notes/:slug/", statusCode: 301 },
|
// NOTE: don't remove this, it ensures de-AMPing the site hasn't offended our google overlords too badly!
|
||||||
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
// https://developers.google.com/search/docs/advanced/experience/remove-amp#remove-only-amp
|
||||||
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: true },
|
{ source: "/:slug/amp.html", destination: "/:slug/", statusCode: 301 },
|
||||||
{ source: "/stats/", destination: "https://app.usefathom.com/share/wbgnqukw/jarv.is", permanent: false },
|
|
||||||
{ source: "/scrabble/:path*", destination: "https://jakejarvis.github.io/scrabble/:path*", permanent: false },
|
// remnants of previous sites/CMSes:
|
||||||
{ source: "/jarvis.asc", destination: "/pubkey.asc", permanent: true },
|
|
||||||
{ source: "/index.xml", destination: "/feed.xml", permanent: true },
|
{ source: "/index.xml", destination: "/feed.xml", permanent: true },
|
||||||
{ source: "/feed/", destination: "/feed.xml", permanent: true },
|
{ source: "/feed/", destination: "/feed.xml", permanent: true },
|
||||||
{ source: "/rss/", destination: "/feed.xml", permanent: true },
|
{ source: "/rss/", destination: "/feed.xml", permanent: true },
|
||||||
@@ -118,6 +117,13 @@ module.exports = (phase, { defaultConfig }) => {
|
|||||||
destination: "/notes/cool-bash-tricks-for-your-terminal-dotfiles/",
|
destination: "/notes/cool-bash-tricks-for-your-terminal-dotfiles/",
|
||||||
permanent: true,
|
permanent: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// misc. crap:
|
||||||
|
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
||||||
|
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
||||||
|
{ source: "/stats/", destination: "https://app.usefathom.com/share/wbgnqukw/jarv.is", permanent: false },
|
||||||
|
{ source: "/jarvis.asc", destination: "/pubkey.asc", permanent: true },
|
||||||
|
{ source: "/scrabble/:path*", destination: "https://jakejarvis.github.io/scrabble/:path*", permanent: false },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "How To: Fork a GitHub Repository & Submit a Pull Request"
|
title: "How To: Fork a GitHub Repository & Submit a Pull Request"
|
||||||
date: 2019-04-09 02:17:03-0400
|
date: 2019-04-09 02:17:03-0400
|
||||||
description: "Walkthrough of forking a GitHub repository, cloning it, commiting your changes to a new branch, and pushing it back upstream."
|
description: "Walkthrough of forking a GitHub repository, cloning it, committing your changes to a new branch, and pushing it back upstream."
|
||||||
tags:
|
tags:
|
||||||
- How To
|
- How To
|
||||||
- Tutorial
|
- Tutorial
|
||||||
|
|||||||
+2
-2
@@ -70,8 +70,6 @@ const App = ({ Component, pageProps }: AppProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ThemeProvider>{getLayout(<Component {...pageProps} />)}</ThemeProvider>
|
|
||||||
|
|
||||||
{/* static asset preloads */}
|
{/* static asset preloads */}
|
||||||
<Head>
|
<Head>
|
||||||
{/* TODO: these hrefs will change at some point (and possibly unpredictably). find a better way... */}
|
{/* TODO: these hrefs will change at some point (and possibly unpredictably). find a better way... */}
|
||||||
@@ -104,6 +102,8 @@ const App = ({ Component, pageProps }: AppProps) => {
|
|||||||
dangerouslySetAllPagesToNoFollow={process.env.NEXT_PUBLIC_VERCEL_ENV !== "production"}
|
dangerouslySetAllPagesToNoFollow={process.env.NEXT_PUBLIC_VERCEL_ENV !== "production"}
|
||||||
/>
|
/>
|
||||||
<SocialProfileJsonLd {...socialProfileJsonLd} />
|
<SocialProfileJsonLd {...socialProfileJsonLd} />
|
||||||
|
|
||||||
|
<ThemeProvider>{getLayout(<Component {...pageProps} />)}</ThemeProvider>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user