Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social card improvements #143

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
36fe267
add boilerplate
andersy005 Mar 7, 2023
943f932
remove unnecessary webpack configuration
andersy005 Mar 7, 2023
47ae0bc
First stab at using @vercel/og to generate og images
andersy005 Mar 8, 2023
f3f58eb
add wrapAuthors parameter
andersy005 Mar 9, 2023
909dbd7
adjust css styles
andersy005 Mar 21, 2023
a491ffd
Merge branch 'main' of https://github.com/carbonplan/blog into use-ve…
Shane98c Dec 12, 2024
b501538
bump vercel/og
Shane98c Dec 13, 2024
063b9f4
add fonts, adjust layout
Shane98c Dec 13, 2024
3c2ee03
font hack
Shane98c Dec 13, 2024
343d9da
internally decide to wrap authors
Shane98c Dec 18, 2024
a21414c
next 13.5.8
Shane98c Jan 6, 2025
7c0aaca
generate post metadata at build, use in og image generation
Shane98c Jan 7, 2025
fd338c8
next 14
Shane98c Jan 7, 2025
0d09732
point to static metadata
Shane98c Jan 7, 2025
3c1eaf7
bump node version for builds
Shane98c Jan 7, 2025
c28f784
try hard coded referrer
Shane98c Jan 7, 2025
6629881
trailing slash
Shane98c Jan 7, 2025
5de9674
Merge branch 'main' of https://github.com/carbonplan/blog into use-ve…
Shane98c Jan 7, 2025
36b15b1
cleaner font fetch
Shane98c Jan 7, 2025
003674b
rm now unused vercel/og dep
Shane98c Jan 7, 2025
6f0d113
Update utils/generate-metadata.js
Shane98c Jan 7, 2025
71d8f9a
pass id to Post layout
Shane98c Jan 7, 2025
e360f6f
rm build-cards
Shane98c Jan 7, 2025
a2dddd2
use layouts for card generation
Shane98c Jan 9, 2025
0bd3eb7
pass through forceWrapAuthors bool
Shane98c Jan 9, 2025
b9c275a
gitignore metadata
Shane98c Jan 9, 2025
9e66bb0
update to follow layouts refactor for card/font
Shane98c Jan 9, 2025
98c3166
bump layouts
Shane98c Jan 9, 2025
f7badbe
pass through post number and get author collapse bool from post directly
Shane98c Jan 10, 2025
85b9a4f
collapse card authors for two posts
Shane98c Jan 10, 2025
4a9de79
update gitignore
Shane98c Jan 10, 2025
9c7cca7
remove cards
Shane98c Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.vscode
node_modules
.env*.local
cards
cards
utils/post-metadata.js
33 changes: 0 additions & 33 deletions build-cards.js

This file was deleted.

2 changes: 1 addition & 1 deletion build-components.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs')
const glob = require('glob')
const { postMetadata } = require('./utils/mdx.js')
const { postMetadata } = require('./utils/post-metadata.js')

glob.sync('./components/mdx/page-components.js').forEach((f) => {
if (fs.rmSync) return fs.rmSync(f)
Expand Down
8 changes: 0 additions & 8 deletions constants.js

This file was deleted.

20 changes: 0 additions & 20 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const path = require('path')

const isDev =
process.env.VERCEL_ENV === 'preview' || process.env.NODE_ENV === 'development'

Expand All @@ -18,22 +16,4 @@ module.exports = withMDX({
experimental: {
scrollRestoration: true,
},
webpack: (config, options) => {
if (options.isServer) {
config.externals = ['react', 'theme-ui', ...config.externals]
}
config.resolve.alias['react'] = path.resolve(
__dirname,
'.',
'node_modules',
'react'
)
config.resolve.alias['theme-ui'] = path.resolve(
__dirname,
'.',
'node_modules',
'theme-ui'
)
return config
},
})
Loading
Loading