mediocre-blog/latest-post.sh

6 lines
104 B
Bash
Executable File

#!/bin/bash
postsDir=static/src/_posts
echo $postsDir/$(ls -1 static/src/_posts | sort -n | tail -n1)