Initial commit
This commit is contained in:
10
update-recent-blog-posts.sh
Executable file
10
update-recent-blog-posts.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
BASEDIR="$(dirname "${0}" | sed "s|^\.|${PWD}|")"
|
||||
|
||||
source "${BASEDIR}/website.conf"
|
||||
|
||||
|
||||
cat "${WEBROOT}/_markdown/blog.md" | sed 's|^5\..*||; s|^4\.|5\.|; s|^3\.|4\.|; s|^2\.|3\.|; s|^1\.|1\. \n2\.|' | tee "${WEBROOT}/_markdown/blog.md" &> /dev/null
|
Reference in New Issue
Block a user