# \[Github Pages\] Jekyll builds locally but not on Github

**URL:** <https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833>\
**Category:** Help\
**Created:** [November 24, 2022, 12:42pm UTC](https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833 "2022-11-24T12:42:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nina](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nina](https://talk.jekyllrb.com/u/Nina)\
**Post date:** [November 24, 2022, 12:42pm UTC](https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833/1 "2022-11-24T12:42:28Z")

</div>

While my website runs locally perfectly fine, the github pages build process terminates with the error message  
“github-pages 227 | Error: Could not find document ‘/en/subprojects/subproject\_1.html Subproject 1’ in tag ‘link’.”

I feel like I am being really stupid here since I can’t figure out how (and where) to set the paths correctly. After having tried all kinds of combinations, reading loads of stackoverflow / jekyll talk posts and not succeeding: I would really appreciate help here and some explanation of what fundamental aspect of the jekyll build I did not understand.

You can access the code here: [GitHub - schminin/inside](https://github.com/schminin/inside)

Thank you in advance! 🙂

---

<div class="post-metadata">

**Author:** ![ninja](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ninja/32/4925_2.png) [@ninja](https://talk.jekyllrb.com/u/ninja)\
**Post date:** [November 24, 2022, 3:19pm UTC](https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833/2 "2022-11-24T15:19:36Z")

</div>

Relative question about `link` tag.

> [@How to link from .md page to other page](https://talk.jekyllrb.com/t/how-to-link-from-md-page-to-other-page/6067/5):
>
> The link tag and other tags does not with a filter chain. So this is invalid {% link test\_sub.md | absolute\_url %}) This is what I do for all my Jekyll 3 sites [Link to a page]({{ site.baseurl }}{% link test\_sub.md %}) In Jekyll 4, you can simply do the link tag and it will add the relative URL subpath for you. [Link to a page]({% link test\_sub.md %}) Most of the time you should not want to use absolute URLs. Use relative URLs. You will need an absolute URL for meta HTML tags, RSS feed ma…

another good resource for you

> **[URLs and links in Jekyll](https://mademistakes.com/mastering-jekyll/how-to-link/)**
>
> How Jekyll uses URLs and how to link posts, pages, assets, and other resources together.

your site is a lot of trouble code… i have no idea what im just see inside, it really… oh my god what it is? jesus help oh my eye

repos [GitHub - tiepcreator/inside](https://github.com/tiepcreator/inside)

demo [Overview | INSIDe](https://tiepcreator.github.io/inside/en/)

all I can do at this moment is just fix some of `baseurl` that you config point out.  
and quick fix and made some pull.

But it is totally a mess. I nearly get a heart attack.

---

<div class="post-metadata">

**Author:** ![Nina](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nina](https://talk.jekyllrb.com/u/Nina)\
**Post date:** [November 24, 2022, 3:51pm UTC](https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833/3 "2022-11-24T15:51:16Z")

</div>

Wow, thanks a lot for the really fast solution! I’ll try to clean up the code (sorry for shocking you there) and read up on the references you’ve send me 🙂 One follow up question however remains: Does the website run for you locally with your suggestions? When I use _bundle exec jekyll serve --baseurl ‘’_ the menu bar is not displayed correctly (specifically: the menu items are not visible anymore)

---

<div class="post-metadata">

**Author:** ![ninja](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ninja/32/4925_2.png) [@ninja](https://talk.jekyllrb.com/u/ninja)\
**Post date:** [November 24, 2022, 4:02pm UTC](https://talk.jekyllrb.com/t/github-pages-jekyll-builds-locally-but-not-on-github/7833/4 "2022-11-24T16:02:55Z")

</div>

Yes I can run locally fine with my fix, but only show good on PC, menu will not show up on the mobile browser. You need to fix more to make it work perfectly.

The only thing you are doing so great is that you can make a multi-language Jekyll site; that is the way I keep your repository for learning.

Also you have to focus to responsive mobile too.
