diff --git a/deploy b/deploy new file mode 100755 index 0000000..6fe957d --- /dev/null +++ b/deploy @@ -0,0 +1,10 @@ +#!/bin/bash + +# Add the following to ~/.ssh/config: +#Host mumblings +# Hostname dane.mattcen.com +# User mumbler +# Port 54322 + +hugo --gc --cleanDestinationDir +rsync -aiP public/ mumblings:hugo/ --delete diff --git a/newpost b/newpost new file mode 100755 index 0000000..14fc4b8 --- /dev/null +++ b/newpost @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +post_title=$* +post_title_uri=${post_title,,} +post_title_uri=${post_title_uri//[[:punct:]]/} +post_title_uri=${post_title_uri// /\-} + +post_path=content/posts/$(date +%F)-${post_title_uri}.md + +hugo new "$post_path"