-
Hi, First of all, thanks for this awesome template. I have just started to play around with it and i really like how easy and customizable it is to use.
Change: To: My path dir to the images is: src/posts/images I have also tried placing them here: src/assets/images I think perhaps my problem my be related to my second issue, which is...
When i run:
I get an error in the terminal saying it doesn't recognise the 'rm' or 'true', so it cannot remove and replace the _site dir.
I would appreciate your help and guidance. Thanks again for the amazing work you've put into this template! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@darkins, Thank you. Now for your first point;
According to the 11ty image plugin documentation, the image path must match the entire path. So use For the second point;
I'm guessing you're running Windows. The It does not work on Windows. I do intend to replace with for a more cross-platform solution, later. However, for the time being, replace the # CMD
rmdir /s /q _site
# PowerShell
Remove-Item -Recurse -Force _site I hope this helps 😉 |
Beta Was this translation helpful? Give feedback.
@darkins, Thank you.
Now for your first point;
According to the 11ty image plugin documentation, the image path must match the entire path.
So use
./src/images/my-image.jpg
.For the second point;
I'm guessing you're running Windows.
The
rm
command is a UNIX (MacOS, Linux) command that removes the contents of your build folder,before 11ty will build your site.
It does not work on Windows.
I do intend to replace with for a more cross-platform solution, later.
However, for the time being, replace the
rm -r _site/ || true
command with a Windows solution;