From 9607f1549dec70ff20fd7c68fcb90ea429f28027 Mon Sep 17 00:00:00 2001 From: AJ Date: Fri, 15 Apr 2016 22:11:07 -0500 Subject: [PATCH 1/2] Don't include the date in the draft filename. --- hyde.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hyde.el b/hyde.el index cf97716..b8e2cc4 100644 --- a/hyde.el +++ b/hyde.el @@ -311,7 +311,7 @@ user" (replace-regexp-in-string "_drafts" "" asset))))) ;; Move over the actual post (hyde/hyde-rename-file (concat dir "/" post-file-name) - (concat hyde-posts-dir "/" post-file-name)))) + (concat hyde-posts-dir "/" (format-time-string "%Y-%m-%d-") post-file-name)))) (hyde/vc-commit hyde-home '() (concat "Promoting " post-file-name)) @@ -337,7 +337,6 @@ user" (interactive "MEnter post title: ") (let ((post-file-name (expand-file-name (format "%s/%s/%s.markdown" hyde-home hyde-drafts-dir (concat - (format-time-string "%Y-%m-%d-") (downcase (replace-regexp-in-string " " "_" title)))))) (hyde-buffer (current-buffer))) (save-excursion From ebe64439d042c6688f1ff98d85782a47cf0d3138 Mon Sep 17 00:00:00 2001 From: AJ Date: Fri, 15 Apr 2016 22:18:15 -0500 Subject: [PATCH 2/2] Do not include date in draft yaml --- hyde.el | 1 - 1 file changed, 1 deletion(-) diff --git a/hyde.el b/hyde.el index b8e2cc4..6790981 100644 --- a/hyde.el +++ b/hyde.el @@ -344,7 +344,6 @@ user" (insert "---\n") (insert "layout: post\n") (insert (format "title: \"%s\"\n" title)) - (insert (format "date: \"%s\"\n" (format-time-string "%Y-%m-%d %H:%M:%S %z"))) (dolist (l hyde-custom-params) (insert (format "%s: %s\n" (first l)