Update new post handling
authorJoerg Jaspert <joerg@debian.org>
Tue, 8 Mar 2016 21:56:22 +0000 (22:56 +0100)
committerJoerg Jaspert <joerg@debian.org>
Tue, 8 Mar 2016 21:56:22 +0000 (22:56 +0100)
Rakefile
_layouts/_post.txt
_rakeconfig.yml

index ab563e2..9bd6b60 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -15,7 +15,7 @@ CONFIG = YAML.load_file("_rakeconfig.yml")
 
 # Get and parse the date
 DATE = Time.now.strftime("%Y-%m-%d")
-TIME = Time.now.strftime("%H:%M:%S")
+TIME = Time.now.strftime("%H:%M:%S %z")
 POST_TIME = DATE + ' ' + TIME
 
 # Directories
@@ -50,7 +50,7 @@ end
 
 # Save the file with the title in the YAML front matter
 def write_file(content, title, directory, filename)
-  parsed_content = "#{content.sub("title:", "title: \"#{title}\"")}"
+  parsed_content = "#{content.sub("title:", "title: #{title}")}"
   parsed_content = "#{parsed_content.sub("date:", "date: '#{POST_TIME}'")}"
   File.write("#{directory}/#{filename}", parsed_content)
   puts "#{filename} was created in '#{directory}'."
index 7dc4ddb..bb276fe 100644 (file)
@@ -1,13 +1,18 @@
 ---
 layout: post
 title:
-subtitle:
 description:
 image:
 permalink:
-published: false
 categories:
--
+- debconf
+- debian
+- ftpmaster
+- personal
+- spi
+- tech
+- other
+alias:
 tags:
 -
 date:
index a496509..2fa4435 100644 (file)
@@ -4,6 +4,6 @@ post:
 page:
   template: _layouts/_page.txt
   extension: md
-editor: emacsclient
+editor: emacsclient -n
 git:
   branch: master