Issue # 17
Setting class parameter Discussion
Setting alt parameter Reference
Setting title parameter Logo Setting image caption The image caption can be set in two ways.
Using the Org #+CAPTION keyword Using #+ATTR_HTML: :caption my caption The #+CAPTION is available will get the higher precedence. In the below image, caption is set using that:
Some text before image.
A unicorn!
Read more
This post should also be created in content/section-a/.
This post should be created in content/section-a/.
By using EXPORT_HUGO_TAGS in the property drawer, Org tags in the current headline (“this_tag_wont_apply”) and the inherited one (“alpha”, “beta”, “hyphenated-tag”, “super”) will get overridden.
When setting categories via the keyword #+HUGO+CATEGORIES or the subtree property EXPORT_HUGO_CATEGORIES, do not add the “@” prefix.
If user specifies tags to the post subtree headline, those tags get added to the set of default tags set in #+FILETAGS (and the ones inherited). For the inheritance of tags from parent headlines and #+FILETAGS to work, org-use-tag-inheritance needs to be set appropriately if changed from the default value of t. These tags are collected together and assigned to the Hugo tags front matter variable for this post.
When setting categories via Org-style tags, prefix the tags with “@”.
Read more
Test that indented source blocks export fine.
(defun small-shell () (interactive) (split-window-vertically) (other-window 1) (shrink-window (- (window-height) 12)) (ansi-term)) More tests! List item 1
(message "I am in list at level-1 indentation") List item 1.1
(message "I am in list at level-2 indentation") List item 1.1.1
(message "I am in list at level-3 indentation") List item 2.1
(message "I am in list back at level-2 indentation") List item 2
Read more
Sub-heading 1 This is a special case where:
A post has a sub-heading as the first line in its body, and That sub-heading has a tag too! The passing case for this test would be that the unexpected_tag does not leak into the post’s front-matter.
The “TODO” state of this heading (which is nil) should be ignored If a post has the DRAFT state set, the draft front matter variable should be set to true, even if the post has a sub-heading immediately after the post heading.
The “CLOSED” state of this heading (which is nil) should be ignored When an Org TODO item is switched to the DONE state, a CLOSED property is auto-inserted (default behavior).
If such a property is non-nil, the value (time-stamp) of that is used to set the date field in the exported front-matter.
Reference: (org) Special properties or C-h i g (org) Special properties
Without line numbers Org source #+BEGIN_SRC emacs-lisp :hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+END_SRC Output (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.
Read more