Skip to content

Commit cb6c079

Browse files
committed
Remove use of site.github.url
We don't need to include the whole url in each page if we're being served from the root of a domain.
1 parent d308638 commit cb6c079

12 files changed

+41
-41
lines changed

Diff for: _includes/footer.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<div class="menu-centered">
77
<ul class="menu">
8-
<li><a href="{{ site.github.url }}/about">About <span>&#xbb;</span></a></li>
9-
<li><a href="{{ site.github.url }}/join">Join <span>&#xbb;</span></a></li>
10-
<li><a href="{{ site.github.url }}/manifesto">Manifesto <span>&#xbb;</span></a></li>
8+
<li><a href="/about">About <span>&#xbb;</span></a></li>
9+
<li><a href="/join">Join <span>&#xbb;</span></a></li>
10+
<li><a href="/manifesto">Manifesto <span>&#xbb;</span></a></li>
1111
</ul>
1212
</div>
1313

@@ -18,7 +18,7 @@
1818
<div class="footer-lower">
1919
<div class="row">
2020
<div class="small-12 columns">
21-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/coop-logo.png" class="float-center" />
21+
<img src="/app/themes/coop-tech-oowp-theme/public/img/coop-logo.png" class="float-center" />
2222
<p>Site developed by <a href="http://glowboxdesign.co.uk/" target="_blank">Glowbox Design</a> &amp; <a href="http://outlandish.com" target="_blank">Outlandish</a>.</p>
2323
<p>Source code available on <a href="https://git.coop/cotech/website" target="_blank">git.coop</a>.</p>
2424
<p>Hosted by <a href="https://www.webarchitects.coop/" target="_blank">Webarchitects</a> for CoTech &#xa9;2018</p>

Diff for: _includes/head.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<meta name="twitter:site" content="@CotechUK" />
1313
<meta name="twitter:image" content="/app/themes/coop-tech-oowp-theme/public/img/Cotech_512x512.png" />
1414
<link rel="canonical" href="{{ page.url | absolute_url }}" />
15-
<link rel='stylesheet' id='app-css' href='{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/css/app.css?ver=4.8' type='text/css' media='all' />
16-
<script type='text/javascript' src='{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/js/vendor.js?ver=4.8'></script>
17-
<link rel="icon" href="{{ site.github.url }}/app/uploads/2017/02/cropped-cotech_512x512-32x32.png" sizes="32x32" />
18-
<link rel="icon" href="{{ site.github.url }}/app/uploads/2017/02/cropped-cotech_512x512-192x192.png" sizes="192x192" />
19-
<link rel="apple-touch-icon-precomposed" href="{{ site.github.url }}/app/uploads/2017/02/cropped-cotech_512x512-180x180.png" />
20-
<meta name="msapplication-TileImage" content="{{ site.github.url }}/app/uploads/2017/02/cropped-cotech_512x512-270x270.png" />
15+
<link rel='stylesheet' id='app-css' href='/app/themes/coop-tech-oowp-theme/public/css/app.css?ver=4.8' type='text/css' media='all' />
16+
<script type='text/javascript' src='/app/themes/coop-tech-oowp-theme/public/js/vendor.js?ver=4.8'></script>
17+
<link rel="icon" href="/app/uploads/2017/02/cropped-cotech_512x512-32x32.png" sizes="32x32" />
18+
<link rel="icon" href="/app/uploads/2017/02/cropped-cotech_512x512-192x192.png" sizes="192x192" />
19+
<link rel="apple-touch-icon-precomposed" href="/app/uploads/2017/02/cropped-cotech_512x512-180x180.png" />
20+
<meta name="msapplication-TileImage" content="/app/uploads/2017/02/cropped-cotech_512x512-270x270.png" />
2121
<style type="text/css" id="wp-custom-css">
2222
section#contact div.row div p a:active,
2323
section#contact div.row div p a:focus,
@@ -26,8 +26,8 @@
2626
color: white;
2727
}
2828
</style>
29-
<link rel="stylesheet" href="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/foundation-icons/foundation-icons.css">
30-
<link rel="icon" type="image/x-icon" href="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">
29+
<link rel="stylesheet" href="/app/themes/coop-tech-oowp-theme/public/foundation-icons/foundation-icons.css">
30+
<link rel="icon" type="image/x-icon" href="/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">
3131
<script type="text/javascript">
3232
window.mapboxAccessToken = '{{ site.mapbox_access_token }}';
3333
</script>

Diff for: _includes/header.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<div class="top-bar sticky iss-stuck is-at-top" data-sticky data-margin-top=0>
44
<div class="top-bar-title">
55
<strong>
6-
<a id="logo" href="{{ site.github.url }}/">
7-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">CoTech
6+
<a id="logo" href="/">
7+
<img src="/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">CoTech
88
</a>
99
</strong>
10-
<a class="back" href="{{ site.github.url }}/">&#8592; Go Back</a>
10+
<a class="back" href="/">&#8592; Go Back</a>
1111
</div>
1212
</div>
1313
</div>

