From 33fed240aa116666ad7bf3ae32f89142a0d77023 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 30 Jun 2017 18:50:09 -0400 Subject: [PATCH] Left over metadata -> front matter refactoring --- README.org | 4 ++-- ox-hugo.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 836b71c..30e9998 100644 --- a/README.org +++ b/README.org @@ -52,7 +52,7 @@ This package might evolve into a multi-.el project. - [ ] fix table horizontal rule generator, which currently adds an additional syntax-breaking space in each cell - [ ] Parse org heading to set the hugo post title in fm -- [-] Clean up and formalize metadata fields +- [-] Clean up and formalize the front matter fields - [ ] Parse org tags to set the hugo post tags/categories in fm. - [X] Use title to auto-generate file name string. - [ ] Set post date to be the same as the export date *unless* @@ -64,7 +64,7 @@ This package might evolve into a multi-.el project. - [X] in image links, copy images to static dir and rewrite link target - [ ] Use =org-capture= to generate new posts in a pre-defined "blog posts org file". That step should also auto-insert the meta-data - needed for hugo frontmatter as needed -- like the post's initial + needed for hugo front matter as needed -- like the post's initial /draft/ state. - [ ] Different faces for the post heading based on its /draft/ state and /futureness/ (if /publishdate/ is newer than today). (this seems diff --git a/ox-hugo.el b/ox-hugo.el index 980d28a..1379703 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -65,7 +65,7 @@ This variable can be set to either `toml' or `yaml'." ;; (:filter-link . org-hugo-image-filter) ) - :options-alist '((:hugo-front-matter-format "HUGO_METADATA_FORMAT" nil org-hugo-front-matter-format) + :options-alist '((:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-tags "HUGO_TAGS" nil nil) (:hugo-categories "HUGO_CATEGORIES" nil nil) (:hugo-description "HUGO_DESCRIPTION" nil nil)