update to relative_url

This commit is contained in:
Robert Austin 2021-03-09 12:41:59 +10:00
parent bdd76be34f
commit 83fad6a578
6 changed files with 21 additions and 10 deletions

View File

@ -1,5 +1,4 @@
baseurl: ''
exclude: ['README.md']
permalink: pretty
title: 'Jekyll Serif'
@ -36,3 +35,15 @@ sass:
plugins:
- jekyll-environment-variables
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- LICENSE.md
- LICENSE
- README.md

View File

@ -1,10 +1,10 @@
<div class='header'>
<div class="container">
<div class="logo">
<a href="{{site.baseurl}}/"><img height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
<a href="{{ site.url }}"><img height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
</div>
<div class="logo-mobile">
<a href="{{site.baseurl}}/"><img alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
<a href="{{ site.url }}"><img alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
</div>
{% include main-menu.html %}
{% include hamburger.html %}

View File

@ -30,7 +30,7 @@ bodyClass: page-home
<div class="service service-summary">
<div class="service-content">
<h2 class="service-title">
<a href="{{site.baseurl}}{{ service.url }}">{{ service.title }}</a>
<a href="{{ service.url | relative_url }}">{{ service.title }}</a>
</h2>
<p>{{ service.content | markdownify | strip_html | truncate: 100 }}</p>
</div>
@ -40,7 +40,7 @@ bodyClass: page-home
</div>
<div class="row justify-content-center">
<div class="col-auto">
<a class="button button-primary" href="{{site.baseurl}}/services">View All Services</a>
<a class="button button-primary" href="{{ "services" | relative_url }}">View All Services</a>
</div>
</div>
</div>

View File

@ -26,7 +26,7 @@ bodyClass: page-services-list
<div class="service service-summary">
<div class="service-content">
<h2 class="service-title">
<a href="{{site.baseurl}}{{ service.url }}">{{ service.title }}</a>
<a href="{{ service.url | relative_url }}">{{ service.title }}</a>
</h2>
<p>{{ service.content | markdownify | strip_html | truncate: 100 }}</p>
</div>

View File

@ -30,7 +30,7 @@ bodyClass: page-team-list
</div>
{% endif %}
<div class="team-meta">
<h2 class="team-name"><a href="{{ site.baseurl }}{{ team.url }}">{{ team.title }}</a></h2>
<h2 class="team-name"><a href="{{ team.url | relative_url }}">{{ team.title }}</a></h2>
<p class="team-description">{{ team.jobtitle }}</p>
{% if team.linkedinurl %}
<a target="_blank" href="{{ team.linkedinurl }}">LinkedIn</a>
@ -52,7 +52,7 @@ bodyClass: page-team-list
</div>
{% endif %}
<div class="team-meta">
<h2 class="team-name"><a href="{{ site.baseurl }}{{ team.url }}">{{ team.title }}</a></h2>
<h2 class="team-name"><a href="{{ team.url | relative_url }}">{{ team.title }}</a></h2>
<p class="team-description">{{ team.jobtitle }}</p>
</div>
</div>

View File

@ -1,6 +1,6 @@
stackbitVersion: ~0.3.0
ssgName: jekyll
ssgVersion: '4.1'
ssgVersion: 4.1
buildCommand: bundle exec jekyll build
publishDir: '_site'
staticDir: 'assets'
@ -15,7 +15,7 @@ logicFields:
models:
config:
type: config
label: Site Configuration
label: Config
fields:
- type: string
name: title