I am creating an HTML file containing some notes exported from org mode. I would like to add all images from a folder into the HTML file generated i.e the images should display in the webpage when opened.
Is there a way to insert a bit of local Emacs-Lisp code in the org mode file such that on exporting to HTML, the code block expands to something a sequence of <img>
tags containing file names from the folder images
. (I guess I am looking for something like a kind of local macro expansion?)
To be precise I want something like
blah blah
blah blah
<<< Elisp code that expands to HTML inside Org file>>>
blah blah blah
blah blah
to be converted into
blah blah
blah blah
<figure>
<img src="./images/image1.png" width="300px" />
</figure>
<figure>
<img src="./images/image2.png" width="300px" />
</figure>
.
.
.
<figure>
<img src="./images/image700.png" width="300px" />
</figure>
blah blah blah
blah blah
Note that I don't want this expanded HTML gunk inside the org mode file itself, but inside the exported HTML file.