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

Add comment youyan #1324

merged 7 commits into from
Jan 5, 2017

Conversation

jinfang134
Copy link
Contributor

@jinfang134 jinfang134 commented Dec 24, 2016

for issue #1305

add youyan comments for next themes
添加友言评论支持,

for more detail,please read my blog.
更多细节请访问我的博客http://jinfang.oschina.io/posts/5f6c0475/

@@ -277,6 +277,9 @@ mathjax:
# Gentie productKey
#gentie_productKey:

# youyan uid
Copy link
Collaborator

Choose a reason for hiding this comment

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

Link to get youyan uid in comment maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

login uyan.cc
then get your code
e.g.

<!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=34343324"></script>
<!-- UY END -->

then just fill your uid get from uyan.cc in the _config.yml
e.g.
youyan_uid=34343324

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the url of youyan is http://uyan.cc
and it is just in Chinese

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks.
In _config.yml this comment in short variant maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I write a blog to explain how to implement ,
https://jinfang134.github.io/posts/5f6c0475/
sorry for it is writen in chinese.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just fill in the youyan_uid in the _config.yml for adding youyan comment in your hexo

<!-- UY END -->
{% endif %}

{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

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

You can add a new line at end of file.

@@ -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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Keep indent 2 spaces. :)

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:
# support youyan comments,
# you can regist and get your uid from http://www.uyan.cc
# for more informations, you can visit my blog https://jinfang134.github.io/posts/5f6c0475/
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.

No need to PR your blog in config file. All info about usage must be in conversation. For example, u can see my pulls.

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 modify it

@@ -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.

@@ -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!

@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Dec 27, 2016

Well done. For now code looks fine. Now need just wait for merge.

And Happy New Year to everybody! :>

@jinfang134
Copy link
Contributor Author

Happy new year.
I have five days holiday.

@iissnan iissnan merged commit 1d81159 into iissnan:master Jan 5, 2017
@ehlxr
Copy link

ehlxr commented Jan 6, 2017

请问,如何此加上评论数的显示!
image

@jinfang134
Copy link
Contributor Author

jinfang134 commented Jan 6, 2017 via email

@jinfang134
Copy link
Contributor Author

jinfang134 commented Jan 6, 2017 via email

@ehlxr
Copy link

ehlxr commented Jan 6, 2017

@jinfang134 多谢,多说也是第三方的,目前可以显示
image

habren pushed a commit to habren/hexo-theme-next that referenced this pull request Apr 9, 2017
@monotone
Copy link

@jinfang134 友言评论功能失效了吗? monotone.github.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants