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
|
||||
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
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
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>'
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<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 %}
|
||||
|
|
Loading…
Reference in New Issue