From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Reyero Subject: Re: [RFI] Using DISQUS on certain pages Date: Tue, 9 Nov 2010 22:17:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39026 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFvZo-00040v-B3 for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 16:18:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFvZm-0001bV-Vs for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 16:18:00 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:33955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFvZm-0001bR-Rg for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 16:17:58 -0500 Received: by iwn9 with SMTP id 9so8370168iwn.0 for ; Tue, 09 Nov 2010 13:17:58 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: org-mode Mailing List On Tue, Nov 9, 2010 at 8:05 PM, Jeff Horn wrote: > I think Greater Skies is a very inspiring > project, and must be rewarding to work on. Thank you very much. It is indeed very rewarding, but only in the rare occasions when I find the time to work on it. Will keep moving, though. > So, if I've gleaned from the source correctly, you've defined a custom > postamble and put both pieces of code Disqus generates into the > postamble? I put them on the templates in jekyll's _layouts. Then you can choose which layout to use with an html chunk at the beginning of each org file, like ---------------- Beginning of file #+begin_html #+include: "../../../loc/en.yml" date: 2008-04-15 layout: page --- #+end_html > Also, I didn't see if you needed to use the #diqus_comments > id, as disqus suggests, in order to get it to work. I don't know. I set it up quite a while ago, it might have changed. But what's there seems to work. The whole setup is kind of tricky, because I wanted to support a multilanguage site that wasn't a nightmare to update, but I think the above covers what you need. Best, jm > On Tue, Nov 9, 2010 at 9:01 AM, Juan Reyero wrote: >> On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn wrote: >>> Suppose I have a project defined (say, "org-blog") that I use to >>> generate blog posts, and I want to use Disqus to track comments. >>> Further suppose I don't want to use a templating framework such as >>> jekyll to transform org into HTML. Does anyone have experience >>> inserting disqus code into preambles/postambles? >> >> Yes, and it works great. =A0If you want to see a working example =A0take= a >> look at http://greaterskies.com. =A0The source code, including the >> org-mode setup and headers, footers and jekyll extras, is at >> https://github.com/juanre/Greater-Skies. =A0The blog part (not at all >> obvious on the web, just used to enable subscriptions) is done with >> org-jekyll, https://github.com/juanre/org-jekyll. >> >> Hope it helps. >> >> jm >> --- >> http://juanreyero.com >> ps. =A0My personal web is also done like that, all org-mode and org-jeky= ll. >> > > > > -- > Jeffrey Horn > Graduate Lecturer and PhD Student in Economics > George Mason University > > (704) 271-4797 > jhorn@gmu.edu > jrhorn424@gmail.com > > http://www.failuretorefrain.com/jeff/ > --=20 http://juanreyero.com/ http://unarueda.com