* .travis.yml
- Set the time-zone to America/New_York so that the time stamps (with
zone) match with those in the reference md files.
* Makefile
- Do a detailed diff between files.. don't use -q/--brief
- Switch to org-plus-contrib as (package-installed-p 'org) will always
eval to non-nil.
Fixes https://github.com/kaushalmodi/ox-hugo/issues/72
Added a new option called HUGO_PRESERVE_FILLING that does what I
actually wanted preserve-breaks to do. This option is enabled by
default, but can be changed using org-hugo-preserve-filling option.
Add org-hugo-external-file-extensions-allowed-for-copying,
org-hugo-default-static-subdirectory-for-externals.
Copy external files to Hugo static only if they are newer or don't
exist in the destination dir.
Earlier, the images/ directory was given too much prominence... all
users might not have just an "images/" dir in the "static/" dir. A
user could have multiple dirs inside their static/ dir.. but earlier
the rewrite only used to happen to static/<HUGO_STATIC_IMAGE>. That
did not look right.
This commit fixes that.
Now ox-hugo tries to be smarter in figuring out where to copy the
outside-Hugo-static-dir files to.
The order of the arguments in this function are also swapped to match
that of plist-get.
Now org-hugo--plist-get-true-p can be used to replace plist-get when
getting values of *only* boolean keys.
- Use org-hugo--plist-get-true-p instead of org-string-nw-p to get the
value of :hugo-auto-set-lastmod key
TIL about Org Special Properties [ (org) Special properties ]
The earlier caching of org-hugo--tags-list and
org-hugo--categories-list outside the call to org-hugo-export-to-md
can now be replaced with the below call inside:
(org-entry-get (point) "ALLTAGS")