diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-01 14:58:46 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-01 14:58:46 +0200 |
commit | 66c3504bd673571df73fde6df00d18636e01b6c3 (patch) | |
tree | a448153166f428f267bf6c6cbef377806590c7d9 | |
parent | 2102c125906c4f29f1a180d8cf5f4f5e7a8e1b4a (diff) | |
download | rabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.tar.gz rabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.tar.bz2 rabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.zip |
Add script to import from old blog.
-rwxr-xr-x | import | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,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 |