-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Description
Better customisation of image source selection
Expected Behavior
I would be able to programatically choose the image source in frontmatter, using a string path or perhaps a function:
image_sources: [
page => page.frontmatter.media.thumbnail || page.frontmatter.image
],Actual Behavior
It seems the code only picks a frontmatter node called image but I want to pick one at media.thumbnail
Also, when the code moves on to use regex to grab a page tag, it ends up with:
<meta name="twitter:image" content="https://davestewart.co.uk/./screens/loading.png">Also, note that this link shows a path relative the actual page - is there some way to get round this?
In my own code, I resolve the path and then require().
The compiled page (the image was just in markdown) actually shows this:
<img src="/assets/img/loading.143ab32a.png" alt="">Steps to Reproduce
N/A
Your Environment
Sorry removed this as didn't think it was a bug before.
But, Node 12, latest everything else.
Great plugin, thanks for your hard work!
Metadata
Metadata
Assignees
Labels
No labels