Skip to content

Commit

Permalink
change image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Nov 28, 2024
1 parent 7c2a33c commit 963b162
Show file tree
Hide file tree
Showing 5 changed files with 1,078 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = async function(eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "src/assets": "." });
eleventyConfig.addPassthroughCopy({ 'src/_assets/public': '/' });
eleventyConfig.addPassthroughCopy({ 'src/_assets/img': '/img' });
// eleventyConfig.addPassthroughCopy({ 'src/static': '/img' });
eleventyConfig.addPassthroughCopy({ 'src/_assets/fonts': '/fonts' });

// Watch targets
Expand Down Expand Up @@ -143,12 +144,12 @@ module.exports = async function(eleventyConfig) {

// COPY IMAGES LINKED in PAGES
// this is not regexp but Glob patern (picomatch https://npm.devtool.tech/picomatch)
eleventyConfig.addPlugin(pageAssetsPlugin, {
mode: "parse",
postsMatching: "src/pages/*.{md,html}",
recursive: false,
hashAssets: false,
});
// eleventyConfig.addPlugin(pageAssetsPlugin, {
// mode: "parse",
// postsMatching: "src/pages/*.{md,html}",
// recursive: false,
// hashAssets: false,
// });

return {
dir: {
Expand Down
Loading

0 comments on commit 963b162

Please sign in to comment.