Nikola Photo Generating

Nikola Photo Generating

After putting the Photos into a gallery/dir1/dir2 folder.

You need to generate a list of image files in markdown format.

find galleries/2016/dir1/dir2/ | sed -e 's/^/![fn](\//g' -e 's/$/)/g'

The output will look like this

![fn](/galleries/2016/uk/wainstones/)
![fn](/galleries/2016/uk/wainstones//_DSC6089.jpg)
![fn](/galleries/2016/uk/wainstones//_DSC6092.jpg)
![fn](/galleries/2016/uk/wainstones//_DSC6093.jpg)
![fn](/galleries/2016/uk/wainstones//_DSC6098.jpg)
![fn](/galleries/2016/uk/wainstones//_DSC6099.jpg)

Just remove the '//' with a '/' and you are all set.