From 758ab72309c456796b9cd865d1166ab40a60dca0 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Wed, 5 Sep 2018 09:36:35 -0400 Subject: [PATCH] Enable the default Creator test --- test/setup-ox-hugo.el | 6 +++++- test/site/content-org/all-posts.org | 2 +- test/site/content/posts/default-creator.md | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/setup-ox-hugo.el b/test/setup-ox-hugo.el index 45f4b0c..236beda 100644 --- a/test/setup-ox-hugo.el +++ b/test/setup-ox-hugo.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2018-09-05 09:10:50 kmodi> +;; Time-stamp: <2018-09-05 09:35:49 kmodi> ;; Setup to export Org files to Hugo-compatible Markdown using ;; `ox-hugo' in an "emacs -Q" environment. @@ -206,6 +206,10 @@ Fake current time: 2100/12/21 00:00:00 (arbitrary)." (advice-add 'current-time :override #'ox-hugo-test/current-time-override) ;; (advice-remove 'current-time #'ox-hugo-test/current-time-override) +;; Override the default `org-hugo-export-creator-string' so that this +;; string is consistent in all ox-hugo tests. +(setq org-hugo-export-creator-string "Emacs + Org mode + ox-hugo") + (with-eval-after-load 'org ;; Allow multiple line Org emphasis markup ;; http://emacs.stackexchange.com/a/13828/115 diff --git a/test/site/content-org/all-posts.org b/test/site/content-org/all-posts.org index fc25dcb..b1dde4c 100644 --- a/test/site/content-org/all-posts.org +++ b/test/site/content-org/all-posts.org @@ -5130,7 +5130,7 @@ it is disabled using =:EXPORT_OPTIONS: title:nil=. This post will be exported without =author= in the front-matter because it is disabled using =:EXPORT_OPTIONS: author:nil=. ** Creator :creator:front_matter: -*** Default Creator :dont_export_during_make_test: +*** Default Creator :PROPERTIES: :EXPORT_DATE: 2017-12-01 :EXPORT_OPTIONS: creator:t diff --git a/test/site/content/posts/default-creator.md b/test/site/content/posts/default-creator.md index d485ab8..d373995 100644 --- a/test/site/content/posts/default-creator.md +++ b/test/site/content/posts/default-creator.md @@ -1,9 +1,9 @@ +++ title = "Default Creator" date = 2017-12-01 -tags = ["export-option", "creator", "front-matter", "dont-export-during-make-test"] +tags = ["export-option", "creator", "front-matter"] draft = false -creator = "Emacs 26.0.90 (Org mode 9.1.3 + ox-hugo)" +creator = "Emacs + Org mode + ox-hugo" +++ The front-matter for this post contains the default Creator string.