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

Master #1531

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Master #1531

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ mathjax:
# Gentie productKey
#gentie_productKey:

# Gentie hot article
# gentie_productKey must NOT be null when gentie_hotartical is true!
#gentie_hotartical: true
Copy link
Owner

Choose a reason for hiding this comment

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

gentie_hotartical should be gentie_hot_articles. Please don't follow the mistake.


# changyan
changyan:
enable: false
Expand Down Expand Up @@ -355,7 +359,8 @@ duoshuo_info:
admin_enable: false
user_id: 0
#admin_nickname: Author

# 多说热评文章功能
Copy link
Contributor

Choose a reason for hiding this comment

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

# Duoshuo hot commentary article

Copy link
Owner

Choose a reason for hiding this comment

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

DuoShuo related functionality would be deleted.

#duoshuo_hotartical: true

# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
Expand Down
1 change: 1 addition & 0 deletions layout/_layout.swig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
{% block content %}{% endblock %}
</div>
{% include '_third-party/duoshuo-hot-articles.swig' %}
{% include '_third-party/gentie-hot-articles.swig' %}
{% include '_partials/comments.swig' %}
</div>
{% if theme.sidebar.display !== 'remove' %}
Expand Down
15 changes: 15 additions & 0 deletions layout/_third-party/gentie-hot-articles.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{# 网易云跟帖热评文章 #}
Copy link
Contributor

@geekrainy geekrainy Apr 21, 2017

Choose a reason for hiding this comment

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

{# Hot commentary article for NetEase gentie comments #}

{% if (theme.gentie_hotartical and page.title) %}


<div id="hot-news-wrap"></div>
<script>var yunModuleEnv = true;</script>
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
<script>
var yunTieProductKey = "{{gentie_productKey}}";
var yunHotNewsWrap = "hot-news-wrap"; //放置的DOM节点ID 或 样式类
Copy link
Contributor

Choose a reason for hiding this comment

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

// Placed DOM id or class

Tie.loader("aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vZXh0ZW5kL2hvdF9uZXdzX3NjcmlwdC5odG1s", true);
</script>


{% endif %}