not-so-static anymore

master
Jay 2 years ago
parent 2fb634a162
commit be9436dac5

@ -2,6 +2,7 @@
title: '/about' title: '/about'
author: dewdude author: dewdude
layout: default layout: default
permalink: /about.php
--- ---
## A Brief History of Random ## A Brief History of Random

@ -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

Loading…
Cancel
Save