Skip to content

Commit 5fd3bdf

Browse files
committed
minor error fixes related to hugo function
1 parent 28cc755 commit 5fd3bdf

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

layouts/404.html

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="x-ua-compatible" content="ie=edge" />
6+
<title>Page Not Found</title>
7+
<meta name="description" content="" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1" />
39

4-
<head>
5-
<meta charset="utf-8">
6-
<meta http-equiv="x-ua-compatible" content="ie=edge">
7-
<title>Page Not Found</title>
8-
<meta name="description" content="">
9-
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
<!-- CSS-->
11+
{{ if .hugo.IsServer }} {{ $style := resources.Get "scss/style.scss" |
12+
resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
13+
"css/style.css" "enableSourceMap" true) }}
14+
<link rel="stylesheet" href="{{ ($style).RelPermalink }}" />
15+
{{ else }} {{ $style := resources.Get "scss/style.scss" |
16+
resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
17+
"css/style.css" "enableSourceMap" false) }}
18+
<link
19+
rel="stylesheet"
20+
href="{{ ($style | minify | fingerprint).RelPermalink }}"
21+
/>
22+
{{ end }}
23+
</head>
1024

11-
<!-- CSS-->
12-
{{ if .Site.IsServer }}
13-
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
14-
"css/style.css" "enableSourceMap" true) }}
15-
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
16-
{{ else }}
17-
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
18-
"css/style.css" "enableSourceMap" false) }}
19-
<link rel="stylesheet" href="{{ ($style | minify | fingerprint).RelPermalink }}">
20-
{{ end }}
21-
22-
</head>
23-
24-
<body>
25-
<div id="wrapper" class="wrapper">
26-
27-
<div class="container pt-9 pb-9 pt-md-13 pb-md-13">
28-
<div class="row justify-content-center align-content-between">
29-
<div class="col-9 text-center">
30-
<h1 class="display-1 text-primary mb-4">Page not found</h1>
25+
<body>
26+
<div id="wrapper" class="wrapper">
27+
<div class="container pt-9 pb-9 pt-md-13 pb-md-13">
28+
<div class="row justify-content-center align-content-between">
29+
<div class="col-9 text-center">
30+
<h1 class="display-1 text-primary mb-4">
31+
Page not found
32+
</h1>
33+
</div>
34+
<div class="col-9 text-center mb-2">
35+
<a href="/" class="btn btn-primary">Home</a>
36+
</div>
37+
</div>
38+
</div>
3139
</div>
32-
<div class="col-9 text-center mb-2">
33-
<a href="/" class="btn btn-primary">Home</a>
34-
</div>
35-
</div>
36-
</div>
37-
38-
</div>
39-
</body>
40-
41-
</html>
40+
</body>
41+
</html>

0 commit comments

Comments
 (0)