1 2 3 4 5 6 7
#!/usr/bin/zsh echo "importing $1..." slug=${1:t:r} echo "Post: ${slug}" path="content/blog/${slug}" /usr/bin/mkdir ${path} /usr/bin/cp $1 ${path}/index.md