Hi there,
I am trying to create a source code listing using the highlight shortcode. Copying the code from the source files duplicates it, leading to possible diversions between the listed files and the web site. Is there a way to use the content of a file as the “body” of a highlight block?
Thanks,
Mirko.
You can combine it with the readFile
func. There are examples in the Hugo Docs site source doing this, I think.
Great, thanks. I will have a look.