summaryrefslogtreecommitdiff
path: root/latest-post.sh
diff options
context:
space:
mode:
Diffstat (limited to 'latest-post.sh')
-rwxr-xr-xlatest-post.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/latest-post.sh b/latest-post.sh
new file mode 100755
index 0000000..b72841b
--- /dev/null
+++ b/latest-post.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+postsDir=static/src/_posts
+
+echo $postsDir/$(ls -1 static/src/_posts | sort -n | tail -n1)