I would like to add some custom elements to my index.html without it being erased each time I run 'jekyll build'. Is there a way to do this?

I’m using JavaScript in conjunction with HTML to add a visitor count to my footer, doing it directly on my index.html page. If I want to add a new post and run jekyll build to add the post to the html page, it resets to default. Can I change this?

Never edit contents in the _site folder.
Make your changes directly to the index.html file at the root of your project or override the layout it is using.

1 Like