Skip to content

Commit ab5418e

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

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

theme/index.hbs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{#if base_url}}
1111
<base href="{{ base_url }}">
1212
{{else}}
13-
<base href="{{ base_url }}/es">
13+
<base href="{{ path_to_root }}/{{ language }}/">
1414
{{/if}}
1515

1616

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

3838
{{#if favicon_svg}}
39-
<link rel="icon" href="{{ path_to_root }}favicon.svg">
39+
<link rel="icon" href="{{ path_to_root }}{{ language }}/favicon.svg">
4040
{{/if}}
4141
{{#if favicon_png}}
42-
<link rel="shortcut icon" href="{{ path_to_root }}favicon.png">
42+
<link rel="shortcut icon" href="{{ path_to_root }}{{ language }}/favicon.png">
4343
{{/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">
44+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/css/variables.css">
45+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/css/general.css">
46+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/css/chrome.css">
4747
{{#if print_enable}}
48-
<link rel="stylesheet" href="{{ path_to_root }}css/print.css" media="print">
48+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/css/print.css" media="print">
4949
{{/if}}
5050

5151
<!-- Fonts -->
52-
<link rel="stylesheet" href="{{ path_to_root }}FontAwesome/css/font-awesome.css">
52+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/FontAwesome/css/font-awesome.css">
5353
{{#if copy_fonts}}
54-
<link rel="stylesheet" href="{{ path_to_root }}fonts/fonts.css">
54+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/fonts/fonts.css">
5555
{{/if}}
5656

5757
<!-- 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">
58+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/highlight.css">
59+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/tomorrow-night.css">
60+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/ayu-highlight.css">
6161

62-
<link rel="stylesheet" href="{{ path_to_root }}theme/extra.css">
63-
<link rel="stylesheet" href="{{ path_to_root }}theme/pagetoc.css">
62+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/theme/extra.css">
63+
<link rel="stylesheet" href="{{ path_to_root }}{{ language }}/theme/pagetoc.css">
6464
<!-- Custom theme stylesheets -->
6565
{{#each additional_css}}
6666
<link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}">

0 commit comments

Comments
 (0)