11 lines
233 B
Plaintext
11 lines
233 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
post_title=$*
|
||
|
post_title_uri=${post_title,,}
|
||
|
post_title_uri=${post_title_uri//[[:punct:]]/}
|
||
|
post_title_uri=${post_title_uri// /\-}
|
||
|
|
||
|
post_path=content/posts/$(date +%F)-${post_title_uri}.md
|
||
|
|
||
|
hugo new "$post_path"
|