Skip to content

Commit 3030403

Browse files
committed
google analses
1 parent 8c600e2 commit 3030403

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

_layouts/post.html

+23
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,28 @@ <h5>
119119

120120

121121
{% if site.disqus_username %}
122+
<div id="disqus_thread"></div>
123+
<script>
124+
/**
125+
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
126+
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
127+
/*
128+
var disqus_config = function () {
129+
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
130+
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
131+
};
132+
*/
133+
(function() { // DON'T EDIT BELOW THIS LINE
134+
var d = document, s = d.createElement('script');
135+
s.src = 'https://pzhou-me.disqus.com/embed.js';
136+
s.setAttribute('data-timestamp', +new Date());
137+
(d.head || d.body).appendChild(s);
138+
})();
139+
</script>
140+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
141+
122142
<!-- disqus 公共JS代码 start (一个网页只需插入一次) -->
143+
<!--
123144
<script type="text/javascript">
124145
/* * * CONFIGURATION VARIABLES * * */
125146
var disqus_shortname = "{{site.disqus_username}}";
@@ -132,7 +153,9 @@ <h5>
132153
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
133154
})();
134155
</script>
156+
-->
135157
<!-- disqus 公共JS代码 end -->
158+
136159
{% endif %}
137160

138161

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h3 class="post-subtitle">
2828
</div>
2929
<hr>
3030
{% endfor %}
31+
3132
<!-- Pager -->
3233
{% if paginator.total_pages > 1 %}
3334
<ul class="pager">

0 commit comments

Comments
 (0)