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

Add comment youyan #1324

Merged
merged 7 commits into from
Jan 5, 2017
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ mathjax:
# Gentie productKey
#gentie_productKey:

# support youyan comments,
# you can regist and get your uid from http://www.uyan.cc
# youyan uid ,like youyan_id=2343223
Copy link
Collaborator

Choose a reason for hiding this comment

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

-youyan uid ,like youyan_id=2343223
+youyan uid, like youyan_id=2343223

Copy link
Contributor Author

Choose a reason for hiding this comment

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

???

Copy link
Collaborator

@ivan-nginx ivan-nginx Dec 27, 2016

Choose a reason for hiding this comment

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

Fix on this:

# Support for youyan comments system.
# You can get your uid from http://www.uyan.cc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what is meaning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok ,i know!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haa, my English is so poor...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

#youyan_uid: your uid

# Baidu Share
# Available value:
# button | slide
Expand Down
2 changes: 1 addition & 1 deletion layout/_layout.swig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
{% block content %}{% endblock %}
{% block content %}{% endblock %}
</div>
{% include '_partials/duoshuo-hot-articles.swig' %}
{% include '_partials/comments.swig' %}
Expand Down
2 changes: 2 additions & 0 deletions layout/_partials/comments.swig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<div id="hypercomments_widget"></div>
{% elseif theme.gentie_productKey %}
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
{% elseif theme.youyan_uid %}
<div id="uyan_frame"></div>
{% endif %}
</div>
{% endif %}
1 change: 1 addition & 0 deletions layout/_scripts/third-party/comments.swig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
{% include './comments/disqus.swig' %}
{% include './comments/hypercomments.swig' %}
{% include './comments/gentie.swig' %}
{% include './comments/youyan.swig' %}
Copy link
Contributor

@geekrainy geekrainy Dec 27, 2016

Choose a reason for hiding this comment

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

A new at end of the file.

17 changes: 17 additions & 0 deletions layout/_scripts/third-party/comments/youyan.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% if not (theme.duoshuo and theme.duoshuo.shortname)
and not theme.duoshuo_shortname
and not theme.disqus_shortname
and not theme.hypercomments_id
and not theme.gentie_productKey %}

{% if theme.youyan_uid %}
{% set uid = theme.youyan_uid %}
{% endif %}

{% if page.comments %}
<!-- UY BEGIN -->
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid={{uid}}"></script>
<!-- UY END -->
{% endif %}

{% endif %}