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.
- Now the <!--listend--> and <!--quoteend--> comments are not inserted
unless needed.
- Fix the "example-site/content/posts/equation-latex-frag.md" example.
User can still override this default by using:
#+OPTIONS: ':t
The default smart-quoting by Blackfriday is good enough. As a side the
Markdown files are much more human-readable with the
single and double quote characters used instead of rsquo, lsquo, rdquo
and ldquo.
* ox-hugo.el (org-hugo-link): Update the type=="file" case in the
final t case of the cond. Now the file:// prefix is not added if
the raw-path begins with "/images/" (or "/HUGO_STATIC_IMAGES/").
Cleanup:
- Move raw-path to the first let form in org-hugo-link; no need to get
that value multiple times in the fn.
- Get value of :hugo-static-images from info
- Replace occurrences of:
(if (not foo) bar
baz)
with
(if foo
baz
bar)
- Misc code consistency edits