Diff for: _includes/javascripts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script type='text/javascript' src='{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/js/app.js?ver=4.8'></script>
1+
<script type='text/javascript' src='/app/themes/coop-tech-oowp-theme/public/js/app.js?ver=4.8'></script>

Diff for: _layouts/coop.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="row">
1717
<div class="small-12 small-centered columns">
1818
<a href="{{ page.website }}" target="_blank">
19-
<img src="{{ site.github.url }}/images/coops/{{ page.slug }}.png" alt="">
19+
<img src="/images/coops/{{ page.slug }}.png" alt="">
2020
</a>
2121
<h2>{{ page.name }}</h2>
2222
<a href="{{ page.website }}" target="_blank">{{ page.website }}</a>
@@ -86,7 +86,7 @@ <h4>Services</h4>
8686
{% assign s = site.services | where: "slug", service | first %}
8787
<div class="column">
8888
<a href="{{ s.url | relative_url }}" class="service-thumb">
89-
<div class="service-thumb-img float-center" style="background-image: url({{ site.github.url }}/images/services/{{ s.slug }}.png)"></div>
89+
<div class="service-thumb-img float-center" style="background-image: url(/images/services/{{ s.slug }}.png)"></div>
9090
<h5>{{ s.name }}</h5>
9191
</a>
9292
</div>
@@ -104,7 +104,7 @@ <h4>Technologies</h4>
104104
{% assign t = site.technologies | where: "slug", technology | first %}
105105
<div class="column">
106106
<a href="{{ t.url | relative_url }}" class="technology-thumb">
107-
<div class="technology-thumb-img float-center" style="background-image: url({{ site.github.url }}/images/technologies/{{ t.slug }}.png)"></div>
107+
<div class="technology-thumb-img float-center" style="background-image: url(/images/technologies/{{ t.slug }}.png)"></div>
108108
<h5>{{ t.name }}</h5>
109109
</a>
110110
</div>
@@ -121,7 +121,7 @@ <h4>Clients</h4>
121121
{% for client in page.clients %}
122122
{% assign c = site.clients | where: "slug", client | first %}
123123
<div class="column client-thumb-container">
124-
<div class="client-thumb" style="background-image: url({{ site.github.url }}/images/clients/{{ c.slug }}.png)"></div>
124+
<div class="client-thumb" style="background-image: url(/images/clients/{{ c.slug }}.png)"></div>
125125
<h5 class="client-thumb-header">{{ c.title }}</h5>
126126
</div>
127127
{% endfor %}

Diff for: _layouts/home.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<div class="top-bar sticky iss-stuck is-at-top" data-sticky data-margin-top=0>
1212
<div class="top-bar-title">
1313
<strong>
14-
<a id="logo" href="{{ site.github.url }}/">
15-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">CoTech
14+
<a id="logo" href="/">
15+
<img src="/app/themes/coop-tech-oowp-theme/public/img/CoTech-logo.png">CoTech
1616
</a>
1717
</strong>
1818
<span data-responsive-toggle="responsive-menu" data-hide-for="medium">

Diff for: _layouts/service.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div id="page-banner">
1616
<div class="row">
1717
<div class="small-12 small-centered columns">
18-
<img src="{{ site.github.url }}/images/services/{{ page.slug }}.png" alt="">
18+
<img src="/images/services/{{ page.slug }}.png" alt="">
1919
<h2>Coops that offer <span>{{ page.name }}</span></h2>
2020
</div>
2121
</div>
@@ -40,7 +40,7 @@ <h2>Coops that offer <span>{{ page.name }}</span></h2>
4040
{% if coop.services contains page.slug %}
4141
<div class="column">
4242
<a href="{{ coop.url | relative_url }}" class="coop-thumb">
43-
<img src="{{ site.github.url }}/images/coops/{{ coop.slug }}.png" alt="">
43+
<img src="/images/coops/{{ coop.slug }}.png" alt="">
4444
</a>
4545
</div>
4646
{% endif %}

Diff for: _layouts/technology.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div id="page-banner">
1616
<div class="row">
1717
<div class="small-12 small-centered columns">
18-
<img src="{{ site.github.url }}/images/technologies/{{ page.slug }}.png" alt="">
18+
<img src="/images/technologies/{{ page.slug }}.png" alt="">
1919
<h2>Coops that use <span>{{ page.name }}</span></h2>
2020
</div>
2121
</div>
@@ -40,7 +40,7 @@ <h2>Coops that use <span>{{ page.name }}</span></h2>
4040
{% if coop.technologies contains page.slug %}
4141
<div class="column">
4242
<a href="{{ coop.url | relative_url }}" class="coop-thumb">
43-
<img src="{{ site.github.url }}/images/coops/{{ coop.slug }}.png" alt="">
43+
<img src="/images/coops/{{ coop.slug }}.png" alt="">
4444
</a>
4545
</div>
4646
{% endif %}

