Including images in a markdown

Hi! In a section of my markdown, I’d like to do something like:

{{ $files := readDir /static/gallery }}
{{ range $files }}  
<figure><img src="{{$url}}/{{.Name | urlize }}"></figure> 
{{ end }}

But it doesn’t work of course when I try. I am not sure what I’m supposed to do here.
Create a shortcode? Move the content a layouts/mypage.html instead?

Use inline shortcodes.

1 Like

Thank you! The syntax is really gnarly. I don’t understand the point of it.

{{< couldbeanything.inline >}}
Go template
{{< /couldbeanything.inline >}}

I made this thing with fancybox as gallery viewer.
my sample tamplete is here:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.