Skip to content

Commit f23301b

Browse files
committed
Fix error when building user guide with latest hugo version 0.141.0
1 parent e6d9477 commit f23301b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/scripts/mermaid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ $version := .Site.Params.mermaid.version | default "latest" -}}
22

33
{{ $cdnurl := printf "https://cdn.jsdelivr.net/npm/mermaid@%s/dist/mermaid.esm.min.mjs" $version -}}
4-
{{ with resources.GetRemote $cdnurl -}}
4+
{{ with try (resources.GetRemote $cdnurl) -}}
55
{{ with .Err -}}
66
{{ errorf "Could not retrieve mermaid script from CDN. Reason: %s." . -}}
77
{{ end -}}

0 commit comments

Comments
 (0)