File tree 5 files changed +7
-1552
lines changed
5 files changed +7
-1552
lines changed Original file line number Diff line number Diff line change 1
- 16.14.2
1
+ 20.11.1
Original file line number Diff line number Diff line change 22
22
23
23
< h1 class ="text-4xl text-white mb-2 "> {{ .Title }}</ h1 >
24
24
25
- {{ $date := .Params.date.Format "Jan 2, 2006" }}
26
25
{{ if .Params.author }}
27
26
< p class ="text-sm text-gray-300 ">
28
27
By {{ .Params.author }}
29
28
{{ if (gt .Params.date 0) }}
30
- on {{ $ date }}
29
+ on {{ time.Format "January 2, 2006" .Params. date }}
31
30
{{ end }}
32
31
</ p >
33
32
{{ end }}
34
33
35
- {{ $lastmod := .Params.lastmod.Format "Jan 2, 2006" }}
36
- {{ if and (ne $lastmod $date) (gt .Params.lastmod .Params.date) }}
34
+ {{ if and (ne .Params.lastmod .Params.date) (gt .Params.lastmod .Params.date) }}
37
35
< p class ="text-sm text-gray-300 ">
38
- Last updated on {{ $ lastmod }}
36
+ Last updated on {{ time.Format "January 2, 2006" .Params. lastmod }}
39
37
</ p >
40
38
{{ end }}
41
39
</ div >
Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
7
< title >
8
8
{{if eq .Title .Site.Title }}
9
- {{ if $.Paginator }}
9
+ {{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
10
10
{{ if gt $.Paginator.PageNumber 1 }}
11
11
{{ title .Title }} Pg. {{ $.Paginator.PageNumber }}
12
12
{{ else }}
16
16
{{ title .Title }}
17
17
{{ end }}
18
18
{{ else }}
19
- {{ if $.Paginator }}
19
+ {{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
20
20
{{ if gt $.Paginator.PageNumber 1 }}
21
21
{{ title .Title }} Pg. {{ $.Paginator.PageNumber }} | Boot.dev
22
22
{{ else }}
42
42
{{ end }}
43
43
{{ end }}
44
44
45
- {{- if $.Paginator - }}
45
+ {{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
46
46
{{- if $.Paginator.HasPrev -}}
47
47
< link rel ="prev " href ="{{ $.Paginator.Prev.URL | absURL }} " />
48
48
{{- end -}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments