Skip to content

Commit ec48c61

Browse files
authored
Merge pull request #271 from berryp/issue/404-has-invalid-html
Fix invalid HTML in 404 template.
2 parents 1e3c00d + 8571137 commit ec48c61

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

layouts/404.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
66
<title>{{ .Scratch.Get "title" }}</title>
7-
7+
88
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
99
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
1010
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
@@ -34,8 +34,6 @@
3434
{{ partial "custom-header.html" . }}
3535
</head>
3636

37-
<body>
38-
3937
<body class="" data-url="/">
4038

4139
<section id="body" style="margin-left:0px;">
@@ -48,7 +46,7 @@ <h1>{{T "title-404"}}</h1>
4846
<p>{{T "message-404"}}</p>
4947
<p></p>
5048
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
51-
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></img></p>
49+
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></p>
5250
</div>
5351
</div>
5452

0 commit comments

Comments
 (0)