Diff for: about.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Read [our manifesto][manifesto], [contact us if you want to work with us][contac
2222
[wiki]: https://wiki.coops.tech/
2323
[mailing-list]: https://www.email-lists.org/mailman/listinfo/tech-coops
2424
[wortley-hall]: https://www.wortleyhall.org.uk/
25-
[manifesto]: {{ site.github.url }}/manifesto
26-
[contact]: {{ site.github.url }}/#contact
27-
[join]: {{ site.github.url }}/join
25+
[manifesto]: /manifesto
26+
[contact]: /#contact
27+
[join]: /join

Diff for: index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
<div class="small-12 medium-10 large-8 small-centered columns">
99

1010
<div class="small-3 columns">
11-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/icon-coops.png" class="float-center">
11+
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-coops.png" class="float-center">
1212
<h6>Co-ops</h6>
1313
<h5>{{ site.coops.size }}</h5>
1414
</div>
1515
<div class="small-3 columns">
16-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/icon-staff.png" class="float-center">
16+
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-staff.png" class="float-center">
1717
<h6>Staff</h6>
1818
<h5>159+</h5>
1919
</div>
2020
<div class="small-3 columns">
21-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/icon-revenue.png" class="float-center">
21+
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-revenue.png" class="float-center">
2222
<h6>Revenue</h6>
2323
<h5>£5.7m</h5>
2424
</div>
2525
<div class="small-3 columns">
26-
<img src="{{ site.github.url }}/app/themes/coop-tech-oowp-theme/public/img/icon-clients.png" class="float-center">
26+
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-clients.png" class="float-center">
2727
<h6>Clients</h6>
2828
<h5>{{ site.clients.size }}+</h5>
2929
</div>
@@ -55,7 +55,7 @@ <h2>Members</h2>
5555
{% for coop in site.coops %}
5656
<div class="column">
5757
<a class="coop-thumb" href="{{ coop.url | relative_url }}">
58-
<div class="coop-thumb-img has-tip tip-bottom radius" style="background-image: url({{ site.github.url }}/images/coops/{{ coop.slug }}.png)" data-tooltip aria-haspopup="true" title="{{ coop.name }}"></div>
58+
<div class="coop-thumb-img has-tip tip-bottom radius" style="background-image: url(/images/coops/{{ coop.slug }}.png)" data-tooltip aria-haspopup="true" title="{{ coop.name }}"></div>
5959
</a>
6060
</div>
6161
{% endfor %}
@@ -101,7 +101,7 @@ <h2>Clients</h2>
101101
<div class="row small-up-2 medium-up-3 large-up-6">
102102
{% for client in site.clients %}
103103
<div class="column">
104-
<div class="client-thumb" style="background-image: url({{ site.github.url }}/images/clients/{{ client.slug }}.png)"></div>
104+
<div class="client-thumb" style="background-image: url(/images/clients/{{ client.slug }}.png)"></div>
105105
</div>
106106
{% endfor %}
107107
</div>
@@ -120,7 +120,7 @@ <h2>Services</h2>
120120
{% for service in site.services %}
121121
<div class="column">
122122
<a href="{{ service.url | relative_url }}" class="service-thumb">
123-
<div class="service-thumb-img float-center" style="background-image: url({{ site.github.url }}/images/services/{{ service.slug }}.png)"></div>
123+
<div class="service-thumb-img float-center" style="background-image: url(/images/services/{{ service.slug }}.png)"></div>
124124
<h5>{{ service.name }}</h5>
125125
</a>
126126
</div>
@@ -140,7 +140,7 @@ <h2>Technologies</h2>
140140
{% for technology in site.technologies %}
141141
<div class="column">
142142
<a href="{{ technology.url | relative_url }}" class="technology-thumb">
143-
<div class="technology-thumb-img" style="background-image: url({{ site.github.url }}/images/technologies/{{ technology.slug }}.png)"></div>
143+
<div class="technology-thumb-img" style="background-image: url(/images/technologies/{{ technology.slug }}.png)"></div>
144144
<h5>{{ technology.name }}</h5>
145145
</a>
146146
</div>

Diff for: join.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ We're still working our exactly what this entails but in essence you will provid
4545

4646
If you'd like to find out more and help shape this official supporter role then please get in touch. You can also read more about us and check out our manifesto. You can also read more [about us][about] and check out our [manifesto][].
4747

48-
[about]: {{ site.github.url }}/about
49-
[manifesto]: {{ site.github.url }}/manifesto
48+
[about]: /about
49+
[manifesto]: /manifesto

Diff for: manifesto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ We call upon consumers of digital products -- including trades unions, charities
1616

1717
We hereby give notice to technology companies that do not treat their employees fairly, do not give their workers control of their businesses and do not seek to create a fairer world that your days are numbered. We are more creative, more committed and more resilient. [Join us][join].
1818

19-
[Co-operative Technologists]: {{ site.github.url }}/about
20-
[join]: {{ site.github.url }}/join
19+
[Co-operative Technologists]: /about
20+
[join]: /join

0 commit comments

Comments
 (0)