Photography portfolio.
# pacman -S imagemagick
# apt install imagemagick
# brew install imagemagick
npm installmake -j8make newGive it a title, slug and date, drop your photos in the directory that
opens, and let the script generate the Markdown file for you and update
the index.md.
If in a Markdown file you want to quickly reference photos by their name, you can write the following:
hd P0000001
ahd P0000002 /foo
athumb P0000003 /fooThen run it through ./md, for example in Vim, type:
:%!./md
It will turn the previous input into:
[](/photos/P0000001.md)
[](/foo)
[](/foo)make missingThis will list the pictures that are referenced from your Markdown files
but not present in the dist/photos directory.
You can add the missing photos into the dist/photos/full directory.
Sometimes, you might import photos that you don't refer to in any Markdown file, and they end up being orphaned and taking space for nothing. You can identify them by doing:
make orphans