Skip to content

Commit 1c0d36a

Browse files
committed
Use root relative url
1 parent 93cc2a0 commit 1c0d36a

File tree

12 files changed

+64
-64
lines changed

12 files changed

+64
-64
lines changed

404.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ title: Page not found
55

66
### Sorry, the page you were looking for wasn't found.
77

8-
### Follow the [link to home page]({{ site.url }}).
8+
### Follow the [link to home page](/).

_includes/common-js.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<script src="{{ site.url }}/js/jquery-3.3.1.min.js"></script>
2-
<script src="{{ site.url }}/js/bootstrap.bundle.min.js"></script>
1+
<script src="/js/jquery-3.3.1.min.js"></script>
2+
<script src="/js/bootstrap.bundle.min.js"></script>

_includes/head.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
<meta property="og:image" content="{{ site.url }}/img/ShareX_Card_Large.png" />
2424
<meta property="og:description" content="{{ site.description }}" />
2525

26-
<link rel="icon" href="{{ site.url }}/favicon.ico">
26+
<link rel="icon" href="/favicon.ico">
2727

2828
<meta name="theme-color" content="#174974">
2929

3030
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
31-
<link href="{{ site.url }}/css/bootstrap.min.css" rel="stylesheet">
32-
<link href="{{ site.url }}/css/fontawesome.min.css" rel="stylesheet">
33-
<link href="{{ site.url }}/css/fontawesome.solid.min.css" rel="stylesheet">
34-
<link href="{{ site.url }}/css/fontawesome.brands.min.css" rel="stylesheet">
35-
<link href="{{ site.url }}/css/jquery.fancybox.min.css" rel="stylesheet">
36-
<link href="{{ site.url }}/css/main.css?{{ site.time | date: '%s' }}" rel="stylesheet">
31+
<link href="/css/bootstrap.min.css" rel="stylesheet">
32+
<link href="/css/fontawesome.min.css" rel="stylesheet">
33+
<link href="/css/fontawesome.solid.min.css" rel="stylesheet">
34+
<link href="/css/fontawesome.brands.min.css" rel="stylesheet">
35+
<link href="/css/jquery.fancybox.min.css" rel="stylesheet">
36+
<link href="/css/main.css?{{ site.time | date: '%s' }}" rel="stylesheet">
3737
</head>

_includes/navbar.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@
66

77
<div class="collapse navbar-collapse {% unless page.title %}justify-content-center{% endunless %}" id="navbar">
88
<ul class="navbar-nav">
9-
<li class="nav-item{% unless page.title %} active{% endunless %}"><a class="nav-link" href="{{ site.url }}">Home</a></li>
10-
<li class="nav-item{% if page.title == "Downloads" %} active{% endif %}"><a class="nav-link" href="{{ site.url }}/downloads/">Downloads</a></li>
11-
<li class="nav-item{% if page.title == "Changelog" %} active{% endif %}"><a class="nav-link" href="{{ site.url }}/changelog/">Changelog</a></li>
12-
<li class="nav-item{% if page.title == "Screenshots" %} active{% endif %}"><a class="nav-link" href="{{ site.url }}/screenshots/">Screenshots</a></li>
9+
<li class="nav-item{% unless page.title %} active{% endunless %}"><a class="nav-link" href="/">Home</a></li>
10+
<li class="nav-item{% if page.title == "Downloads" %} active{% endif %}"><a class="nav-link" href="/downloads/">Downloads</a></li>
11+
<li class="nav-item{% if page.title == "Changelog" %} active{% endif %}"><a class="nav-link" href="/changelog/">Changelog</a></li>
12+
<li class="nav-item{% if page.title == "Screenshots" %} active{% endif %}"><a class="nav-link" href="/screenshots/">Screenshots</a></li>
1313
<li class="nav-item"><a class="nav-link" href="{{ site.github }}">GitHub</a></li>
1414
<li class="nav-item dropdown">
1515
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">Docs</a>
1616
<div class="dropdown-menu">
1717
<a class="dropdown-item" href="https://github.com/ShareX/CustomUploaders">Custom uploaders</a>
18-
<a class="dropdown-item" href="{{ site.url }}/docs/faq">Frequently asked questions</a>
19-
<a class="dropdown-item" href="{{ site.url }}/docs/dev-builds">Dev builds</a>
20-
<a class="dropdown-item" href="{{ site.url }}/docs/command-line-arguments">Command line arguments</a>
21-
<a class="dropdown-item" href="{{ site.url }}/docs/code-contribution">Code contribution</a>
22-
<a class="dropdown-item" href="{{ site.url }}/docs/translation">Translation</a>
23-
<a class="dropdown-item" href="{{ site.url }}/brand-assets/">Brand assets</a>
24-
<a class="dropdown-item" href="{{ site.url }}/docs/custom-uploader">Custom uploader guide</a>
25-
<a class="dropdown-item" href="{{ site.url }}/docs/amazon-s3">Amazon S3 guide</a>
26-
<a class="dropdown-item" href="{{ site.url }}/docs/google-cloud-storage">Google Cloud Storage guide</a>
27-
<a class="dropdown-item" href="{{ site.url }}/docs/website-capture">Website capture</a>
18+
<a class="dropdown-item" href="/docs/faq">Frequently asked questions</a>
19+
<a class="dropdown-item" href="/docs/dev-builds">Dev builds</a>
20+
<a class="dropdown-item" href="/docs/command-line-arguments">Command line arguments</a>
21+
<a class="dropdown-item" href="/docs/code-contribution">Code contribution</a>
22+
<a class="dropdown-item" href="/docs/translation">Translation</a>
23+
<a class="dropdown-item" href="/brand-assets/">Brand assets</a>
24+
<a class="dropdown-item" href="/docs/custom-uploader">Custom uploader guide</a>
25+
<a class="dropdown-item" href="/docs/amazon-s3">Amazon S3 guide</a>
26+
<a class="dropdown-item" href="/docs/google-cloud-storage">Google Cloud Storage guide</a>
27+
<a class="dropdown-item" href="/docs/website-capture">Website capture</a>
2828
</div>
2929
</li>
3030
<li class="nav-item"><a class="nav-link" href="https://discord.gg/ShareX">Discord</a></li>
3131
<li class="nav-item"><a class="nav-link" href="http://store.steampowered.com/app/400040/">Steam</a></li>
3232
<li class="nav-item"><a class="nav-link" href="https://www.microsoft.com/store/apps/9nblggh4z1sp">Windows Store</a></li>
33-
<li class="nav-item{% if page.title == "Donate" %} active{% endif %}"><a class="nav-link" href="{{ site.url }}/donate/">Donate</a></li>
33+
<li class="nav-item{% if page.title == "Donate" %} active{% endif %}"><a class="nav-link" href="/donate/">Donate</a></li>
3434
</ul>
3535
</div>
3636
</div>

_layouts/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="jumbotron jumbotron-compact">
66
<div class="container">
77
<h1>
8-
<a href="{{ site.url }}">{{ site.name }}</a>
8+
<a href="/">{{ site.name }}</a>
99
</h1>
1010
<p>{{ page.title }}</p>
1111
</div>

brand-assets/index.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,42 @@ title: Brand assets
77

88
### Transparent background
99

10-
* [512x512 (Default)]({{ site.url }}/img/ShareX_Logo.png)
11-
* [SVG]({{ site.url }}/img/ShareX_Logo.svg)
12-
* [16x16]({{ site.url }}/img/ShareX_Logo_16.png)
13-
* [32x32]({{ site.url }}/img/ShareX_Logo_32.png)
14-
* [48x48]({{ site.url }}/img/ShareX_Logo_48.png)
15-
* [64x64]({{ site.url }}/img/ShareX_Logo_64.png)
16-
* [120x120]({{ site.url }}/img/ShareX_Logo_120.png)
17-
* [128x128]({{ site.url }}/img/ShareX_Logo_128.png)
18-
* [256x256]({{ site.url }}/img/ShareX_Logo_256.png)
19-
* [512x512]({{ site.url }}/img/ShareX_Logo_512.png)
20-
* [1024x1024]({{ site.url }}/img/ShareX_Logo_1024.png)
10+
* [512x512 (Default)](/img/ShareX_Logo.png)
11+
* [SVG](/img/ShareX_Logo.svg)
12+
* [16x16](/img/ShareX_Logo_16.png)
13+
* [32x32](/img/ShareX_Logo_32.png)
14+
* [48x48](/img/ShareX_Logo_48.png)
15+
* [64x64](/img/ShareX_Logo_64.png)
16+
* [120x120](/img/ShareX_Logo_120.png)
17+
* [128x128](/img/ShareX_Logo_128.png)
18+
* [256x256](/img/ShareX_Logo_256.png)
19+
* [512x512](/img/ShareX_Logo_512.png)
20+
* [1024x1024](/img/ShareX_Logo_1024.png)
2121

2222
### White background
2323

24-
* [512x512]({{ site.url }}/img/ShareX_Logo_White.png)
24+
* [512x512](/img/ShareX_Logo_White.png)
2525

2626
### Black background
2727

28-
* [512x512]({{ site.url }}/img/ShareX_Logo_Black.png)
28+
* [512x512](/img/ShareX_Logo_Black.png)
2929

3030
## Logo (White)
3131

3232
### Transparent background
3333

34-
* [512x512]({{ site.url }}/img/ShareX_Logo_White_Transparent.png)
34+
* [512x512](/img/ShareX_Logo_White_Transparent.png)
3535

3636
### Black background
3737

38-
* [512x512]({{ site.url }}/img/ShareX_Logo_White_Black.png)
38+
* [512x512](/img/ShareX_Logo_White_Black.png)
3939

4040
## Icon
4141

42-
* [16x16, 32x32, 48x48, 256x256 (Default)]({{ site.url }}/img/ShareX_Icon.ico)
43-
* [16x16, 32x32, 48x48, 64x64, 128x128, 256x256, 512x512]({{ site.url }}/img/ShareX_Icon_Full.ico)
44-
* [16x16, 32x32, 48x48 (Favicon)]({{ site.url }}/img/favicon.ico)
42+
* [16x16, 32x32, 48x48, 256x256 (Default)](/img/ShareX_Icon.ico)
43+
* [16x16, 32x32, 48x48, 64x64, 128x128, 256x256, 512x512](/img/ShareX_Icon_Full.ico)
44+
* [16x16, 32x32, 48x48 (Favicon)](/img/favicon.ico)
4545

4646
## Wallpaper
4747

48-
* [1920x1080 (White logo on black background)]({{ site.url }}/img/ShareX_Wallpaper_White_Black.png)
48+
* [1920x1080 (White logo on black background)](/img/ShareX_Wallpaper_White_Black.png)

callback/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
</div>
2424

2525
{% include common-js.html %}
26-
<script src="{{ site.url }}/js/clipboard.min.js"></script>
27-
<script src="{{ site.url }}/js/callback.js"></script>
26+
<script src="/js/clipboard.min.js"></script>
27+
<script src="/js/callback.js"></script>

docs/faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Recently Microsoft released [.NET Core](https://en.wikipedia.org/wiki/.NET_Frame
1111

1212
### How do I get ShareX to upload to my custom domain?
1313

14-
There are many ways to do this, we recommend using our guides [Google Cloud Storage]({{ site.url }}/docs/google-cloud-storage) and [Amazon S3]({{ site.url }}/docs/amazon-s3).
14+
There are many ways to do this, we recommend using our guides [Google Cloud Storage](/docs/google-cloud-storage) and [Amazon S3](/docs/amazon-s3).
1515

1616
### Does ShareX have portable builds?
1717

donate/index.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<div class="container">
88
<p>We've been developing ShareX for the past 10 years. It always has been, and will continue to be, free and open source software. ShareX isn't just free in terms of price; there are no advertisements. Just like our users, we don't like ads. Donations are our only source of income and allow us to keep ShareX free. If you would like to support our project then please consider donating.</p>
99

10-
<a class="btn" role="button" href="https://www.patreon.com/ShareX"><img src="{{ site.url }}/img/Patreon.png" /><span>Patreon</span></a>
11-
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#bitcoin-modal"><img src="{{ site.url }}/img/Bitcoin.png" /><span>Bitcoin (BTC)</span></a>
12-
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#bitcoin-cash-modal"><img src="{{ site.url }}/img/BitcoinCash.png" /><span>Bitcoin Cash (BCH)</span></a>
13-
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#ethereum-modal"><img src="{{ site.url }}/img/Ethereum.png" /><span>Ethereum (ETH)</span></a>
14-
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#litecoin-modal"><img src="{{ site.url }}/img/Litecoin.png" /><span>Litecoin (LTC)</span></a>
10+
<a class="btn" role="button" href="https://www.patreon.com/ShareX"><img src="/img/Patreon.png" /><span>Patreon</span></a>
11+
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#bitcoin-modal"><img src="/img/Bitcoin.png" /><span>Bitcoin (BTC)</span></a>
12+
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#bitcoin-cash-modal"><img src="/img/BitcoinCash.png" /><span>Bitcoin Cash (BCH)</span></a>
13+
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#ethereum-modal"><img src="/img/Ethereum.png" /><span>Ethereum (ETH)</span></a>
14+
<a class="btn" role="button" href="#" data-toggle="modal" data-target="#litecoin-modal"><img src="/img/Litecoin.png" /><span>Litecoin (LTC)</span></a>
1515

1616
<div id="bitcoin-modal" class="modal fade crypto-modal" tabindex="-1" role="dialog">
1717
<div class="modal-dialog" role="document">
@@ -22,7 +22,7 @@ <h4 class="modal-title">Bitcoin (BTC) address</h4>
2222
</div>
2323
<div class="modal-body">
2424
<div class="text-center">
25-
<img class="crypto-qr" src="{{ site.url }}/img/Bitcoin_QR.png" />
25+
<img class="crypto-qr" src="/img/Bitcoin_QR.png" />
2626
<div class="card panel-default crypto-address">
2727
<div class="card-body">3HYwAmnTGkd9PhsFvr8zNsuiFPUCG1ywcw</div>
2828
</div>
@@ -41,7 +41,7 @@ <h4 class="modal-title">Bitcoin Cash (BCH)</h4>
4141
</div>
4242
<div class="modal-body">
4343
<div class="text-center">
44-
<img class="crypto-qr" src="{{ site.url }}/img/Bitcoin_Cash_QR.png" />
44+
<img class="crypto-qr" src="/img/Bitcoin_Cash_QR.png" />
4545
<div class="card panel-default crypto-address">
4646
<div class="card-body">qr0v4n0clt43a0enxr52tanc6002xd3p6yy5k7zkd5</div>
4747
</div>
@@ -60,7 +60,7 @@ <h4 class="modal-title">Ethereum (ETH)</h4>
6060
</div>
6161
<div class="modal-body">
6262
<div class="text-center">
63-
<img class="crypto-qr" src="{{ site.url }}/img/Ethereum_QR.png" />
63+
<img class="crypto-qr" src="/img/Ethereum_QR.png" />
6464
<div class="card panel-default crypto-address">
6565
<div class="card-body">0xD13705174De77E33f7A520aC6BfCcde2B452c277</div>
6666
</div>
@@ -79,7 +79,7 @@ <h4 class="modal-title">Litecoin (LTC)</h4>
7979
</div>
8080
<div class="modal-body">
8181
<div class="text-center">
82-
<img class="crypto-qr" src="{{ site.url }}/img/Litecoin_QR.png" />
82+
<img class="crypto-qr" src="/img/Litecoin_QR.png" />
8383
<div class="card panel-default crypto-address">
8484
<div class="card-body">MEdP9teaLsF9erVk4FQLiNfU8ZPcBJmYAA</div>
8585
</div>

downloads/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ <h1>Last 30 releases<span class="total-downloads"></span></h1>
2424
</div>
2525

2626
{% include common-js.html %}
27-
<script src="{{ site.url }}/js/moment.min.js"></script>
28-
<script src="{{ site.url }}/js/downloads.js"></script>
27+
<script src="/js/moment.min.js"></script>
28+
<script src="/js/downloads.js"></script>

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ <h1>{{ site.name }}</h1>
1212
<div><span>For Windows 7, 8.1 and 10</span></div>
1313
</div>
1414
<a class="btn" role="button" href="{{ site.github }}">Source</a>
15-
<a class="btn" role="button" href="{{ site.url }}/donate/">Donate</a>
15+
<a class="btn" role="button" href="/donate/">Donate</a>
1616
</div>
1717
</div>
1818
</div>
1919

2020
<div class="container-fluid container-screenshot">
21-
<img class="img-fluid" src="{{ site.url }}/img/ShareX_Animation.gif" alt="ShareX screenshot" />
21+
<img class="img-fluid" src="/img/ShareX_Animation.gif" alt="ShareX screenshot" />
2222
<div>
23-
<a class="btn" role="button" href="{{ site.url }}/screenshots/">See more screenshots</a>
23+
<a class="btn" role="button" href="/screenshots/">See more screenshots</a>
2424
</div>
2525
</div>
2626

@@ -270,7 +270,7 @@ <h3><a href="#tools"><i class="fas fa-wrench"></i>Productivity tools</a></h3>
270270
</div>
271271

272272
{% include common-js.html %}
273-
<script src="{{ site.url }}/js/main.js"></script>
273+
<script src="/js/main.js"></script>
274274

275275
<!-- begin olark code -->
276276
<script data-cfasync="false" type='text/javascript'>

screenshots/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
</div>
3737

3838
{% include common-js.html %}
39-
<script src="{{ site.url }}/js/jquery.fancybox.min.js"></script>
39+
<script src="/js/jquery.fancybox.min.js"></script>

0 commit comments

Comments
 (0)