Photography portfolio.
# pacman -S imagemagick
# apt install imagemagick
# brew install imagemagick
npm install
make -j8
make new
Give 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 /foo
Then run it through ./md
, for example in Vim, type:
:%!./md
It will turn the previous input into:
[![P0000001](/photos/hd/P0000001.jpg)](/photos/P0000001.md)
[![P0000002](/photos/hd/P0000002.jpg)](/foo)
[![P0000003](/photos/thumb/P0000003.jpg)](/foo)
make missing
This 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