Skip to content

Commit b51ddd7

Browse files
committed
Fill missing baseurl prefixes in templates
1 parent c3c85fc commit b51ddd7

19 files changed

+63
-63
lines changed

templates/404.html.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h2 class="subtitle">{{fluent "error404-subtitle"}}</h2>
88
</div>
99
<div class="w-30-l w-100 mt5 mt0-l">
10-
<img id="ferris-error" src="/static/images/ferris-error.png" alt='{{fluent "error404-img-alt"}}'>
10+
<img id="ferris-error" src="{{baseurl}}/static/images/ferris-error.png" alt='{{fluent "error404-img-alt"}}'>
1111
</div>
1212
</div>
1313
</div>

templates/community/index.html.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
</ul>
171171
</div>
172172
</div>
173-
<img src="/static/images/rustfest.jpg" alt="{{fluent " community-rustfest-alt"}}">
173+
<img src="{{baseurl}}/static/images/rustfest.jpg" alt="{{fluent " community-rustfest-alt"}}">
174174
</div>
175175
</section>
176176

templates/components/footer.html.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
<div class="flex flex-column mw8 w-100 measure-wide-l pv2 pv5-m pv2-ns ph4-m ph4-l">
3434
<h4>{{fluent "footer-social"}}</h4>
3535
<div class="flex flex-row flex-wrap items-center">
36-
<a rel="me" href="https://social.rust-lang.org/@rust" target="_blank"><img src="/static/images/mastodon.svg"
36+
<a rel="me" href="https://social.rust-lang.org/@rust" target="_blank"><img src="{{baseurl}}/static/images/mastodon.svg"
3737
alt="{{fluent "mastodon"}}" title="{{fluent "mastodon"}}" /></a>
3838
<a rel="me" href="https://bsky.app/profile/rust-lang.org" target="_blank"><img
39-
src="/static/images/bluesky.svg" alt="{{fluent "bluesky"}}" title="{{fluent "bluesky"}}" /></a>
39+
src="{{baseurl}}/static/images/bluesky.svg" alt="{{fluent "bluesky"}}" title="{{fluent "bluesky"}}" /></a>
4040
<a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" target="_blank"><img class="pv2"
41-
src="/static/images/youtube.svg" alt="{{fluent "footer-alt-youtube"}}" title="YouTube" /></a>
42-
<a href="https://github.com/rust-lang" target="_blank"><img src="/static/images/github.svg" alt="github logo"
41+
src="{{baseurl}}/static/images/youtube.svg" alt="{{fluent "footer-alt-youtube"}}" title="YouTube" /></a>
42+
<a href="https://github.com/rust-lang" target="_blank"><img src="{{baseurl}}/static/images/github.svg" alt="github logo"
4343
title="{{fluent "footer-github-alt"}}" /></a>
4444
</div>
4545
</div>

templates/components/layout.html.hbs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828
<meta property="og:locale" content="en_US" />
2929

3030
<!-- styles -->
31-
<link rel="stylesheet" href="/static/styles/a11y-dark.css"/>
31+
<link rel="stylesheet" href="{{baseurl}}/static/styles/a11y-dark.css"/>
3232
<link rel="stylesheet" href="{{assets.css.vendor}}"/>
3333
<link rel="stylesheet" href="{{assets.css.fonts}}"/>
3434
<link rel="stylesheet" href="{{assets.css.app}}"/>
3535

3636
<!-- favicon -->
37-
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png?v=ngJW8jGAmR">
38-
<link rel="icon" sizes="16x16" type="image/png" href="/static/images/favicon-16x16.png">
39-
<link rel="icon" sizes="32x32" type="image/png" href="/static/images/favicon-32x32.png">
40-
<link rel="icon" type="image/svg+xml" href="/static/images/favicon.svg">
41-
<link rel="manifest" href="/static/images/site.webmanifest?v=ngJW8jGAmR">
42-
<link rel="mask-icon" href="/static/images/safari-pinned-tab.svg?v=ngJW8jGAmR" color="#000000">
37+
<link rel="apple-touch-icon" sizes="180x180" href="{{baseurl}}/static/images/apple-touch-icon.png?v=ngJW8jGAmR">
38+
<link rel="icon" sizes="16x16" type="image/png" href="{{baseurl}}/static/images/favicon-16x16.png">
39+
<link rel="icon" sizes="32x32" type="image/png" href="{{baseurl}}/static/images/favicon-32x32.png">
40+
<link rel="icon" type="image/svg+xml" href="{{baseurl}}/static/images/favicon.svg">
41+
<link rel="manifest" href="{{baseurl}}/static/images/site.webmanifest?v=ngJW8jGAmR">
42+
<link rel="mask-icon" href="{{baseurl}}/static/images/safari-pinned-tab.svg?v=ngJW8jGAmR" color="#000000">
4343
<meta name="msapplication-TileColor" content="#ffffff">
44-
<meta name="msapplication-config" content="/static/images/browserconfig.xml?v=ngJW8jGAmR">
44+
<meta name="msapplication-config" content="{{baseurl}}/static/images/browserconfig.xml?v=ngJW8jGAmR">
4545
<meta name="theme-color" content="#ffffff">
4646

4747
{{#if is_landing}}
@@ -54,8 +54,8 @@
5454

5555
<!-- Custom Highlight pack with: Rust, Markdown, TOML, Bash, JSON, YAML,
5656
and plaintext. -->
57-
<script src="/static/scripts/highlight.pack.js" defer></script>
58-
<script src="/static/scripts/init.js" defer></script>
57+
<script src="{{baseurl}}/static/scripts/highlight.pack.js" defer></script>
58+
<script src="{{baseurl}}/static/scripts/init.js" defer></script>
5959
</head>
6060
<body>
6161
{{> components/nav}}
@@ -66,6 +66,6 @@
6666
{{#if pontoon_enabled}}
6767
<script src="https://pontoon.rust-lang.org/pontoon.js"></script>
6868
{{/if}}
69-
<script src="/static/scripts/languages.js"></script>
69+
<script src="{{baseurl}}/static/scripts/languages.js"></script>
7070
</body>
7171
</html>

templates/components/nav.html.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<nav class="flex flex-row justify-center justify-end-l items-center flex-wrap ph2 pl3-ns pr3-ns pb3">
22
<div class="brand flex-auto w-100 w-auto-l self-start tc tl-l">
33
<a href="{{baseurl}}/" class="brand">
4-
<img class="v-mid ml0-l" alt="{{fluent "nav-logo-alt"}}" src="/static/images/rust-logo-blk.svg">
4+
<img class="v-mid ml0-l" alt="{{fluent "nav-logo-alt"}}" src="{{baseurl}}/static/images/rust-logo-blk.svg">
55
{{#unless is_landing}}
66
<span class="dib ml1 ml0-l">{{fluent "rust"}}</span>
77
{{/unless}}

templates/components/panels/domains.html.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="flex-none flex-l flex-row">
1717
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l">
1818
<div class="v-top tc-l">
19-
<img src="/static/images/cli.svg" alt="{{fluent "domains-cli-alt"}}"
19+
<img src="{{baseurl}}/static/images/cli.svg" alt="{{fluent "domains-cli-alt"}}"
2020
class="mw3 mw4-ns"/>
2121
</div>
2222
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -32,7 +32,7 @@
3232

3333
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
3434
<div class="v-top tc-l">
35-
<img src="/static/images/webassembly.svg" alt="{{fluent "domains-wasm-alt"}}"
35+
<img src="{{baseurl}}/static/images/webassembly.svg" alt="{{fluent "domains-wasm-alt"}}"
3636
class="mw3 mw4-ns"/>
3737
</div>
3838
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -48,7 +48,7 @@
4848

4949
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
5050
<div class="v-top tc-l">
51-
<img src="/static/images/networking.svg" alt="{{fluent "domains-net-alt"}}"
51+
<img src="{{baseurl}}/static/images/networking.svg" alt="{{fluent "domains-net-alt"}}"
5252
class="mw3 mw4-ns"/>
5353
</div>
5454
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -64,7 +64,7 @@
6464

6565
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
6666
<div class="v-top tc-l">
67-
<img src="/static/images/embedded.svg" alt="{{fluent "domains-embedded-alt"}}"
67+
<img src="{{baseurl}}/static/images/embedded.svg" alt="{{fluent "domains-embedded-alt"}}"
6868
class="mw3 mw4-ns"/>
6969
</div>
7070
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">

templates/components/what/cli/maintainable.html.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="flex flex-column flex-row-l">
88
<article class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l">
99
<header class="domain-icon">
10-
<img src="/static/images/cli-app-structure-2.svg" alt="{{fluent "cli-maintainable-errors-img-alt"}}" class="mw3 mw4-ns" />
10+
<img src="{{baseurl}}/static/images/cli-app-structure-2.svg" alt="{{fluent "cli-maintainable-errors-img-alt"}}" class="mw3 mw4-ns" />
1111
<h3 class="tc-l">{{fluent "cli-maintainable-errors-heading"}}</h3>
1212
</header>
1313
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -21,7 +21,7 @@
2121
</article>
2222
<article class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
2323
<header class="domain-icon">
24-
<img src="/static/images/cli-is-no-rocket-science.svg" alt="{{fluent "cli-maintainable-refactoring-img-alt"}}" class="mw3 mw4-ns" />
24+
<img src="{{baseurl}}/static/images/cli-is-no-rocket-science.svg" alt="{{fluent "cli-maintainable-refactoring-img-alt"}}" class="mw3 mw4-ns" />
2525
<h3 class="tc-l">{{fluent "cli-maintainable-refactoring-heading"}}</h3>
2626
</header>
2727
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">

templates/components/what/cli/pitch.html.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="flex flex-column flex-row-l">
1111
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l">
1212
<div class="v-top tc-l">
13-
<img src="/static/images/cli-rustc-approved.svg" alt="{{fluent "cli-pitch-solid-img-alt"}}" class="mw3 mw4-ns"/>
13+
<img src="{{baseurl}}/static/images/cli-rustc-approved.svg" alt="{{fluent "cli-pitch-solid-img-alt"}}" class="mw3 mw4-ns"/>
1414
</div>
1515
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
1616
<h3 class="tc-l">
@@ -27,7 +27,7 @@
2727

2828
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
2929
<div class="v-top tc-l">
30-
<img src="/static/images/cli-packaging.svg" alt="{{fluent "cli-pitch-ship-img-alt"}}"
30+
<img src="{{baseurl}}/static/images/cli-packaging.svg" alt="{{fluent "cli-pitch-ship-img-alt"}}"
3131
class="mw3 mw4-ns"/>
3232
</div>
3333
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -45,7 +45,7 @@
4545

4646
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
4747
<div class="v-top tc-l">
48-
<img src="/static/images/cli-configs.svg" alt="{{fluent "cli-pitch-config-img-alt"}}"
48+
<img src="{{baseurl}}/static/images/cli-configs.svg" alt="{{fluent "cli-pitch-config-img-alt"}}"
4949
class="mw3 mw4-ns"/>
5050
</div>
5151
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -65,7 +65,7 @@
6565
<div class="flex-none flex-l flex-row mt5-l">
6666
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l">
6767
<div class="v-top tc-l">
68-
<img src="/static/images/cli-man.svg" alt="{{fluent "cli-pitch-manuals-img-alt"}}"
68+
<img src="{{baseurl}}/static/images/cli-man.svg" alt="{{fluent "cli-pitch-manuals-img-alt"}}"
6969
class="mw3 mw4-ns"/>
7070
</div>
7171
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -83,7 +83,7 @@
8383

8484
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
8585
<div class="v-top tc-l">
86-
<img src="/static/images/cli-pipe.svg" alt="{{fluent "cli-pitch-machines-img-alt"}}"
86+
<img src="{{baseurl}}/static/images/cli-pipe.svg" alt="{{fluent "cli-pitch-machines-img-alt"}}"
8787
class="mw3 mw4-ns"/>
8888
</div>
8989
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -101,7 +101,7 @@
101101

102102
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l">
103103
<div class="v-top tc-l">
104-
<img src="/static/images/cli-logging.svg"
104+
<img src="{{baseurl}}/static/images/cli-logging.svg"
105105
alt="{{fluent "cli-pitch-logging-img-alt"}}"
106106
class="mw3 mw4-ns"/>
107107
</div>

templates/components/what/cli/production.html.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="testimonials">
88
<div class="testimonial flex-none flex-l">
99
<div class="w-100 w-30-l tc">
10-
<img src="/static/images/sentry-logo-black.svg" alt="{{fluent "cli-production-sentry-img-alt"}}"/>
10+
<img src="{{baseurl}}/static/images/sentry-logo-black.svg" alt="{{fluent "cli-production-sentry-img-alt"}}"/>
1111
</div>
1212
<div class="w-100 w-70-l" id="sentry-testimonial">
1313
<blockquote class="lh-title-ns">
@@ -35,7 +35,7 @@
3535
</p>
3636
</div>
3737
<div class="w-100 w-30-l tc">
38-
<img src="/static/images/habitat.svg" alt="{{fluent "cli-production-habitat-img-alt"}}"/>
38+
<img src="{{baseurl}}/static/images/habitat.svg" alt="{{fluent "cli-production-habitat-img-alt"}}"/>
3939
</div>
4040
</div>
4141
</div>

templates/components/what/embedded/get-started.html.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="flex flex-column flex-row-l">
88
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l" id="discovery-book">
99
<div class="v-top tc-l">
10-
<img src="/static/images/chip1.svg" alt="{{fluent "embedded-get-started-discovery-book-alt"}}"
10+
<img src="{{baseurl}}/static/images/chip1.svg" alt="{{fluent "embedded-get-started-discovery-book-alt"}}"
1111
class="mw3 mw4-ns"/>
1212
</div>
1313
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -20,7 +20,7 @@
2020
</div>
2121
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l" id="discovery-book">
2222
<div class="v-top tc-l">
23-
<img src="/static/images/chip2.svg" alt="{{fluent "embedded-get-started-embedded-rust-book-alt"}}"
23+
<img src="{{baseurl}}/static/images/chip2.svg" alt="{{fluent "embedded-get-started-embedded-rust-book-alt"}}"
2424
class="mw3 mw4-ns"/>
2525
</div>
2626
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">
@@ -33,7 +33,7 @@
3333
</div>
3434
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l w-100 mt5 mt2-l pl4-l" id="embedonomicon">
3535
<div class="v-top tc-l">
36-
<img src="/static/images/chip3.svg" alt="{{fluent "embedded-get-started-embedonomicon-alt"}}"
36+
<img src="{{baseurl}}/static/images/chip3.svg" alt="{{fluent "embedded-get-started-embedonomicon-alt"}}"
3737
class="mw3 mw4-ns"/>
3838
</div>
3939
<div class="v-top pl4 pl0-l pt0 pt3-l measure-wide-l flex-l flex-column-l flex-auto-l justify-between-l">

0 commit comments

Comments
 (0)