Skip to content

How to use a local "featured" image in post pages #5

Answered by GrimLink
darkins asked this question in Q&A
Discussion options

You must be logged in to vote

@darkins, Thank you.

Now for your first point;

would like to change the featured images in my posts to my own local images.

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;

How do i successfully run a build?

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;

# CMD
rmdir /s /q _site

#

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@darkins
Comment options

Answer selected by darkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants