Re: [Orgmode] [RFI] Using DISQUS on certain pages

2010-11-09 Thread Juan Reyero
On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com 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.  If you want to see a working example  take a
look at http://greaterskies.com.  The source code, including the
org-mode setup and headers, footers and jekyll extras, is at
https://github.com/juanre/Greater-Skies.  The 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.  My personal web is also done like that, all org-mode and org-jekyll.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [RFI] Using DISQUS on certain pages

2010-11-09 Thread Jeff Horn
Juan,

Thanks for sharing! I had run across your personal page before,
probably linked from worg. I think Greater Skies is a very inspiring
project, and must be rewarding to work on.

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 wasn't sure whether I should separate them or if it would
matter. Also, I didn't see if you needed to use the #diqus_comments
id, as disqus suggests, in order to get it to work.

Thanks again!
Jeff

On Tue, Nov 9, 2010 at 9:01 AM, Juan Reyero joa...@gmail.com wrote:
 On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com 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.  If you want to see a working example  take a
 look at http://greaterskies.com.  The source code, including the
 org-mode setup and headers, footers and jekyll extras, is at
 https://github.com/juanre/Greater-Skies.  The 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.  My personal web is also done like that, all org-mode and org-jekyll.




-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [RFI] Using DISQUS on certain pages

2010-11-09 Thread Juan Reyero
On Tue, Nov 9, 2010 at 8:05 PM, Jeff Horn jrhorn...@gmail.com 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 joa...@gmail.com wrote:
 On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn jrhorn...@gmail.com 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.  If you want to see a working example  take a
 look at http://greaterskies.com.  The source code, including the
 org-mode setup and headers, footers and jekyll extras, is at
 https://github.com/juanre/Greater-Skies.  The 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.  My personal web is also done like that, all org-mode and org-jekyll.




 --
 Jeffrey Horn
 Graduate Lecturer and PhD Student in Economics
 George Mason University

 (704) 271-4797
 jh...@gmu.edu
 jrhorn...@gmail.com

 http://www.failuretorefrain.com/jeff/




-- 
http://juanreyero.com/
http://unarueda.com

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [RFI] Using DISQUS on certain pages

2010-11-08 Thread Jeff Horn
Hello orgsters,

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?

So far, I've defined a few variables in my projects file, but I'd just
like to know if there are any best-practices or tips anyone can share
who has emarked upon a similar quest before.

Better to ask know, when I'm awake, than when I'm tired after
bug-squashing my own amateur, careless programming.

Thanks in advance!
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode