ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Feb 15, 2018 18:18 UTC.


Page Bundle A

(Last modified on Thu Feb 15, 2018)
Index page of Page Bundle A. Link to images not in the current directory Source path contains /static/ When path contains /static/, the path translations are the exact same as those for non-bundle cases. More details Source path contains the bundle name Inside <ORG_FILE_DIR> Copied-to location inside BUNDLE Explanation <ORG_FILE_DIR>/bar/<BUNDLE>/baz/foo.png <HUGO_BASE_DIR>/content/<SECTION>/<BUNDLE>/baz/foo.png If the file directory path contains "/<BUNDLE>/", the directory structure following that "/<BUNDLE>/" is preserved.
Read more

Image links

(Last modified on Thu Feb 15, 2018)
This is some text before the first heading of this post. Unclickable image (works!) To be fixed (Now 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 Solution: Above is fixed by setting HUGO_OFFSET_LEVEL to 1. So the sub-heading title and the post title both get the Heading 1 tag and look the same size.
Read more

Links to images

(Last modified on Tue Feb 13, 2018)
Note: When targeting a #+name keyword, #+caption keyword is mandatory in order to get proper numbering for source blocks, images and tables. #+caption: Org Logo #+name: img__org_logo1 [[/images/org-mode-unicorn-logo.png]] *Here we refer to image [[img__org_logo2]].* #+include: "./all-posts.org::#lorem-ipsum" :only-contents t Here's the same image again, but with a different Org link ID: #+caption: Same Org Logo #+name: img__org_logo2 [[/images/org-mode-unicorn-logo.png]] *Here we refer to image [[img__org_logo1]].* will output below (lorem-ipsum added to increase page content so that the link jump is evident):
Read more

Image with Hugo figure shortcode parameters set using ATTR_HTML

(Last modified on Tue Feb 13, 2018)
ox-hugo 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. Figure 1: A unicorn!
Read more

Image captions

(Last modified on Tue Feb 13, 2018)
Some text before image. Figure 1: A unicorn! Some more text, after image.

Page Bundle with images in the same dir

(Last modified on Mon Feb 12, 2018)
Link to an image in the same dir as this Org file Link to an image containing this bundle’s name in the path Link to an image in a subdir in the same dir as this Org file

Date and slug inheritance (Spanish)

(Last modified on Mon Feb 12, 2018)
La herencia de fecha y slug es Ăștil cuando desea usar los mismos datos y slug para mĂșltiples publicaciones, pero en diferentes idiomas. English version

Date and slug inheritance (English)

(Last modified on Mon Feb 12, 2018)
Date and slug inheritance is useful when you want to use the same data and slug for multiple posts, but in different languages. Spanish version

Single Post with TOML front matter

(Last modified on Sun Feb 11, 2018)
This is a single post. You do not need to set the EXPORT_FILE_NAME property in here. But then you also lose the tag and property inheritance Org awesomeness. First heading in this post This is a under first heading. Second heading in this post This is a under second heading. Cross-linking All of the below linked Org files have to have exported posts using the per-file flow, and they cannot be page bundles or have set a different #+export_file_name — See ox-hugo Issue #131 for requirements for this basic cross-linking to work as expected.
Read more

Special block description overrides property-set description

(Last modified on Sun Feb 11, 2018)
If the description is set via the subtree property :EXPORT_DESCRIPTION (or the #+description keyword), and via the “description” special block too, the latter will take precedence.


SiteInfo (Debug)

SiteInfo VariableValue
Title "ox-hugo Test Site"
Author
KeyTypeValue
namestring "Kaushal Modi"
Social
KeyTypeValue
githubstring "kaushalmodi"
LastChange 2018-02-15 13:16:09 -0500 -0500
DisqusShortname ""
GoogleAnalytics ""
Copyright ""
RSSLink "https://ox-hugo.scripter.co/test/index.xml"
LanguageCode "en-us"
BuildDrafts true
Params
KeyTypeValue
custom_css[]interface {} "css/style.css"
descriptionstring "Test site for ox-hugo package for Emacs/Org-mode."
footerstring "<center>\n [<a href=\"/\">Test Site home</a> | <a href=\"https://ox-hugo.scripter.co/\"><code>ox-hugo</code> home</a>]\n</center>\n"
introstring "This is the test site for the <a href=\"https://github.com/kaushalmodi/ox-hugo\">\n<code>ox-hugo</code></a> package for Emacs/Org-mode.\n"
mainSections[]string "posts"
mainsections[]string "posts"
sourcemap[string]interface {}
KeyTypeValue
md_dirstring "test/site/content"
org_dirstring "test/site/content-org"
urlstring "https://github.com/kaushalmodi/ox-hugo"

Menu (Debug)

KeyTypeValue
auto weight*hugolib.Menu
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 1 (HUGO_MENU as keyword)"
Name "Post with menu 1 (HUGO_MENU as keyword)"
URL "/posts/hugo-menu-as-keyword--post-with-menu-1/"
Identifier "post-with-menu-1--hugo-menu-as-keyword"
Weight 1001
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 2 (HUGO_MENU as keyword)"
Name "Post with menu 2 (HUGO_MENU as keyword)"
URL "/posts/hugo-menu-as-keyword--post-with-menu-2/"
Identifier "post-with-menu-2--hugo-menu-as-keyword"
Weight 1002
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 3 (HUGO_MENU as keyword)"
Name "Post with menu 3 (HUGO_MENU as keyword)"
URL "/posts/hugo-menu-as-keyword--post-with-menu-3/"
Identifier "post-with-menu-3--hugo-menu-as-keyword"
Weight 1003
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 4 (HUGO_MENU as keyword)"
Name "Post with menu 4 (HUGO_MENU as keyword)"
URL "/posts/hugo-menu-as-keyword--post-with-menu-4/"
Identifier "post-with-menu-4--hugo-menu-as-keyword"
Weight 1004
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 5 (HUGO_MENU as keyword)"
Name "Post with menu 5 (HUGO_MENU as keyword)"
URL "/posts/hugo-menu-as-keyword--post-with-menu-5/"
Identifier "post-with-menu-5--hugo-menu-as-keyword"
Weight 1005
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 1"
Name "Post with menu 1"
URL "/posts/post-with-menu-1/"
Identifier "post-with-menu-1"
Weight 4001
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 2"
Name "Post with menu 2"
URL "/posts/post-with-menu-2/"
Identifier "post-with-menu-2"
Weight 4002
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 3"
Name "Post with menu 3"
URL "/posts/post-with-menu-3/"
Identifier "post-with-menu-3"
Weight 4003
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 4"
Name "Post with menu 4"
URL "/posts/post-with-menu-4/"
Identifier "post-with-menu-4"
Weight 4004
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "auto weight"
Title "Post with menu 5"
Name "Post with menu 5"
URL "/posts/post-with-menu-5/"
Identifier "post-with-menu-5"
Weight 4005
Pre ""
Post ""
Parent ""
Children
foo*hugolib.Menu
MenuEntry VariableValue
Menu "foo"
Title "Keyword Collection"
Name "Keyword Collection"
URL "/posts/keyword-collection/"
Identifier "keyword-collection"
Weight 10
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu ""
Title ""
Name "main"
URL ""
Identifier ""
Weight 0
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "foo"
Title "Single Post with TOML front matter"
Name "Single Post with TOML front matter"
URL "/singles/post-toml/"
Identifier "single-toml"
Weight 10
Pre ""
Post ""
Parent "main"
Children
MenuEntry VariableValue
Menu "foo"
Title "Single Post with YAML front matter"
Name "Single Post with YAML front matter"
URL "/singles/post-yaml/"
Identifier "single-yaml"
Weight 10
Pre ""
Post ""
Parent "main"
Children
MenuEntry VariableValue
Menu "foo"
Title "Single Post, but draft"
Name "Single Post, but draft"
URL "/singles/post-draft/"
Identifier "single-post-but-draft"
Weight 10
Pre ""
Post ""
Parent "main"
Children
main*hugolib.Menu
MenuEntry VariableValue
Menu "main"
Title "Writing Hugo blog in Org"
Name "Writing Hugo blog in Org"
URL "/writing-hugo-blog-in-org-subtree-export/"
Identifier "writing-hugo-blog-in-org"
Weight 2001
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "main"
Title "Writing Hugo blog in Org (File Export)"
Name "Writing Hugo blog in Org (File Export)"
URL "/writing-hugo-blog-in-org-file-export/"
Identifier "writing-hugo-blog-in-org--file-export"
Weight 2001
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu ""
Title ""
Name "posts"
URL ""
Identifier ""
Weight 0
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "main"
Title "Menu Meta Data in YAML Front Matter"
Name "Menu Meta Data in YAML Front Matter"
URL "/posts/menu-meta-data-yaml/"
Identifier "yaml-menu-override"
Weight 25
Pre ""
Post ""
Parent "posts"
Children
MenuEntry VariableValue
Menu "main"
Title "White space in menu name"
Name "Menu in YAML"
URL "/posts/menu-meta-data-yaml3/"
Identifier "white-space-in-menu-name"
Weight 25
Pre ""
Post ""
Parent "posts"
Children
something here*hugolib.Menu
MenuEntry VariableValue
Menu "something here"
Title "White space in menu entry"
Name "White space in menu entry"
URL "/posts/menu-meta-data-yaml2/"
Identifier "white-space-in-menu-entry"
Weight 25
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu ""
Title ""
Name "posts"
URL ""
Identifier ""
Weight 0
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "something here"
Title "Overriding few menu properties"
Name "Overriding few menu properties"
URL "/posts/menu-alist-meta-data-toml-override-partial/"
Identifier "ov-partial"
Weight 10
Pre ""
Post ""
Parent "posts"
Children
test*hugolib.Menu
MenuEntry VariableValue
Menu "test"
Title "Overriding menu properties completely"
Name "Overriding menu properties completely"
URL "/posts/menu-alist-meta-data-toml-override-full/"
Identifier "overriding-menu-properties-completely"
Weight 50
Pre ""
Post ""
Parent ""
Children
MenuEntry VariableValue
Menu "test"
Title "Page title for menu"
Name "Menu Title property"
URL "/posts/menu-title-property/"
Identifier "menu-title-property"
Weight 3003
Pre ""
Post ""
Parent ""
Children

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.37-DEV (commit 53dac9a5, using Chroma commit e4cd164) .

[Test Site home | ox-hugo home]