From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Moving from Jekyll to Orgmode Date: Fri, 04 May 2018 13:53:00 +0000 Message-ID: References: <1524949519.21032.171.camel@gmail.com> <874ljump59.fsf@atmarama.com> <02CE4F97-08E0-4A50-9CE5-68D0D7712ACD@zzamboni.org> <87zi1fykxa.fsf@tsdye.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ffb0e7056b61a398" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEb98-0003F1-4U for emacs-orgmode@gnu.org; Fri, 04 May 2018 09:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEb97-0002QV-4n for emacs-orgmode@gnu.org; Fri, 04 May 2018 09:53:14 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:44389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEb96-0002QG-SO for emacs-orgmode@gnu.org; Fri, 04 May 2018 09:53:13 -0400 Received: by mail-lf0-x231.google.com with SMTP id h197-v6so31020640lfg.11 for ; Fri, 04 May 2018 06:53:12 -0700 (PDT) In-Reply-To: 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: "Thomas S. Dye" Cc: Luis Roca , Diego Zamboni , emacs-orgmode@gnu.org --000000000000ffb0e7056b61a398 Content-Type: text/plain; charset="UTF-8" Hello Thomas, I forgot to expand a bit on this part.. On Fri, May 4, 2018 at 9:43 AM Kaushal Modi wrote: > > >> I use org-mode for writing these kinds of thing now, and >> I'm hoping to work out a way to make my org mode source work with >> Hugo. >> > > At minimum you just need the #+hugo_base_dir keyword and EXPORT_FILE_NAME > property (if using per-subtree flow). So it should not be too difficult. To > get an idea, I made these[1] changes to make the pre-existing use-package > Org manual ready for ox-hugo export. > I port some of my pre-existing notes in Org format to my blog as I get time. Here's a recent one.. Org source: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/raw/master/content-org/notes/awk/awk.org The only lines added to it for exporting (using the per-file flow) using ox-hugo were: #+hugo_base_dir: ../../../ #+hugo_section: notes #+hugo_bundle: awk #+export_file_name: index #+hugo_categories: unix #+hugo_tags: awk And I added this Org Special block supported by ox-hugo: #+begin_description Collection of ~awk~ examples. #+end_description With that in place, I exported the Markdown file, committed it to my repo, Netlify ran hugo to regenerate my site, and deployed it to https://scripter.co/notes/awk/. -- Kaushal Modi --000000000000ffb0e7056b61a398 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Thomas,

I forgot to expand a bit o= n this part..

= On Fri, May 4, 2018 at 9:43 AM Kaushal Modi <kaushal.modi@gmail.com> wrote:
=C2=A0
=C2=A0 I use org-mode for writing these kinds = of thing now, and
I'm hoping to work out a way to make my org mode source work with
Hugo.

At minimum you just need the #+hugo_base_= dir keyword and EXPORT_FILE_NAME property (if using per-subtree flow). So i= t should not be too difficult. To get an idea, I made these[1] changes to m= ake the pre-existing use-package Org manual ready for ox-hugo export.
=

I port some of my pre-ex= isting notes in Org format to my blog as I get time. Here's a recent on= e..

The only lines added to it for exporting (us= ing the per-file flow) using ox-hugo were:

#+hugo_base_dir: ../../..= /
#+hugo_section: notes
#+hugo_bundle: awk
#+export_file_name: ind= ex

#+hugo_categories: unix
#+hugo_tags: awk

And= I added this Org Special block supported by ox-hugo:

#+begin_descri= ption
Collection of ~awk~ examples.
#+end_description

With that in place, I exported the Markdown file, committed it to my rep= o, Netlify ran hugo to regenerate my site, and deployed it to https://scripter.co/notes/awk/.

--

Kaushal Modi

--000000000000ffb0e7056b61a398--