* [RFI] Using DISQUS on certain pages @ 2010-11-09 2:43 Jeff Horn 2010-11-09 14:01 ` Juan Reyero 0 siblings, 1 reply; 4+ messages in thread From: Jeff Horn @ 2010-11-09 2:43 UTC (permalink / raw) To: Org-mode ml 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 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFI] Using DISQUS on certain pages 2010-11-09 2:43 [RFI] Using DISQUS on certain pages Jeff Horn @ 2010-11-09 14:01 ` Juan Reyero 2010-11-09 19:05 ` Jeff Horn 0 siblings, 1 reply; 4+ messages in thread From: Juan Reyero @ 2010-11-09 14:01 UTC (permalink / raw) To: Jeff Horn; +Cc: org-mode Mailing List On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn <jrhorn424@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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFI] Using DISQUS on certain pages 2010-11-09 14:01 ` Juan Reyero @ 2010-11-09 19:05 ` Jeff Horn 2010-11-09 21:17 ` Juan Reyero 0 siblings, 1 reply; 4+ messages in thread From: Jeff Horn @ 2010-11-09 19:05 UTC (permalink / raw) To: Juan Reyero; +Cc: org-mode Mailing List 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 <joanmg@gmail.com> wrote: > On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn <jrhorn424@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 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFI] Using DISQUS on certain pages 2010-11-09 19:05 ` Jeff Horn @ 2010-11-09 21:17 ` Juan Reyero 0 siblings, 0 replies; 4+ messages in thread From: Juan Reyero @ 2010-11-09 21:17 UTC (permalink / raw) To: Jeff Horn; +Cc: org-mode Mailing List On Tue, Nov 9, 2010 at 8:05 PM, Jeff Horn <jrhorn424@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 <joanmg@gmail.com> wrote: >> On Tue, Nov 9, 2010 at 3:43 AM, Jeff Horn <jrhorn424@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 > jhorn@gmu.edu > jrhorn424@gmail.com > > http://www.failuretorefrain.com/jeff/ > -- http://juanreyero.com/ http://unarueda.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-09 21:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-09 2:43 [RFI] Using DISQUS on certain pages Jeff Horn 2010-11-09 14:01 ` Juan Reyero 2010-11-09 19:05 ` Jeff Horn 2010-11-09 21:17 ` Juan Reyero
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.