# Site.github.url

**URL:** <https://talk.jekyllrb.com/t/site-github-url/1157>\
**Category:** Help\
**Created:** [November 10, 2017, 4:59am UTC](https://talk.jekyllrb.com/t/site-github-url/1157 "2017-11-10T04:59:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![navarrorc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/navarrorc/32/582_2.png) [@navarrorc](https://talk.jekyllrb.com/u/navarrorc)\
**Post date:** [November 10, 2017, 4:59am UTC](https://talk.jekyllrb.com/t/site-github-url/1157/1 "2017-11-10T04:59:50Z")

</div>

Is site.github.url no longer the preferred method used to prepend to sources paths when hosting on github pages? Do we use the relative\_url filter instead?

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [November 10, 2017, 10:47am UTC](https://talk.jekyllrb.com/t/site-github-url/1157/2 "2017-11-10T10:47:12Z")

</div>

💡 Jekyll’s website is hosted on GitHub Pages and does not use `site.github.url`.

Defining `url` in your config and using relative or absolute filters should work just fine.  
And as in development environment `url` defaults to `localhost:4000`, you shouldn’t have to worry.

`site.github.url` is related to `jekyll-github-metadata`, this plugin is mostly useful if you need to access other metadata.

---

<div class="post-metadata">

**Author:** ![navarrorc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/navarrorc/32/582_2.png) [@navarrorc](https://talk.jekyllrb.com/u/navarrorc)\
**Post date:** [November 10, 2017, 2:26pm UTC](https://talk.jekyllrb.com/t/site-github-url/1157/3 "2017-11-10T14:26:20Z")

</div>

Isn’t the plug-in you mentioned automatically available in github? Have use site.github.url for a while in some projects with success. I thought I had seen this explained in the official docs site [jekyllrb.com](http://jekyllrb.com) but now I can’t find it and believe it was replaced with the relative\_url filter information. Am I imagining things or was it there in the past?

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [November 11, 2017, 7:25pm UTC](https://talk.jekyllrb.com/t/site-github-url/1157/4 "2017-11-11T19:25:45Z")

</div>

It might have been mentioned in Ben Balter’s Jekyll Style Guide before the url filters.

Now it recommends to use the filters instead:

> **[The config file](http://ben.balter.com/jekyll-style-guide/config/#url)**
>
> The format
