Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
masteranthoneyd committed Jun 28, 2017
1 parent ed95b85 commit 91b6da1
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,5 @@ db.json
*.log
node_modules/
public/
.deploy*/
.deploy*/
.idea/
Binary file added source/images/avatar/default-avatar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 26 additions & 7 deletions themes/next/layout/_partials/comments.swig
Expand Up @@ -13,14 +13,33 @@
</div>
{% elseif theme.disqus_shortname %}
<div style="text-align:center;">
<button class="btn" id="load-disqus" onclick="disqus.load();">加载 Disqus 评论</button>
<!-- <button class="btn" id="load-disqus" onclick="disqus.load();">加载 Disqus 评论</button> -->

</div>
<div id="disqus_thread">
<noscript>
Please enable JavaScript to view the
<a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>
</div>
<div id="disqus_proxy_thread"></div>
<div id="disqus_thread"></div>

<script type="text/javascript">
window.disqusProxy = {
username: 'ookamiAntD',
server: 'disqus-proxy.yangbingdong.com',
port: 5509,
defaultAvatar: '/images/avatar/default-avatar.png',
adminAvatar: '/images/avatar/avatar02.jpeg',
identifier: '{{ page.path }}'
};
window.disqus_config = function () {
this.page.url = '{{ page.permalink }}';
this.page.identifier = '{{ page.path }}';
};
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = '/static/js/main.0d0338ae.js';
s.async = true;
document.body.appendChild(s);
</script>
<link rel="stylesheet" href="/static/css/main.0603c539.css">

{% elseif theme.hypercomments_id %}
<div id="hypercomments_widget"></div>
{% elseif theme.gentie_productKey %}
Expand Down
20 changes: 10 additions & 10 deletions themes/next/layout/_scripts/third-party/comments/disqus.swig
Expand Up @@ -18,16 +18,16 @@
}

var disqus = {
load : function disqus(){
if(typeof DISQUS !== 'object') {
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
$('#load-disqus').html("评论加载中,请确保你有梯子,若评论长时间未加载则你可能翻墙失败...").fadeOut(9000); ///加载后移除按钮
}
load : function disqus(){
if(typeof DISQUS !== 'object') {
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
$('#load-disqus').html("评论加载中,请确保你有梯子,若评论长时间未加载则你可能翻墙失败...").fadeOut(9000); ///加载后移除按钮
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions themes/next/source/static/css/main.0603c539.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions themes/next/source/static/css/main.0603c539.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions themes/next/source/static/js/0.7d3e2ccc.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/next/source/static/js/0.7d3e2ccc.chunk.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions themes/next/source/static/js/main.0d0338ae.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/next/source/static/js/main.0d0338ae.js.map

Large diffs are not rendered by default.

0 comments on commit 91b6da1

Please sign in to comment.