Art

3D

doughnut gallery nightmaretubbie-face nightmaretubbie nine-eleven

2D

bernie daddy-penguin feelings meme-thing monkey

Code I used to construct this .md file:

#/bin/sh
#

IMAGE_DIR=${PWD}/billthewizard.wiki/images;
MARKDOWN_DIR=${PWD}/billthewizard.wiki/;

echo "# Art" > Art.md;
echo "## 3D" >> Art.md
for f in ${IMAGE_DIR}/3d/*; do
    [[ -e $f ]] || continue
    \cp $f ${IMAGE_DIR}
    echo \[\]$f | cut -d/ -f 9 >> Art.md
done
echo "## 2D" >> Art.md
for f in ${IMAGE_DIR}/2d/*; do
    [[ -e $f ]] || continue
    echo $f | cut -d/ -f 9 >> Art.md
    \cp $f ${IMAGE_DIR}
done

sed -i 's/\(.*\).jpg/![\1](images\/\0)/' Art.md;

sed -i 's/\(.*\).png/![\1](images\/\0)/' Art.md;

echo '### Code I used to construct this .md file:' >> Art.md
echo \`\`\`>> Art.md
cat ./image-page.sh >> Art.md
echo \`\`\` >> Art.md

mv Art.md ${MARKDOWN_DIR};