From 085f339a4e054c5b966de7830f829eac3c2c4393 Mon Sep 17 00:00:00 2001 From: John Murray <5672686+JRMurr@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:12:00 -0400 Subject: [PATCH] cleanup --- app/blog/[...slug]/page.tsx | 2 +- app/layout.tsx | 4 ++-- app/seo.tsx | 4 ++-- content/references-data.bib | 33 --------------------------------- content/siteMetadata.ts | 2 +- justfile | 3 +++ 6 files changed, 9 insertions(+), 39 deletions(-) delete mode 100644 content/references-data.bib diff --git a/app/blog/[...slug]/page.tsx b/app/blog/[...slug]/page.tsx index 183fb6e..dcda9df 100644 --- a/app/blog/[...slug]/page.tsx +++ b/app/blog/[...slug]/page.tsx @@ -51,7 +51,7 @@ export async function generateMetadata({ const publishedAt = new Date(post.date).toISOString() const modifiedAt = new Date(post.lastmod || post.date).toISOString() const authorsToshow = authorDetails.map((author) => author.name) - const imageList = [siteMetadata.socialBanner] + const imageList: string[] = [] //[siteMetadata.socialBanner] // @MIGRATE TODO: images? // if (post.images) { // imageList = typeof post.images === 'string' ? [post.images] : post.images diff --git a/app/layout.tsx b/app/layout.tsx index 7e36585..2cca7d8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -32,7 +32,7 @@ export const metadata: Metadata = { description: siteMetadata.description, url: './', siteName: siteMetadata.title, - images: [siteMetadata.socialBanner], + // images: [siteMetadata.socialBanner], locale: 'en_US', type: 'website', }, @@ -56,7 +56,7 @@ export const metadata: Metadata = { twitter: { title: siteMetadata.title, card: 'summary_large_image', - images: [siteMetadata.socialBanner], + // images: [siteMetadata.socialBanner], }, } diff --git a/app/seo.tsx b/app/seo.tsx index fa54ec5..850ebff 100644 --- a/app/seo.tsx +++ b/app/seo.tsx @@ -17,14 +17,14 @@ export function genPageMetadata({ title, description, image, ...rest }: PageSEOP description: description || siteMetadata.description, url: './', siteName: siteMetadata.title, - images: image ? [image] : [siteMetadata.socialBanner], + // images: image ? [image] : [siteMetadata.socialBanner], locale: 'en_US', type: 'website', }, twitter: { title: `${title} | ${siteMetadata.title}`, card: 'summary_large_image', - images: image ? [image] : [siteMetadata.socialBanner], + // images: image ? [image] : [siteMetadata.socialBanner], }, ...rest, } diff --git a/content/references-data.bib b/content/references-data.bib deleted file mode 100644 index 8393fe6..0000000 --- a/content/references-data.bib +++ /dev/null @@ -1,33 +0,0 @@ -@article{Nash1950, - title={Equilibrium points in n-person games}, - author={Nash, John}, - journal={Proceedings of the national academy of sciences}, - volume={36}, - number={1}, - pages={48--49}, - year={1950}, - publisher={USA} -} - -@article{Nash1951, - title={Non-cooperative games}, - author={Nash, John}, - journal={Annals of mathematics}, - pages={286--295}, - year={1951}, - publisher={JSTOR} -} - -@Manual{Macfarlane2006, - url={https://pandoc.org/}, - title={Pandoc: a universal document converter}, - author={MacFarlane, John}, - year={2006} -} - -@book{Xie2016, - title={Bookdown: authoring books and technical documents with R markdown}, - author={Xie, Yihui}, - year={2016}, - publisher={CRC Press} -} \ No newline at end of file diff --git a/content/siteMetadata.ts b/content/siteMetadata.ts index b94a9c2..ccc558c 100644 --- a/content/siteMetadata.ts +++ b/content/siteMetadata.ts @@ -8,7 +8,7 @@ const siteMetadata = { siteUrl: 'https://johns.codes', siteRepo: 'https://github.com/JRMurr/JRMurr.github.io', siteLogo: '/static/images/logo.png', - socialBanner: '/static/images/twitter-card.png', + // socialBanner: '/static/images/twitter-card.png', // TODO: would be cool to have one... mastodon: 'https://hachyderm.io/@jrmurr', email: '', github: 'https://github.com/JRMurr', diff --git a/justfile b/justfile index b4096c4..488d32f 100644 --- a/justfile +++ b/justfile @@ -12,3 +12,6 @@ new: run: npm run dev + +pub-date: + npx tsx -e 'export {}; const now = new Date(); console.log(now.toISOString())' \ No newline at end of file