Skip to content

Possibility to tune disqusIdentifier#23

Open
varya wants to merge 3 commits into
docpad:masterfrom
varya:master
Open

Possibility to tune disqusIdentifier#23
varya wants to merge 3 commits into
docpad:masterfrom
varya:master

Conversation

@varya

@varya varya commented May 25, 2014

Copy link
Copy Markdown

When moving my blog from Jekyll to DocPad I faced the need to preserve Disqus comments which I already had to my posts. But I used different code to embed Disqus which did not provide window.disqus_identifier. Thus, to preserve comments I need now to define window.disqus_identifier as undefined for my older posts. I decided that this would be not very nice to modify @document.slug for this. So, I think this would be much better to have optional disqusIdentifier attribute which takes care of it.

@mikeumus

Copy link
Copy Markdown
Member

Affects #14 (and #19 closed-merged).

disqusDeveloper = if 'production' in @getEnvironments() then '0' else '1'
pageUrl = @getPageUrl()
disqusIdentifier = @document.slug
if @document.disqusIdentifier isnt undefined

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be if @document.disqusIdentifier?

@balupton

balupton commented Aug 1, 2019

Copy link
Copy Markdown
Member

I have become too preoccupied by other things to review, merge, and release this PR.

However, you should have received an invite a while ago to join the DocPad Extras Team, which will give you write access to this repository, so you can merge in the PR.

For an orientation, or if you need any assistance following the semi-automatic release process from CONTRIBUTING.md, reach out via https://bevry.me/discord/dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants