Skip to content

Commit ce130fb

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

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

theme/extra.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/* Ferris into the right bottom side */
4343
.info::after {
4444
content: "";
45-
background-image: url("/images/ferris-love.png");
45+
background-image: url("../../images/ferris-love.png");
4646
background-size: contain;
4747
background-repeat: no-repeat;
4848
width: 5rem;
@@ -54,11 +54,11 @@
5454
}
5555

5656
.info.ferris-doubt::after {
57-
background-image: url("/images/ferris-doubt.svg");
57+
background-image: url("../../images/ferris-doubt.svg");
5858
}
5959

6060
.info.ferris-love::after {
61-
background-image: url("/images/ferris-love.png");
61+
background-image: url("../../images/ferris-love.png");
6262
}
6363

6464
.info.important {
@@ -67,7 +67,7 @@
6767
}
6868

6969
.info.important::before {
70-
background-image: url("/images/important.svg");
70+
background-image: url("../../images/important.svg");
7171
fill: #986ee2;
7272
color: #986ee2;
7373
border-color: #986ee2;

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 }}/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 }}/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 }}/css/variables.css">
43+
<link rel="stylesheet" href="{{ path_to_root }}/css/general.css">
44+
<link rel="stylesheet" href="{{ path_to_root }}/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 }}/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 }}/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 }}/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 }}/highlight.css">
57+
<link rel="stylesheet" href="{{ path_to_root }}/tomorrow-night.css">
58+
<link rel="stylesheet" href="{{ path_to_root }}/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 }}/theme/extra.css">
61+
<link rel="stylesheet" href="{{ path_to_root }}/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)