Writing Hugo blog in Org
categories: emacs
This is a Draft
Description/Summary
First heading within the post # This post will be exported as content/posts/writing-hugo-blog-in-org-subtree-export.md. Its title will be “Writing Hugo blog in Org”. It will have hugo and org tags and emacs as category. The menu item weight and post weight are auto-calculated. The menu item identifier is auto-set. The lastmod property in the front-matter is set automatically to the time of export. A sub-heading under that heading # It’s draft state will be marked as true as the subtree has the todo state set to TODO.
Content
First heading within the post #
- This post will be exported as
content/posts/writing-hugo-blog-in-org-subtree-export.md. - Its title will be “Writing Hugo blog in Org”.
- It will have hugo and org tags and emacs as category.
- The menu item weight and post weight are auto-calculated.
- The menu item identifier is auto-set.
- The lastmod property in the front-matter is set automatically to the time of export.
A sub-heading under that heading #
- It’s draft state will be marked as
trueas the subtree has the todo state set to TODO.
With the point anywhere in this Writing Hugo blog in Org post
subtree, do C-c C-e H H to export just this post.
The exported Markdown has a little comment footer as set in the Local Variables section below.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Writing Hugo blog in Org" | |
| Title | "Writing Hugo blog in Org" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "" | |
| Draft | true | |
| Type | "page" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/writing-hugo-blog-in-org-subtree-export/" | |
| RelPermalink | "/writing-hugo-blog-in-org-subtree-export/" | |
| Data |
| |
| NextPage | Post 5 with auto calculation of weight (HUGO_WEIGHT as keyword) | |
| PrevPage | Writing Hugo blog in Org (File Export) | |
| NextInSection | None | |
| PrevInSection | Writing Hugo blog in Org (File Export) |
Page Params (Debug)
| Key | Type | Value | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alpha | int64 | 1 | |||||||||||||||
| author | []string | "Kaushal Modi" | |||||||||||||||
| baz | string | "zoo" | |||||||||||||||
| beta | string | "two words" | |||||||||||||||
| categories | []string | "emacs" | |||||||||||||||
| date | time.Time | 2017-09-10 00:00:00 +0000 UTC | |||||||||||||||
| draft | bool | true | |||||||||||||||
| foo | string | "bar" | |||||||||||||||
| gamma | int64 | 10 | |||||||||||||||
| iscjklanguage | bool | false | |||||||||||||||
| lastmod | time.Time | 2022-10-07 14:59:29 -0400 -0400 | |||||||||||||||
| menu | maps.Params |
| |||||||||||||||
| publishdate | time.Time | 2017-09-10 00:00:00 +0000 UTC | |||||||||||||||
| tags | []string | "hugo" "org" | |||||||||||||||
| title | string | "Writing Hugo blog in Org" | |||||||||||||||
| weight | int | 2001 |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "acea8ae3f6cb21804d23904a7fa30b55" |
| BaseFileName | "writing-hugo-blog-in-org-subtree-export" |
| TranslationBaseName | "writing-hugo-blog-in-org-subtree-export" |
| Lang | "en" |
| Section | "" |
| LogicalName | "writing-hugo-blog-in-org-subtree-export.md" |
| Dir | "/" |
| Ext | "md" |
| Path | "writing-hugo-blog-in-org-subtree-export.md" |