Skip to content
Snippets Groups Projects
Commit 15e896e3 authored by Robert Austin's avatar Robert Austin
Browse files

testing gh-pages baseurl

parent d67f85a4
Branches gh-pages
Tags
No related merge requests found
......@@ -66,9 +66,9 @@ This theme contains a `netlify.toml` and has been tested to work with Netlify.
## Github Pages
This theme has been tested to work with Github Pages (and Github Project Pages)
If you are using this theme with Github Pages and you are using a Github Project Page then **your site will be hosted in a subfolder** you will need to update the `baseurl` in the `_config.yml` otherwise all the css, images and paths will be broken.
If you are using this theme with Github Pages and you are using a Github Project Page then you will need to update the `baseurl` in the `_config.yml` otherwise all the css, images and paths will be broken.
For example the site https://zerostaticthemes.github.io/jekyll-serif-theme would have `baseurl: "/jekyll-serif-theme"`
For example the site https://zerostaticthemes.github.io/jekyll-serif-theme would have `baseurl: "/jekyll-serif-theme/"`
## Credits
......
baseurl: '/jekyll-serif-theme'
baseurl: '/jekyll-serif-theme/'
permalink: pretty
title: 'Jekyll Serif'
google_analytics_id: ""
homepage:
show_call_box: true
logo:
mobile: "images/logo/logo-mobile.svg"
desktop: "images/logo/logo.svg"
desktop_height: "36px"
footer:
copyright_text: 'Free Jekyll theme by <a class="zerostatic" href="https://www.zerostatic.io">www.zerostatic.io</a>'
......
<div class='header'>
<div class="container">
<div class="logo">
<a href="{{ site.url }}"><img height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
<a href="{{ site.baseurl }}"><img height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
</div>
<div class="logo-mobile">
<a href="{{ site.url }}"><img alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
<a href="{{ site.baseurl }}"><img alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
</div>
{% include main-menu.html %}
{% include hamburger.html %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment