Skip to content

Commit 6db3b64

Browse files
committed
fix: update base URL handling and correct paths for assets in index.hbs
1 parent 11f71f3 commit 6db3b64

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

theme/index.hbs

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
{{/if}}
1010
{{#if base_url}}
1111
<base href="{{ base_url }}">
12-
{{else}}
13-
<base href="{{ base_url }}/es">
1412
{{/if}}
1513

1614

@@ -36,31 +34,31 @@
3634
<meta property="og:image" content="https://rustlang-es.org/rust-book-es/img/open-graph.png">
3735

3836
{{#if favicon_svg}}
39-
<link rel="icon" href="{{ path_to_root }}favicon.svg">
37+
<link rel="icon" href="{{ path_to_root }}/{{ language }}/favicon.svg">
4038
{{/if}}
4139
{{#if favicon_png}}
42-
<link rel="shortcut icon" href="{{ path_to_root }}favicon.png">
40+
<link rel="shortcut icon" href="{{ path_to_root }}/{{ language }}/favicon.png">
4341
{{/if}}
44-
<link rel="stylesheet" href="{{ path_to_root }}css/variables.css">
45-
<link rel="stylesheet" href="{{ path_to_root }}css/general.css">
46-
<link rel="stylesheet" href="{{ path_to_root }}css/chrome.css">
42+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/css/variables.css">
43+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/css/general.css">
44+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/css/chrome.css">
4745
{{#if print_enable}}
48-
<link rel="stylesheet" href="{{ path_to_root }}css/print.css" media="print">
46+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/css/print.css" media="print">
4947
{{/if}}
5048

5149
<!-- Fonts -->
52-
<link rel="stylesheet" href="{{ path_to_root }}FontAwesome/css/font-awesome.css">
50+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/FontAwesome/css/font-awesome.css">
5351
{{#if copy_fonts}}
54-
<link rel="stylesheet" href="{{ path_to_root }}fonts/fonts.css">
52+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/fonts/fonts.css">
5553
{{/if}}
5654

5755
<!-- Highlight.js Stylesheets -->
58-
<link rel="stylesheet" href="{{ path_to_root }}highlight.css">
59-
<link rel="stylesheet" href="{{ path_to_root }}tomorrow-night.css">
60-
<link rel="stylesheet" href="{{ path_to_root }}ayu-highlight.css">
56+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/highlight.css">
57+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/tomorrow-night.css">
58+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/ayu-highlight.css">
6159

62-
<link rel="stylesheet" href="{{ path_to_root }}theme/extra.css">
63-
<link rel="stylesheet" href="{{ path_to_root }}theme/pagetoc.css">
60+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/theme/extra.css">
61+
<link rel="stylesheet" href="{{ path_to_root }}/{{ language }}/theme/pagetoc.css">
6462
<!-- Custom theme stylesheets -->
6563
{{#each additional_css}}
6664
<link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}">

0 commit comments

Comments
 (0)