mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
Fix invalid HTML in 404 template.
Fixes https://github.com/matcornic/hugo-theme-learn/issues/270
This commit is contained in:
parent
18212e6759
commit
85711377a9
1 changed files with 2 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<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}}
|
<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}}
|
||||||
<title>{{ .Scratch.Get "title" }}</title>
|
<title>{{ .Scratch.Get "title" }}</title>
|
||||||
|
|
||||||
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||||
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
|
@ -35,8 +35,6 @@
|
||||||
{{ partial "custom-header.html" . }}
|
{{ partial "custom-header.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<body class="" data-url="/">
|
<body class="" data-url="/">
|
||||||
|
|
||||||
<section id="body" style="margin-left:0px;">
|
<section id="body" style="margin-left:0px;">
|
||||||
|
@ -49,7 +47,7 @@
|
||||||
<p>{{T "message-404"}}</p>
|
<p>{{T "message-404"}}</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
|
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
|
||||||
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></img></p>
|
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue