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

Notion: Add a Page/Post Cover image? #2

Closed
hellostanley opened this issue May 27, 2022 · 2 comments
Closed

Notion: Add a Page/Post Cover image? #2

hellostanley opened this issue May 27, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hellostanley
Copy link

(First thanks for sharing this starter kit)

Struggling to add a cover image to the blog posts, either in the index or [slug].js file.
Where would you call this from in your template? I have tried several methods but found only errors.

Appreciate any help here.

@luciovilla luciovilla self-assigned this Jun 14, 2022
@luciovilla luciovilla added the enhancement New feature or request label Jun 14, 2022
@luciovilla
Copy link
Owner

Hey @hellostanley, thanks for using this template. Happy to come up with a solution. Looks like Notion tables have a "Files & Media" property that I could probably use to check if one exists and use that as the cover image.

Let me try this out and will follow up if its working.

@luciovilla
Copy link
Owner

Hey @hellostanley, I just added support for cover images. You'll see the sample Notion table now has an extra column with Cover Image option where you can either upload an image or add an image URL (both are supported). The image will appear both on the front page river and as the social share image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants