File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{{- define "main" }}
2
2
< article class ="content ">
3
3
< header >
4
- < h1 class ="post-title "> 404 — {{ $.Site .Params.missingContentMessage | default "Page not found..." }}</ h1 >
4
+ < h1 class ="post-title "> 404 — {{ site .Params.missingContentMessage | default "Page not found..." }}</ h1 >
5
5
</ header >
6
6
< p >
7
- < a href ="{{ "/" | absURL }}"> {{ $.Site .Params.missingBackButtonLabel | default "Back to home page" }} →</ a >
7
+ < a href ="{{ absURL "" }}"> {{ site .Params.missingBackButtonLabel | default "Back to home page" }} →</ a >
8
8
</ p >
9
9
</ article >
10
10
{{- end }}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
34
34
</ header >
35
35
36
36
{{- if .Params.Cover }}
37
- < img src ="{{ .Params.Cover | absURL }} " class ="post-cover " {{ with .Params.CoverAlt }}alt ="{{ . | plainify }} "{{ end }} />
37
+ < img src ="{{ absURL .Params.Cover }} " class ="post-cover " {{ with .Params.CoverAlt }}alt ="{{ . | plainify }} "{{ end }} />
38
38
{{- end }}
39
39
40
40
{{- if and (.Param "toc") (ne .TableOfContents "< nav id =\ "TableOfContents\"> </ nav > ") }}
Original file line number Diff line number Diff line change 11
11
12
12
{{- /* Custom CSS to override theme properties (/static/style.css) */}}
13
13
{{- if (fileExists "static/style.css") }}
14
- < link rel ="stylesheet " href ="{{ "style.css " | absURL }}" />
14
+ < link rel ="stylesheet " href ="{{ absURL "style.css " }}" />
15
15
{{- end }}
You can’t perform that action at this time.
0 commit comments