Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SirryChen committed May 22, 2024
1 parent 281badc commit c8e42a3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
6 changes: 2 additions & 4 deletions _includes/disqus.html → _includes/disqus_blog.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_config = function () {
// this.page.url = "https://sirrychen.github.io/blogs/";
// this.page.identifier = "https://sirrychen.github.io/blogs/";
this.page.url = {{ include.url }};
this.page.identifier = {{ include.url }};
this.page.url = "https://sirrychen.github.io/blogs/";
this.page.identifier = "https://sirrychen.github.io/blogs/";
};

// You should be able to get the following lines of code from your Disqus admin.
Expand Down
25 changes: 25 additions & 0 deletions _includes/disqus_share.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_config = function () {
this.page.url = "https://sirrychen.github.io/share/";
this.page.identifier = "https://sirrychen.github.io/share/";
};

// You should be able to get the following lines of code from your Disqus admin.
// https://disqus.com/admin/universalcode
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://sirrychen.disqus.com/embed.js';
// DISQUS Instructions:
// https://help.disqus.com/en/articles/1935528-jekyll-installation-instructions

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>


<!-- 评论设置 -->
2 changes: 1 addition & 1 deletion blogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title: Blogs

<br>

{% include disqus.html url="https://sirrychen.github.io/blogs/" %}
{% include disqus_blog.html%}

<br>

Expand Down
2 changes: 1 addition & 1 deletion share.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ title: Share

<br>

{% include disqus.html url="https://sirrychen.github.io/share/" %}
{% include disqus_share.html%}

<br>

Expand Down

0 comments on commit c8e42a3

Please sign in to comment.