error calling Concat: slice []interface {} not supported in concat #1318
Unanswered
coquinnsky
asked this question in
Q&A
Replies: 3 comments
-
|
Im having the same problem with current version of Hugo (v0.114.0+extended) and Docsy master. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Did you find a solution for your problem? I'm encountering the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Unfortunately I moved on from that project. I've asked a previous colleague about it but he also doesn't remember, sorry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When cloning this theme into our existing site, the js files in scripts.html can't be concatenated.
/hugo/themes/docsy/layouts/partials/scripts.html:68:107": execute of template failed: template: partials/scripts.html:68:107: executing "partials/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
I've tried using module mounts as suggested in some other forums but can't seem to overcome this.
config
[module]
[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = "themes/docsy/assets/js"
target = "assets/js"
line that causes issue
{{ $js := (slice $jsBs $jsBase $jsAnchor $jsSearch $jsMermaid $jsPlantuml $jsMarkmap $jsDrawio) | resources.Concat "js/main.js" -}}
Beta Was this translation helpful? Give feedback.
All reactions