I struggle with using markdown inside a node (I hope I use the terms correctly). example: I’d like to use hugo’s support to highlight code via the in-built shortcode highlight (described in https://gohugo.io/extras/highlighting/). Directly including it in the index.html file does not work. other example: my index.html file contains a lot of content and I’d like to write the sections in markdown that can be included into the content after they are rendered.
is there a way to do this in hugo?
edit: my optimal setup would enable me to write a index.html file like this:
I guess I’m still confused by the distinction of file types. With your suggestion I actually can write *.html files in content using shortcodes. Can someone clarify for me what is and what is not content?
still, I don’t see how to solve my original problem using the /content/ folder approach:
can I use it similar to a partial?
what would solve my problem is if I could write a partial that can use a shortcode