This addition of the base url will allow this template to be run on GitHub Pages as a project page which uses a sub directory when hosted at the default github.io/{userName}/{projectName} url.
Not defining a base url will result in the previous functionality.
For most instances, a relative url can be used to reference within the folder structure like assets. This will prepend the baseurl to the link. For example: /assets/img/touring.jpg becomes {projectName}/assets/img/touring.jpg
For instances where the entire url is needed, prefixing the url with {{ site.url }} is replaced by using absolute_url
This will prefix the url with the site url and the base url. If the base url does not exists, only the site url is added.
This addition of the base url will allow this template to be run on GitHub Pages as a project page which uses a sub directory when hosted at the default github.io/{userName}/{projectName} url.
https://mademistakes.com/mastering-jekyll/site-url-baseurl/
Not defining a base url will result in the previous functionality.
For most instances, a relative url can be used to reference within the folder structure like assets. This will prepend the baseurl to the link. For example:
/assets/img/touring.jpg
becomes{projectName}/assets/img/touring.jpg
For instances where the entire url is needed, prefixing the url with
{{ site.url }}
is replaced by usingabsolute_url
This will prefix the url with the site url and the base url. If the base url does not exists, only the site url is added.