.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 Mar 05, 2024 19:24 UTC.


This page was created/modified in commit c24ea79 "feat!: Use tomelr.el for TOML generation" on 2022-05-03.
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


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 2022-05-03 00:48:15 -0400 -0400
menumaps.Params
KeyTypeValue
foomaps.Params
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.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]