.Kind (page): .Type (singles) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
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 Aug 02, 2019 17:56 UTC.


This page was created/modified in commit 40c56b4 "Update existing tests for the change to org-hugo-slug in last commit" on 2019-04-29.
Markdown source of this page

Single Post with TOML front matter

categories: cat1 cat2

tags: single toml cross-link


Description/Summary

Some description for this post.

Content

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.

This file will export the front-matter in TOML (default). See /singles/post-yaml/ that exports that in YAML.

Here’s the same link with description: Post exported with YAML front-matter.

/images-in-content/post3/.

This one is magic! You can link to the Org file, no matter what slug is set in the exported file.. Hugo will do the job of translating from the Markdown file name to the actual link/slug.

/singles/post-with-slug-xyz/

/singles/post-yaml/#first-heading

Local Variables


Page (Debug)

Page VariableValue
Name "Single Post with TOML front matter"
Title "Single Post with TOML front matter"
ResourceType "page"
Kind "page"
Section "singles"
Draft false
Type "singles"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/singles/post-toml/"
RelPermalink "/singles/post-toml/"
Data
page.Data{} (type:page.Data)
NextPagePost with underscore in name
PrevPageSingle Post with YAML front matter
NextInSectionPost with underscore in name
PrevInSectionSingle Post with YAML front matter

Page Params (Debug)

KeyTypeValue
categories[]string "cat1" "cat2"
datetime.Time 2017-07-20 00:00:00 +0000 UTC
descriptionstring "Some description for this post."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2019-04-29 11:53:43 -0400 -0400
menumap[string]interface {}
KeyTypeValue
foomap[string]interface {}
KeyTypeValue
identifierstring "single-toml"
parentstring "main"
weightint64 10
publishdatetime.Time 2017-07-20 00:00:00 +0000 UTC
tags[]string "single" "toml" "cross-link"
titlestring "Single Post with TOML front matter"

File Object (Debug)

FileInfo VariableValue
UniqueID "a91f824341930fa38f5a018c49777739"
BaseFileName "post-toml"
TranslationBaseName "post-toml"
Lang "en"
Section "singles"
LogicalName "post-toml.md"
Dir "singles/"
Ext "md"
Path "singles/post-toml.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.57.0-DEV (commit 2d766f13, using Chroma commit 26f03cb) .
[Test Site home | ox-hugo home]