Enable the default Creator test

master
Kaushal Modi 8 years ago
parent 907a409701
commit 758ab72309
  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 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

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