Open hidegh opened 3 years ago
Maybe it's fine, but there are two '*' signs in your postsMatching: src/posts/**/*.md
.
And in docs it's only one '': `src/posts//*.md`
I cannot get the plugin to work either unfortunately. Also seeing the above error. Running Mac OS.
For a temporary fix, until his PR is merged, I have solved this by replacing the npm package with @maxboeck repo.
npm i -D https://github.com/maxboeck/eleventy-plugin-page-assets
@scottishstoater
I've created my own simple plugin for this and it works: https://github.com/hidegh/jamstack-eleventy-custom/tree/master/src/plugins/eleventy-hugo-style-local-post-images
The repo contains a full 11ty site (base) built u from ZERO for a BLOGging site...
Checked the network graph https://github.com/victornpb/eleventy-plugin-page-assets/network and found that maxboeck is the most up to date fork. I then switch the package.json and ran npm install
after deleting the corresponding folder from node_module. This is because it has this specific commit which fixes this issue plus various other patches that was also accepted.
"eleventy-plugin-page-assets": "github:maxboeck/eleventy-plugin-page-assets",
I did this because I was trying to use directory mode, after having issue with parse mode unexpectedly trying to parse 'absolute' path images instead of skipping over it. The context was I was trying to add footer images which is shared between pages and is not in a folder specific location.
works with "source", but...not with directory mode
posts.zip
setup:
error: