Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pelican-bootstrap3: Fix Disqus bug #581 #582

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

ganziqim
Copy link
Contributor

Update the DISQUS "disqus_config" function code style as the example on https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables.

The "page.identifier" variable always be formatting to "%Y-%m-%d-slug", because an ID conflict may occur while two articles in different categories have the same slug.(https://help.disqus.com/customer/portal/articles/662547-why-are-the-same-comments-showing-up-on-multiple-pages-) Although article metadata "date" is not mandatory, but it causes an error when it is non-existent, maybe it is used somewhere else.

The "page.url" variable is specified only when "SITEURL" exists( https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables#thispageurl):

Please note that an absolute URL is required for the this.page.url variable. Using a relative URL for this variable may prevent Disqus from loading successfully on the page.

@ganziqim ganziqim changed the title Fix: pelican-bootstrap3 DISQUS bug #581 Fix: pelican-bootstrap3 DISQUS bug #581 Dec 27, 2017
@ganziqim
Copy link
Contributor Author

ganziqim commented Jan 6, 2018

someone review this pr?

@ganziqim
Copy link
Contributor Author

rebase master branch

@justinmayer
Copy link
Member

Many thanks for the enhancement and your patience, @ganziqim.

@justinmayer justinmayer changed the title Fix: pelican-bootstrap3 DISQUS bug #581 pelican-bootstrap3: Fix Disqus bug #581 Sep 17, 2018
@justinmayer justinmayer merged commit 5d3f1ee into getpelican:master Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants