diff --git a/_config.yml b/_config.yml index 202608027..eb967a4ac 100755 --- a/_config.yml +++ b/_config.yml @@ -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 + # changyan changyan: enable: false @@ -355,7 +359,8 @@ duoshuo_info: admin_enable: false user_id: 0 #admin_nickname: Author - +# 多说热评文章功能 +#duoshuo_hotartical: true # Facebook SDK Support. # https://github.com/iissnan/hexo-theme-next/pull/410 diff --git a/layout/_layout.swig b/layout/_layout.swig index d6684610c..5a0afaa9a 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -34,6 +34,7 @@ {% block content %}{% endblock %} {% include '_third-party/duoshuo-hot-articles.swig' %} + {% include '_third-party/gentie-hot-articles.swig' %} {% include '_partials/comments.swig' %} {% if theme.sidebar.display !== 'remove' %} diff --git a/layout/_third-party/gentie-hot-articles.swig b/layout/_third-party/gentie-hot-articles.swig new file mode 100644 index 000000000..254d719f7 --- /dev/null +++ b/layout/_third-party/gentie-hot-articles.swig @@ -0,0 +1,15 @@ +{# 网易云跟帖热评文章 #} +{% if (theme.gentie_hotartical and page.title) %} + + +
+ + + + + +{% endif %}