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

Minimal fixes for Disqus #775

Merged
merged 1 commit into from
May 8, 2024
Merged

Minimal fixes for Disqus #775

merged 1 commit into from
May 8, 2024

Conversation

kant2002
Copy link
Contributor

I create local modification, and only using absolute URL make Disqus works.

@kant2002
Copy link
Contributor Author

We have #536 and #569 which attempt to fix default. I think that's all what is needed. Disqus only wants absolute URL

Copy link
Member

@mattr- mattr- left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@jekyllbot: merge +fix

@jekyllbot jekyllbot merged commit 6b512a1 into jekyll:master May 8, 2024
1 check passed
jekyllbot added a commit that referenced this pull request May 8, 2024
@@ -3,7 +3,7 @@
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ page.url | absolute_url }}';
this.page.url = '{{ absolute_url }}';

Choose a reason for hiding this comment

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

absolute_url is a filter (https://jekyllrb.com/docs/liquid/filters/), and, from my knowledge and testing, it doesn't do anything when used directly.

So, shouldn't this be changed to

this.page.url = '';

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this did not work for me on GitHub pages.

Choose a reason for hiding this comment

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

What does {{ absolute_url }} expand to, in your case?

I tested, and in my case, it expands to nothing: this.page.url = '';, which is what I assumed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. in my case it's this.page.url = '';

@kant2002 kant2002 deleted the patch-1 branch May 12, 2024 16:04
@Me042589
Copy link

Woke

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.

5 participants