main
Sufyaan 4 months ago
parent 1e32f9e536
commit 8eb31941c0

@ -1,9 +1,8 @@
#!/bin/sh
#!/bin/bash
# Script for new posts
FILE=/tmp/sufyaan-website-post$(date +%d).md
ROOT=~/docs/sys/gits/personal/sufyaan-website
echo -ne "- [ ] Linux\n- [ ] Software\n- [ ] Technology\n- [ ] Design\n- [ ] Guides\n- [ ] Cars\n- [ ] Literary\n- [ ] Updates\n- [ ] Other" > $FILE
nvim $FILE
@ -18,7 +17,6 @@ read -p "Enter reading time: " READ
read -p "Enter previous post: " PREVPOST
EMAIL=$(echo $TITLE | sed 's/ /%20/g')
cd $ROOT
mkdir -p $URL
cp template.html $URL/index.html

Loading…
Cancel
Save