Skip to content

"A file was included is a symlink or does not exist" when trying to overwrite _includes/archive-single.html using Github pages #2977

Answered by mmistakes
Rainymood asked this question in Q&A
Discussion options

You must be logged in to vote

Overriding _includes works fine. The issue is this line in your _includes/archive-single.html

<!-- <a href="{{ post.url | relative_url }}" rel="permalink">{{ title }} {% include date.html %}</a> -->

Doesn't matter to Jekyll that you've commented it out in the HTML, you're trying to pull in _includes/date.html which doesn't exist in the theme nor in your local _includes folder.

Either rename it to page__date.html to use what's bundled in the theme, or create _includes/date.html in your repo.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mmistakes
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
Converted from issue

This discussion was converted from issue #2977 on May 25, 2021 12:02.