Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMurr committed Apr 3, 2024
1 parent 8ea93e4 commit 085f339
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 39 deletions.
2 changes: 1 addition & 1 deletion app/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand All @@ -56,7 +56,7 @@ export const metadata: Metadata = {
twitter: {
title: siteMetadata.title,
card: 'summary_large_image',
images: [siteMetadata.socialBanner],
// images: [siteMetadata.socialBanner],
},
}

Expand Down
4 changes: 2 additions & 2 deletions app/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
33 changes: 0 additions & 33 deletions content/references-data.bib

This file was deleted.

2 changes: 1 addition & 1 deletion content/siteMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ new:

run:
npm run dev

pub-date:
npx tsx -e 'export {}; const now = new Date(); console.log(now.toISOString())'

0 comments on commit 085f339

Please sign in to comment.