help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question Regarding Exporting A Single 'blog.org' File With Subheadin


From: Samuel Banya
Subject: Re: Question Regarding Exporting A Single 'blog.org' File With Subheadings To Multiple Separate Markdown Files
Date: Mon, 13 Jun 2022 13:00:22 -0400
User-agent: Cyrus-JMAP/3.7.0-alpha0-692-gb287c361f5-fm-20220603.003-gb287c361

Awesome thanks for this reference.

I wonder, would it make sense to name them in such a way that they could be 
ordered, or is Hugo smart enough to just pick up the latest posts based on 
export date?

Either way, thanks for leading me in the right direction, great reference.

Sincerely,

Sam

On Mon, Jun 13, 2022, at 10:57 AM, Kaushal Modi wrote:
> 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.
> 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]