|
|
@ -19,7 +19,7 @@ title=$@
|
|
|
|
t=${title,,}
|
|
|
|
t=${title,,}
|
|
|
|
fd=$(date +'%Y/%^b/%d')
|
|
|
|
fd=$(date +'%Y/%^b/%d')
|
|
|
|
# Let's write the front matter to our temp file.
|
|
|
|
# Let's write the front matter to our temp file.
|
|
|
|
printf -- "---\ntitle: $title\nlayout: post\ndate: $pd $pt\npermalink:/$category/$fd-$t.php\nexcerpt_separator: <!--more-->\n---\n\n" >> $file
|
|
|
|
printf -- "---\ntitle: $title\nlayout: post\ndate: $pd $pt\npermalink: /$category/$fd-$t.php\nexcerpt_separator: <!--more-->\n---\n\n" >> $file
|
|
|
|
# Write the post in whatever editor you want.
|
|
|
|
# Write the post in whatever editor you want.
|
|
|
|
nano + $file
|
|
|
|
nano + $file
|
|
|
|
|
|
|
|
|
|
|
|