Use friends to do octopress comment system, use network to do share

Source: Internet
Author: User

Friends say, add net is family. Just do each use, UF words instead of disqus comment system, with the network to do share to micro-X function.

Registering and obtaining Code

Friends say, add network is family, as long as the registration of the network on the line. After logging in, there is code in Jiathis to enter and customize, and then get the code, in the friend said to get the code, here to get the code.

Create a new page file that displays comments and shares

Create a new source/_includes/post/share_comment.html and copy the obtained code here.

If you want to show the share button in the sidebar, you need to refer to the custom sidebar, and put the code to add the net.

Configuration Display Start

To add a switch in the _CONFIG.YML:

1 2
# jiathiscomment_share: true

Add the following code to the source/_includes/post/sharing.html (please consciously remove):

1 2 3 4
<!-- JiaThis Button -->  \{\% if site.comment_share %}    \{\% include post/share_comment.html %}  \{\% endif %}
The verification of the friend Word net

You can only set it after you have verified the network. When you log in to your friends Web site, you'll see a list of websites that use your friend code. You can see the validation status at status. In the action, click "Validate", select "Upload HTML file" at "Select Authentication Method", then click "Download verification File" To obtain the verification file. Verify that the file is an empty file. Put it in the source directory, do rake deploy operation, you can automatically verify.

After validation, you can set adjustments to the display of comments. <p class= ' post-footer ' > Original link address: http://pangyi.github.io/blog/20150125/ shi-yong-you-yan-zuo-octopressde-ping-lun-xi-tong-,shi-yong-jia-wang-zuo-fen-xiang/
Written by pangyi?posted at http://pangyi.github.io</p>

Use friends to do octopress comment system, use network to do share

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.