imathis/octopress — pull request #1432 by Haacked (2013-11-29 04:23:48+00:00)
Title: Add explicit disqus_identifier page setting

Some blog engines use a database generated identifier for the `disqus_identifier` value. This ensures that the comments are matched to the post even if you change the URL later.

For example, on my blog, on of my posts has the following:

```
var disqus_identifier = '156';
var disqus_url = 'http://haacked.com/archive/2004/02/03/the-new-digs.aspx';
```

This makes it very difficult to retain my Disqus comments when moving over to Octopress.

This PR adds a page field for explicitly setting the `disqus_identifier`. So on my blog, I can just set `disqus_identifier: 123` in the YAML front matter and it'll use that instead of the URL. Posts that don't have this page field set use the original behavior.

This also provides a potential solution for people who want to migrate to a new domain, but keep their comments.