not-so-static anymore

master
Jay 2 years ago
parent 2fb634a162
commit be9436dac5

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

@ -19,7 +19,7 @@ title=$@
t=${title,,}
fd=$(date +'%Y/%^b/%d')
# 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.
nano + $file

Loading…
Cancel
Save