4.2 KiB
- Preparation
- Post 1
- Post 2
- Image
- Setting heading anchors
- Post heading with crazy characters
- COMMENT Commented post
- Test tags
- Draft state
- DRAFT Draft state
Preparation
- Be the root directory for this Hugo site (the directory containing
config.toml). -
Run
hugo server --port 1111
- See the site served on "http://localhost:1111/"
Post 1
Export this first post only by moving point here and doing C-c C-e
H H.
Post 2
Export this second post only by moving point here and doing C-c C-e
H H.
Image
To be fixed: At the moment, you need to place the point here and do
C-c C-e H H. If the point is under any of the nested sub-trees in
here where you do that, only that subtree gets exported.
Need to add smarts that determines which subtree contains the whole
post.. like look for EXPORT_FILE_NAME?
Unclickable image (works!)

To be fixed: The sub-headings in a post get exported as Heading 1 instead of Heading 2.
For example, this sub-section's heading is exported as:
# Unclickable image
instead of
## Unclickable image
So the sub-heading title and the post title both get the Heading 1 tag and look the same size.
Clickable link that opens the image (works!)
Clickable image that opens the image (works!)
Click below image to jump to the unicorn image.

- NOTE
file:has to be used in both Link and Description components of the Org link.
Image with ATTR_HTML Issue # 17
COMMENT Below will not work!
You cannot wrap markdown code inside HTML.
As rdwatters says here,
HTML can be part of markdown because HTML-inside-markdown is part of the spec. That said, remember that the spec disallows markdown nested inside of HTML. So if you create a div, just make sure everything inside that div is valid HTML.

Setting heading anchors
Heading 1 of the post
Something
Heading 1.1 of the post
Something else
Heading 2 of the post
Something 2
Heading 2.1 of the post
Something 2.1
Post heading with crazy characters
COMMENT Commented post
This post must not be exported as it is commented.
Test tags abc def
TODO Draft state
If a post has the TODO keyword, the draft front matter variable
should be set to true.
Idea to to mark a post or blog idea as TODO that you yet have to
start writing.
DRAFT Draft state
If a post has the DRAFT keyword too, the draft front matter variable
should be set to true.
Idea is to mark a post as DRAFT that you have already started
writing, or are in the process at the moment, but it is not yet ready
to be published