# File is a symlink error in github pages, but the included file is in \_includes

**URL:** <https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864>\
**Category:** Help\
**Created:** [April 10, 2021, 2:18pm UTC](https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864 "2021-04-10T14:18:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPBotelho](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpbotelho/32/3418_2.png) [@JPBotelho](https://talk.jekyllrb.com/u/JPBotelho)\
**Post date:** [April 10, 2021, 2:18pm UTC](https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864/1 "2021-04-10T14:18:23Z")

</div>

Full error:

Your site is having problems building: A file was included in `Portfolio/_posts/2021-03-25-Misc.md` that is a symlink or does not exist in your `_includes` directory.

I have checked the only includes in Misc.md are:  
{% include github-star.html content=“argument” %}

Removing these includes removes the error. However, github-star is included in the \_includes folder.

 ![jekyllhelp](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/f/fa9b07d63f3c33b9d34910bc1118aee74826c0b8.png)  
The repo is here: [GitHub - JPBotelho/portfolio.github.io](https://github.com/JPBotelho/portfolio.github.io)

Any ideas?

---

<div class="post-metadata">

**Author:** ![JPBotelho](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpbotelho/32/3418_2.png) [@JPBotelho](https://talk.jekyllrb.com/u/JPBotelho)\
**Post date:** [April 10, 2021, 2:19pm UTC](https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864/2 "2021-04-10T14:19:15Z")

</div>

The only interaction github-star has with liquid is using {{ include.content }} to collect the argument given by the post.

---

<div class="post-metadata">

**Author:** ![JPBotelho](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpbotelho/32/3418_2.png) [@JPBotelho](https://talk.jekyllrb.com/u/JPBotelho)\
**Post date:** [April 10, 2021, 2:25pm UTC](https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864/3 "2021-04-10T14:25:21Z")

</div>

Removing the content and just using {include url} results in the same error.

---

<div class="post-metadata">

**Author:** ![JPBotelho](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpbotelho/32/3418_2.png) [@JPBotelho](https://talk.jekyllrb.com/u/JPBotelho)\
**Post date:** [April 10, 2021, 2:37pm UTC](https://talk.jekyllrb.com/t/file-is-a-symlink-error-in-github-pages-but-the-included-file-is-in-includes/5864/4 "2021-04-10T14:37:10Z")

</div>

I believe i fixed the symlink error. The content of my website was inside a folder named Portfolio. Jekyll was probably looking for its files in the root of the repository, while they were inside that folder. Changing the root folder in github page’s settings fixed this. The page is still completely broken, but at least it builds properly.
