Skip to content

Commit ea42bd7

Browse files
committed
fix netlify build error (microcks#302)
* fix hugo.toml Signed-off-by: Vicky Besra <vickybesra2000@gmail.com> * fix Signed-off-by: Vicky Besra <vickybesra2000@gmail.com> --------- Signed-off-by: Vicky Besra <vickybesra2000@gmail.com>
1 parent 7bbe58c commit ea42bd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/_default/hugo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ theme = "microcks"
77
timeZone = "Europe/Paris" # frenchies
88

99
# post pagination
10-
pagination.pagerSize = 6 # see https://gohugo.io/extras/pagination/ as paginate is deprecated since Hugo version v0.128.0
10+
[pagination]
11+
pagerSize = 6 # see https://gohugo.io/extras/pagination/ as paginate is deprecated since Hugo version v0.128.0
1112
# post excerpt
1213
summaryLength = 10 # see https://gohugo.io/content-management/excerpts/
1314

layouts/shortcodes/figure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{- $u := urls.Parse (.Get "src") -}}
77
{{- $src := $u.String -}}
88
{{- if not $u.IsAbs -}}
9-
{{- with or (.Page.Resources.Get $u.Path) (resources.Get $u.Path) -}}
9+
{{- with or (.Page.Resources.GetMatch $u.Path) (resources.Get $u.Path) -}}
1010
{{- $src = .RelPermalink -}}
1111
{{- end -}}
1212
{{- end -}}

0 commit comments

Comments
 (0)