Skip to content

Commit 8fbb33c

Browse files
committed
hugo build
1 parent 35381c2 commit 8fbb33c

File tree

5 files changed

+7
-1552
lines changed

5 files changed

+7
-1552
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14.2
1+
20.11.1

layouts/_default/single.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@
2222

2323
<h1 class="text-4xl text-white mb-2">{{ .Title }}</h1>
2424

25-
{{ $date := .Params.date.Format "Jan 2, 2006" }}
2625
{{ if .Params.author }}
2726
<p class="text-sm text-gray-300">
2827
By {{ .Params.author }}
2928
{{ if (gt .Params.date 0) }}
30-
on {{ $date }}
29+
on {{ time.Format "January 2, 2006" .Params.date }}
3130
{{ end }}
3231
</p>
3332
{{ end }}
3433

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) }}
3735
<p class="text-sm text-gray-300">
38-
Last updated on {{ $lastmod }}
36+
Last updated on {{ time.Format "January 2, 2006" .Params.lastmod }}
3937
</p>
4038
{{ end }}
4139
</div>

layouts/partials/header.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>
88
{{if eq .Title .Site.Title }}
9-
{{ if $.Paginator }}
9+
{{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
1010
{{ if gt $.Paginator.PageNumber 1 }}
1111
{{ title .Title }} Pg. {{ $.Paginator.PageNumber }}
1212
{{ else }}
@@ -16,7 +16,7 @@
1616
{{ title .Title }}
1717
{{ end }}
1818
{{ else }}
19-
{{ if $.Paginator }}
19+
{{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
2020
{{ if gt $.Paginator.PageNumber 1 }}
2121
{{ title .Title }} Pg. {{ $.Paginator.PageNumber }} | Boot.dev
2222
{{ else }}
@@ -42,7 +42,7 @@
4242
{{ end }}
4343
{{ end }}
4444

45-
{{- if $.Paginator -}}
45+
{{ if or (eq .Kind "home") (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "taxonomyTerm") }}
4646
{{- if $.Paginator.HasPrev -}}
4747
<link rel="prev" href="{{ $.Paginator.Prev.URL | absURL }}" />
4848
{{- end -}}

test.c

-6
This file was deleted.

0 commit comments

Comments
 (0)