diff --git a/test/setup-ox-hugo.el b/test/setup-ox-hugo.el index 7b807cf..10990a7 100644 --- a/test/setup-ox-hugo.el +++ b/test/setup-ox-hugo.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2018-09-05 17:10:05 kmodi> +;; Time-stamp: <2018-09-05 15:53:44 kmodi> ;; Setup to export Org files to Hugo-compatible Markdown using ;; `ox-hugo' in an "emacs -Q" environment. @@ -209,6 +209,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") + ;; Allow setting few vars in Local Variables in the test files. (put 'org-hugo-auto-set-lastmod 'safe-local-variable 'booleanp) (put 'org-hugo-suppress-lastmod-period 'safe-local-variable 'floatp) 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.