From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Moving from Jekyll to Orgmode Date: Sat, 05 May 2018 19:51:27 +0200 Message-ID: <87o9hu7zz4.fsf@gmx.us> References: <1524949519.21032.171.camel@gmail.com> 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]:57639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fF1La-0001bp-Le for emacs-orgmode@gnu.org; Sat, 05 May 2018 13:51:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fF1LX-000770-I1 for emacs-orgmode@gnu.org; Sat, 05 May 2018 13:51:50 -0400 Received: from [195.159.176.226] (port=54610 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fF1LX-000766-Bd for emacs-orgmode@gnu.org; Sat, 05 May 2018 13:51:47 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fF1JL-0006So-0R for emacs-orgmode@gnu.org; Sat, 05 May 2018 19:49:31 +0200 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: emacs-orgmode@gnu.org ST writes: > Hello, > > I would like to rewrite my website using Orgmode (till now I used > Jekyll). It would be nice if you could help me with following questions: > > 1. could somebody, please, point me to a tutorial on how to create a > multilingual site? Like the orgmode.org with EN:FR:JA. Ideally it would > be if one would have page-aware language switch, i.e. if one is on the > page orgmode.org/fr/features.html and clicks JA he will be redirected to > orgmode.org/ja/features.html (and not .../ja/index.html as it is now)... I don’t know how to that. You can easily add language buttons to your documents via :html-preamble (see org-publish-project-alist). How to automatically move people to the right side based on their preferences is another thing. I know Django supports multilingual pages, so maybe their documentation discuss this issue on a more technical level. > 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. > 3. is there a free modern "corporate" style theme for org-mode? Everything has classes so it’s easy to make a style that suits you. Just find the color and font combinations that you like. There’s an example of a technique I use here: https://gitlab.com/pages/org-mode Rasmus -- Look, it is what it is because it was what it was