Skip to content

Commit 0830311

Browse files
authored
Merge pull request #972 from Manishearth/404page
Fix 404 page
2 parents 3eaac72 + d031622 commit 0830311

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ fn not_found(req: &Request) -> Template {
304304

305305
fn not_found_locale(lang: String) -> Template {
306306
let page = "404";
307-
let context = Context::new("404".into(), "404-page-title", false, (), lang);
307+
let context = Context::new("404".into(), "error404-page-title", false, (), lang);
308308
Template::render(page, &context)
309309
}
310310

templates/404.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
44
<div class="flex-none flex-l mt5 mb5 tc tl-l">
55
<div class="w-70-l w-100">
6-
<h1>{{fluent "error"404-page-title}}</h1>
7-
<h2 class="subtitle">{{fluent "error"404-subtitle}}</h2>
6+
<h1>{{fluent "error404-page-title"}}</h1>
7+
<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 "error"404-img-alt}}">
10+
<img id="ferris-error" src="/static/images/ferris-error.png" alt='{{fluent "error404-img-alt"}}'>
1111
</div>
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)