summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-01 14:58:46 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-01 14:58:46 +0200
commit66c3504bd673571df73fde6df00d18636e01b6c3 (patch)
treea448153166f428f267bf6c6cbef377806590c7d9
parent2102c125906c4f29f1a180d8cf5f4f5e7a8e1b4a (diff)
downloadrabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.tar.gz
rabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.tar.bz2
rabalderz-66c3504bd673571df73fde6df00d18636e01b6c3.zip
Add script to import from old blog.
-rwxr-xr-ximport7
1 files changed, 7 insertions, 0 deletions
diff --git a/import b/import
new file mode 100755
index 0000000..e399f96
--- /dev/null
+++ b/import
@@ -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