Skip to content

Commit

Permalink
Update new post time generator
Browse files Browse the repository at this point in the history
  • Loading branch information
niclake committed Jan 13, 2025
1 parent cce101f commit e089fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title=$(echo "$1" | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
posts="$HOME/github/niclake.github.io/src/posts"
year=$(date +%Y)
date=$(date +%Y-%m-%d)
time=$(date +%H:%M:%S)
time=$(date -u -v+30M +%H:%M:%S)

cp $posts/_PostTemplate.md $posts/$year/$date-$title.md
sed -i '' -e "s/TITLE/$rawTitle/g" $posts/$year/$date-$title.md
Expand Down

0 comments on commit e089fca

Please sign in to comment.