-
-
Notifications
You must be signed in to change notification settings - Fork 49
Cover photo for post #78
Comments
Hi everyone! Bumping this up :) |
Hi there! This isn't something specific to this starter, I suggest asking this in the Gridsome repo or on their Discord channel. Might have to do with either core Gridsome or the markdown source plugin. |
@ItsJamesMurray A heavy-handed work around for this is to place your cover images under the *for now, until it's fixed properly |
Here's a workaround I came across in case anyone else is still having this issue. I got it to work with the following Gridsome plugin: Detailed Instructions1.) Add ogImageUrl() {
let coverObj = this.$page.post.cover
if (coverObj) {
return `${this.config.siteUrl + coverObj.src}`
} else {
return `${this.config.siteUrl}/static/images/sharing-card.png`
}
} 5.) Run |
Hiya!
How am I able to reference a local image for the cover photo in the frontmatter rather than an externally hosted image?
For example, I have my post in
content/posts/example-post.md
. I have a photo I'd like to set as the cover photo incontent/posts/img/header.jpg
. Setting the frontmatter ascover: './img/header.jpg'
does not work even though it will work if I reference it like that in the markdown post itself.Thanks in advance!
The text was updated successfully, but these errors were encountered: