forked from fleg/hswro_org
testing gh-pages baseurl
This commit is contained in:
parent
d67f85a456
commit
15e896e3e8
|
@ -66,9 +66,9 @@ This theme contains a `netlify.toml` and has been tested to work with Netlify.
|
||||||
## Github Pages
|
## Github Pages
|
||||||
This theme has been tested to work with Github Pages (and Github Project 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
|
## Credits
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
baseurl: '/jekyll-serif-theme'
|
baseurl: '/jekyll-serif-theme/'
|
||||||
permalink: pretty
|
permalink: pretty
|
||||||
title: 'Jekyll Serif'
|
title: 'Jekyll Serif'
|
||||||
|
|
||||||
google_analytics_id: ""
|
google_analytics_id: ""
|
||||||
|
|
||||||
homepage:
|
homepage:
|
||||||
show_call_box: true
|
show_call_box: true
|
||||||
|
|
||||||
logo:
|
logo:
|
||||||
mobile: "images/logo/logo-mobile.svg"
|
mobile: "images/logo/logo-mobile.svg"
|
||||||
desktop: "images/logo/logo.svg"
|
desktop: "images/logo/logo.svg"
|
||||||
desktop_height: "36px"
|
desktop_height: "36px"
|
||||||
|
|
||||||
footer:
|
footer:
|
||||||
copyright_text: 'Free Jekyll theme by <a class="zerostatic" href="https://www.zerostatic.io">www.zerostatic.io</a>'
|
copyright_text: 'Free Jekyll theme by <a class="zerostatic" href="https://www.zerostatic.io">www.zerostatic.io</a>'
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<div class='header'>
|
<div class='header'>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="logo">
|
<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>
|
||||||
<div class="logo-mobile">
|
<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>
|
</div>
|
||||||
{% include main-menu.html %}
|
{% include main-menu.html %}
|
||||||
{% include hamburger.html %}
|
{% include hamburger.html %}
|
||||||
|
|
Loading…
Reference in New Issue