File tree 3 files changed +29
-1
lines changed
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ .not-found {
2
+ position : absolute;
3
+ top : 0 ; left : 0 ; right : 0 ; bottom : 0 ;
4
+ display : flex;
5
+ flex-direction : column;
6
+ align-items : center;
7
+ justify-content : center;
8
+ font-size : 1.3rem ;
9
+ font-weight : 500 ;
10
+ text-align : center;
11
+ color : var (--secondary );
12
+ gap : 2.5rem ;
13
+ }
Original file line number Diff line number Diff line change
1
+ {{ define "title" }}404{{ end }}
2
+ {{ define "main" }}
3
+ < div class ="not-found ">
4
+ < h1 > Page not found</ h1 >
5
+ < p > Sorry, the requested page could not be found.</ p >
6
+ </ div >
7
+ {{ end }}
Original file line number Diff line number Diff line change 8
8
{{- end }}
9
9
10
10
{{- /* Title */}}
11
- < title > {{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ site.Title }}</ title >
11
+ < title >
12
+ {{- if eq .Kind "404" -}}
13
+ 404: Page not found | {{ .Site.Title }}
14
+ {{- else if and (not .IsHome) .Title -}}
15
+ {{ .Title }} | {{ .Site.Title }}
16
+ {{- else -}}
17
+ {{ .Site.Title }}
18
+ {{- end -}}
19
+ </ title >
12
20
13
21
{{- /* Meta */}}
14
22
{{- if .IsHome }}
You can’t perform that action at this time.
0 commit comments