From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Viren Subject: Re: Best way to create blog for company web site with Orgmode Date: Wed, 09 Mar 2016 18:33:55 -0500 Message-ID: References: <87io0wae5h.fsf@gmx.net> <87r3fjqx39.fsf@gmx.net> <87egbjqrnr.fsf@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adncR-000730-Pu for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 18:34:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adncO-0006gV-Jf for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 18:34:19 -0500 Received: from smtpgw.bnl.gov ([2620:10a:0:3::30]:55836 helo=iron3.sec.bnl.local) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adncO-0006gH-Ci for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 18:34:16 -0500 In-Reply-To: <87egbjqrnr.fsf@gmx.net> (Rainer Hansen's message of "Wed, 09 Mar 2016 22:15:36 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer Hansen Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Rainer Hansen writes: > Sometimes I should read more carefully what I write. I want to use a > static web site generator! So Wordpress is no option for me. Ah, okay! That makes more sense. One day I will also learn to read what I write. :) > Of course I could use Bootstrap with an Org-based static site > generator. However, I my thinking is that I need to do a lot of > customizations to use it as a blogging engine. Perhaps I am wrong. I > would be happy if someone on the mailing-list has done it and can show > that it is quite straight forward to do. Yes, this desire to have the HTML match the CSS (without touching the CSS) is one thing that drove me to rolling my own generator. I didn't want to muck with Org HTML export to make that match happen. In the end, I found that most of what I wanted from Bootstrap relates to what I think of as "outer" HTML - the banner, nav bar, menus, table of contents, etc. It ends up mattering less to me for the "inner" HTML of the actual blog post or page payload content.=20=20 If ever I do need to, I'm prepared develop some code to do some rewriting of Org HTML during the generation. > Yes, easy is relative. What I mean is that I can set it up in less than > 4 hours through configuration. I want to be able to reuse the visual > theme implemented in CSS for the rest of the web site in the time limit > mentioned before. When my system has some more polish then maybe your 4 hour limit can be satisfied. Right now, being my only customer, it may not pass your definition of "easy". But, you are welcome to take a look and try. > Could you please provide some links? I am especially interested in > tutorials on setting them up. I don't guarantee that it will live up to its name but here is my generator: https://github.com/brettviren/joyful-web It's mostly Python based and uses Jinja2 templates. Emacs is used to generate a JSON dump of the org-element tree, to produce the HTML body text and to make a PDF. I don't have many examples in the source but I do inside my actual Org content area. Some things to look at include the main config file: https://github.com/brettviren/org-pub/blob/master/joy.cfg an example template: https://github.com/brettviren/org-pub/tree/master/templates/topic.html and, maybe look at how I call "joy" to rebuild the site. I use "waf" to do that and its control file is: https://github.com/brettviren/org-pub/blob/master/wscript I only have this working on my laptop now so I can't show you the results at the moment.=20=20 =2DBrett. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJW4LLkAAoJEFsAceCXpRtHxdoP/0/aAHmTZ4HvwKNEwwPmI7Pa nrA/nAS5ZSbcrbWivl53zB9piZ5+0+Lo8EMaY8ntgeB4WdMyjmIyy+1Iku+QZSUC VB9on5ZxhFqpj6ceq9a8cp52aJHlc4XbEB7CPVJ03FAa+gNUxw0GBz7IIxJX1/yH jOeO75yCWvBWK0GstM/GRvNTN/0sjDkf/v7y7WSJN1f8OfUqx0Rkd1eVgvKIcxja 20RdgvD4kpTBWbwoKbhQq7Zero6uPYjZywS+nCc+uxn0IHw22rASKB5jba6rwggO MnqwkCFHTbI00aKWKRgF4RQYKuLTDDAm707HpccIwciubitulpDpKiuLBwW/Gs// 0q08gFaNrWp9xfsqrbF7EwViLCzZdsPjNCGy0NiJhcA3FppvDwqiqwYPoPByiLa4 00REhtB5s1JUWn+107ITMJJd6u4J3lq5njXvRpE2lVGlDotTA5zzx+y6TdlwATJB YD10HxvAPXj7Q8wIYCX1R2piU/7J7lsh+hK8sPqqvixR6+fuIh7LqF3CTQhxLTrk y0mPl4frmjDzoEmQI8GN/zUZzFfE6YNLfT/2uUJUjJM6UOQlpr3QLOGfY75Vv1iQ u6RB2wdc+GmV27bCRQKZJr8imR1+wwuhS228xGBdHL+42pCTb3zqGgKaO0Y4uuXX aYebkmR4Uj40tpJLNLW/ =cxRd -----END PGP SIGNATURE----- --=-=-=--