From: Juan Reyero <joanmg@gmail.com>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: org-mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [RFI] Using DISQUS on certain pages
Date: Tue, 9 Nov 2010 22:17:56 +0100 [thread overview]
Message-ID: <AANLkTimoXokjegimep=BgLThkL18SvATLpSAmCChC50f@mail.gmail.com> (raw)
In-Reply-To: <AANLkTima5f5u32q2vRKx=Gjg0FEZ9yVM9tyrwG6W50LL@mail.gmail.com>
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
prev parent reply other threads:[~2010-11-09 21:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTimoXokjegimep=BgLThkL18SvATLpSAmCChC50f@mail.gmail.com' \
--to=joanmg@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jrhorn424@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.