From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Moving from Jekyll to Orgmode Date: Wed, 09 May 2018 12:21:44 +0000 Message-ID: References: <1524949519.21032.171.camel@gmail.com> <87o9hu7zz4.fsf@gmx.us> <1525682386.2021.37.camel@gmail.com> <87muxb6ra4.fsf@gmx.us> <1525851324.2021.59.camel@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cba61f056bc4f252" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGO6X-0006LC-LN for emacs-orgmode@gnu.org; Wed, 09 May 2018 08:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGO6W-0004JE-IH for emacs-orgmode@gnu.org; Wed, 09 May 2018 08:21:57 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:42313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGO6W-0004Hm-5o for emacs-orgmode@gnu.org; Wed, 09 May 2018 08:21:56 -0400 Received: by mail-lf0-x232.google.com with SMTP id u21-v6so50651379lfu.9 for ; Wed, 09 May 2018 05:21:56 -0700 (PDT) In-Reply-To: <1525851324.2021.59.camel@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: ST Cc: emacs-orgmode@gnu.org, Rasmus --000000000000cba61f056bc4f252 Content-Type: text/plain; charset="UTF-8" Hello, On Wed, May 9, 2018, 3:36 AM ST wrote: > > Is the difficulty to setup ox-publish the sole disadvantage vis. > ox-hugo/ox-jekyll/etc.? ox-publish is not *that* difficult to set up. Once you have it set up once, you just reuse that with minor tweaks for different projects. The Org manual has nice examples of simple and complex ox-publish configs; try them out. For me, personally, ox-publish didn't turn out to be the right tool for blogging, especially where I want to have a single Org file to hold multiple posts. I do use it though for applications like batch-exporting an Org file or a directory of Org files to multiple formats. Talking about comparing it with ox-hugo/ox-jekyll, etc... they don't compare apples to apples. Ox-publish is an inbuilt Org utility that works with *any* Org exporter backend that has hooks for ox-publish (ox-hugo hasn't done that; read further for more). Whereas, ox-hugo is an Org exporter backend that exports to Markdown (mostly standard Markdown + some Hugo specific syntax + bits and pieces of HTML where necessary) + Hugo front-matter + fine-tuned "ox-publishy" functionality. Is the functionality the same more_or_less? > Again, not apples to apples.. > Here's a coarse way to explain the function of ox-publish.. it takes the Org files from the specified dir, exports them using an ox-publish-supporting exporter, and puts them in some destination dir. Ox-hugo does this: - Exports the current Org file as a single post, or loops through subtrees (using an interesting logic) in the current file and exports them as individual posts. (Ox-publish does not allow exporting subtrees from a single Org file.) - The destination for exported Markdown files is decided based on Hugo-specific Org keywords like HUGO_BASE_DIR, HUGO_SECTION, HUGO_BUNDLE. Here's where ox-hugo works sort of like ox-publish. What ox-hugo devs/users have to say on this? > Hope that helps clarify the differences. Kaushal > -- Kaushal Modi --000000000000cba61f056bc4f252 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,=C2=A0

On Wed, May 9, 2018, 3:36 AM ST <s= mntov@gmail.com> wrote:

Is the difficulty to setup ox-publish the sole disadvantage vis.
ox-hugo/ox-jekyll/etc.?

ox-publish is= not *that* difficult to set up. Once you have it set up once, you just reu= se that with minor tweaks for different projects. The Org manual has nice e= xamples of simple and complex ox-publish configs; try them out.
<= br>
For me, personally, ox-publish didn't turn out to be the = right tool for blogging, especially where I want to have a single Org file = to hold multiple posts. I do use it though for applications like batch-expo= rting an Org file or a directory of Org files to multiple formats.=C2=A0

Talking about comparing it with ox-hugo/ox-jekyll, e= tc... they don't compare apples to apples.=C2=A0

Ox-publish is an inbuilt Org utility that works with *any* Org exporter = backend that has hooks for ox-publish (ox-hugo hasn't done that; read f= urther for more).=C2=A0

Whereas, ox-hugo is an Org= exporter backend that exports to Markdown (mostly standard Markdown + some= Hugo specific syntax + bits and pieces of HTML where necessary) + Hugo fro= nt-matter + fine-tuned "ox-publishy" functionality.=C2=A0

Is = the functionality the same more_or_less?

Again, not apples to apples..

Here's= a coarse way to explain the function of ox-publish.. it takes the Org file= s from the specified dir, exports them using an ox-publish-supporting expor= ter, and puts them in some destination dir.=C2=A0

= Ox-hugo does this:

- Exports the current Org file = as a single post, or loops through subtrees (using an interesting logic) in= the current file and exports them as individual posts. (Ox-publish does no= t allow exporting subtrees from a single Org file.)
- The destina= tion for exported Markdown files is decided based on Hugo-specific Org keyw= ords like HUGO_BASE_DIR, HUGO_SECTION, HUGO_BUNDLE. Here's where ox-hug= o works sort of like ox-publish.

What ox-hugo devs/users have to say on = this?

Hope that helps clarify the= differences.=C2=A0

Kaushal
--

Kaushal Modi

--000000000000cba61f056bc4f252--