From mboxrd@z Thu Jan 1 00:00:00 1970 From: ST Subject: Re: Moving from Jekyll to Orgmode Date: Wed, 09 May 2018 10:35:24 +0300 Message-ID: <1525851324.2021.59.camel@gmail.com> References: <1524949519.21032.171.camel@gmail.com> <87o9hu7zz4.fsf@gmx.us> <1525682386.2021.37.camel@gmail.com> <87muxb6ra4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGJdN-0000Wv-2U for emacs-orgmode@gnu.org; Wed, 09 May 2018 03:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGJdJ-0000i0-2B for emacs-orgmode@gnu.org; Wed, 09 May 2018 03:35:33 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:33887) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGJdI-0000gF-Rv for emacs-orgmode@gnu.org; Wed, 09 May 2018 03:35:28 -0400 Received: by mail-wm0-x234.google.com with SMTP id a137-v6so22041880wme.1 for ; Wed, 09 May 2018 00:35:28 -0700 (PDT) In-Reply-To: <87muxb6ra4.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org On Tue, 2018-05-08 at 00:21 +0200, Rasmus wrote: > ST writes: > > >> > 2. how can one create "prettified" links, i.e. /features/ instead > >> > of /features.html ? Basically during the website generation for the file > > > >> > features.org a directory `features` needs to be created and the html > >> > file placed into `features/index.html` ... Is there a tutorial on how to > >> > do that? > >> > >> You make a wrapper around org-html-publish-to-html that creates folders > >> and from filename and save file as index in the folder. The wrapper > >> function is then used as the :publishing-function in > >> org-publish-project-alist. > >> > >> Something like this (untested). > >> > >> (lambda (plist filename pub-dir) > >> (let ((dir (make-directory (file-name-as-directory (file-name-base filename)) > >> pub-dir))) > >> (org-latex-publish-to-html plist filename dir) > >> (rename-file (concat dir (file-name-base filename) ".html") > >> (concat dir "index.html")))) > >> > >> > >> You could also move around your source files before publishing via the > >> :preparation-function. > > > > Thank you very much! Unfortunately I don't know lisp, so I have to learn > > it first to understand your solution... but now I have something to > > start with. I wish org html export will become a real static site > > generator, like jekyll, hugo, etc.. > > I *think* that is what ox-publish is, but indeed, it’s a bit hairy to set > up. Is the difficulty to setup ox-publish the sole disadvantage vis. ox-hugo/ox-jekyll/etc.? Is the functionality the same more_or_less? What ox-hugo devs/users have to say on this?