Writing Hugo blog in Org (File Export)
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-file-export.md. Its title will be “Writing Hugo blog in Org”. It will have hugo and org tags and emacs as category. The lastmod property in the front-matter is set automatically to the time of export. The menu item identifier is auto-set. The menu item weight and post weight if needed have to be manually specified as shown above. A sub-heading under that heading # It’s draft state will be marked as true because of #+hugo_draft: true.
Content
First heading within the post #
- This post will be exported as
content/posts/writing-hugo-blog-in-org-file-export.md
. - Its title will be “Writing Hugo blog in Org”.
- It will have hugo and org tags and emacs as category.
- The lastmod property in the front-matter is set automatically to the time of export.
- The menu item identifier is auto-set.
- The menu item weight and post weight if needed have to be manually specified as shown above.
A sub-heading under that heading #
- It’s draft state will be marked as
true
because of#+hugo_draft: true
.
With the point anywhere, do C-c C-e H h
to export this whole file
titled Writing Hugo blog in Org to a Hugo 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 (File Export)" | |
Title | "Writing Hugo blog in Org (File Export)" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "" | |
Draft | true | |
Type | "page" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/writing-hugo-blog-in-org-file-export/" | |
RelPermalink | "/writing-hugo-blog-in-org-file-export/" | |
Data |
| |
NextPage | Writing Hugo blog in Org | |
PrevPage | Post with auto weight calc 1 (EXPORT_HUGO_WEIGHT as subtree property) | |
NextInSection | Writing Hugo blog in Org | |
PrevInSection | Setting EXPORT_HUGO_SECTION to "/" |
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 (File Export)" | |||||||||||||||
weight | int | 2001 |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "0040a2ffcb60fcea1274b488f8cd3380" |
BaseFileName | "writing-hugo-blog-in-org-file-export" |
TranslationBaseName | "writing-hugo-blog-in-org-file-export" |
Lang | "en" |
Section | "" |
LogicalName | "writing-hugo-blog-in-org-file-export.md" |
Dir | "/" |
Ext | "md" |
Path | "writing-hugo-blog-in-org-file-export.md" |