Skip to content

Commit

Permalink
Fix error when building user guide with latest hugo version 0.141.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jan 16, 2025
1 parent e6d9477 commit f23301b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/scripts/mermaid.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $version := .Site.Params.mermaid.version | default "latest" -}}

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

0 comments on commit f23301b

Please sign in to comment.