.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 49ac577 "Support links to CUSTOM_ID's of Org files" on 2018-06-01.
Markdown source of this page

Single Post with YAML front matter

categories: cat1 cat2

tags: single yaml cross-link


Description/Summary

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, TODO state, etc. Org awesomeness. This file will export the front-matter in YAML (because #+hugo_front_matter_format: yaml). See /singles/post-toml/ that exports that in TOML. Here’s the same link with description: Post exported with TOML front-matter. Here’s an example with relative link to an Org file: /images-in-content/post4/.


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, TODO state, etc. Org awesomeness.

This file will export the front-matter in YAML (because #+hugo_front_matter_format: yaml). See /singles/post-toml/ that exports that in TOML.

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

Here’s an example with relative link to an Org file: /images-in-content/post4/.


All of the above linked Org files have to export posts using per-file flow, and they cannot be page bundles or have slugs — See ox-hugo Issue #131 for requirements for this basic cross-linking to work as expected.


First heading in this post #

This is a under first heading.

Second heading in this post #

This is a under second heading.


Page (Debug)

Page VariableValue
Name "Single Post with YAML front matter"
Title "Single Post with YAML front matter"
ResourceType "page"
Kind "page"
Section "singles"
Draft false
Type "singles"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/singles/post-yaml/"
RelPermalink "/singles/post-yaml/"
Data
page.Data{} (type:page.Data)
NextPageSingle Post with TOML front matter
PrevPageSingle Post, but draft
NextInSectionSingle Post with TOML front matter
PrevInSectionSingle Post, but draft

Page Params (Debug)

KeyTypeValue
categories[]string "cat1" "cat2"
datetime.Time 2017-07-20 00:00:00 +0000 UTC
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-06-01 15:32:29 -0400 -0400
menumaps.Params
KeyTypeValue
foomaps.Params
KeyTypeValue
identifierstring "single-yaml"
parentstring "main"
weightint 10
publishdatetime.Time 2017-07-20 00:00:00 +0000 UTC
tags[]string "single" "yaml" "cross-link"
titlestring "Single Post with YAML front matter"

File Object (Debug)

FileInfo VariableValue
UniqueID "f6d1d98088f259e194df5984ca28ef06"
BaseFileName "post-yaml"
TranslationBaseName "post-yaml"
Lang "en"
Section "singles"
LogicalName "post-yaml.md"
Dir "singles/"
Ext "md"
Path "singles/post-yaml.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]