[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question Regarding Exporting A Single 'blog.org' File With Subheadin
From: |
Kaushal Modi |
Subject: |
Re: Question Regarding Exporting A Single 'blog.org' File With Subheadings To Multiple Separate Markdown Files |
Date: |
Mon, 13 Jun 2022 10:57:13 -0400 |
On Mon, Jun 13, 2022 at 10:48 AM Samuel Banya <sbanya@fastmail.com> wrote:
>
> Hello,
>
> I am converting my blog to utilize 'ox-hugo' so that I can convert my single
> 'blog.org' file with multiple headings that each have a date for the heading
> name into their own separate Markdown files.
> Am I doing something wrong within this workflow?
If you are following the "subtree based export flow", you will need to
add the EXPORT_FILE_NAME property for each subtree you want to export
as a post. See this minimal example in the ox-hugo Quick Start guide:
https://ox-hugo.scripter.co/doc/quick-start/#code-snippet--basic-post-in-org
Also see these:
https://ox-hugo.scripter.co/#before-you-export
> If you choose to export an Org subtree as a post, you need to set the
> EXPORT_FILE_NAME subtree property. That property is used by this package to
> figure out where the current post starts.
https://ox-hugo.scripter.co/doc/usage/#for-both-one-post-per-subtree-and-one-post-per-file-flows:
> A valid Hugo post subtree is an Org subtree that has the EXPORT_FILE_NAME
> property set. Note that a subtree with EXPORT_FILE_NAME property cannot nest
> a subtree with the same property set.