Revert "Revert "Enable the default Creator test""

This reverts commit 59122d4640.
master
Kaushal Modi 8 years ago
parent 59122d4640
commit c57216a1e3
  1. 6
      test/setup-ox-hugo.el
  2. 2
      test/site/content-org/all-posts.org
  3. 4
      test/site/content/posts/default-creator.md

@ -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)

@ -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

@ -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.

Loading…
Cancel
Save