hexo添加disqus_使用Disqus将传统评论添加到Tumblr博客

hexo添加disqus

hexo添加disqus

Would you like to add a traditional comment box to your Tumblr blog?  Here’s how you can add the Disqus comment system to your Tumblr blog to find out what other think about your posts.

您想在Tumblr博客中添加传统评论框吗? 您可以通过以下方式将Disqus评论系统添加到您的Tumblr博客中,以了解其他人对您的帖子的看法。

Tumblr’s default “Like” and “Reblog” options are an attempt to reinvent comments, but they only work well when all of your friends and readers are using Tumblr.  Adding traditional comments to your Tumblr blog can broaden your site’s community and make it more fun and useful.  Although Tumblr doesn’t include a standard commenting system, it does allow you to integrate the Disqus comment system, which can bring both comments and feedback from social networks to your blog in only a few steps.  Here’s how you can register and add Disqus to your Tumblr blog.

Tumblr的默认“ Like”和“ Reblog”选项是一种尝试重新编写评论的尝试,但是只有当您所有的朋友和读者都在使用Tumblr时,它们才能很好地起作用。 在您的Tumblr博客中添加传统评论可以扩大您网站的社区,使其更加有趣和实用。 尽管Tumblr不包含标准的评论系统,但它确实允许您集成Disqus评论系统,该系统仅需几个步骤就可以将来自社交网络的评论和反馈带到您的博客中。 这是注册和将Disqus添加到Tumblr博客的方法。

Register Your Blog With Disqus

用Disqus注册您的博客

Head over to Disqus.com to signup for an account and add it to your blog.  Click Sign Up, Free to get started.

转到Disqus.com上注册一个帐户,并将其添加到您的博客中。 单击免费注册

sshot-2010-07-13-[11-48-09]

Enter your blog’s URL address, which is usually your_blog.tumblr.com.  Then enter a name for your site, as well as a Shortname that uses no spaces or special characters other than dashes.  Make sure to copy your shortname, as this is what you’ll need to add Disqus to Tumblr.

输入您博客的URL地址,通常是your_blog .tumblr.com。 然后输入您的站点的名称,以及不使用空格或破折号以外的特殊字符的简称。 确保复制您的简称,因为这是将Disqus添加到Tumblr所需要的。

image

Enter your username, password, and email address below to create your moderator profile, and then click Continue.

在下面输入您的用户名,密码和电子邮件地址以创建您的主持人资料,然后点击继续

image

Now, on the second page, you’ll need to choose some settings for your blog’s comments.  Select your language at the top, and then you can add many optional, social features or simply click Continue at the bottom to add a standard comment field to your blog.

现在,在第二页上,您需要为博客的评论选择一些设置。 在顶部选择您的语言,然后可以添加许多可选的社交功能,或者只需单击底部的继续以向您的博客添加标准评论字段。

image

Disqus Optional Features

Disqus可选功能

The optional features can be very nice.  From the first field, you can select to add a Facebook API connect key, which will let you share comments on Facebook and let Facebook friends comment without logging in again.

可选功能可能非常好。 在第一个字段中,您可以选择添加Facebook API连接密钥,这将使您可以在Facebook上共享评论,并让Facebook朋友发表评论而无需再次登录。

image

One of the worst problems with comments on blogs is spam, and for many bloggers, it has taken the joy out of blogging.  Moderating comments all day is nobody’s definition of fun.  Check the Akismet box to enable spam filtering on your comments, and enter your Akismet API key.  If you don’t already have one, check out our post on Adding WordPress.com Features to Your Blog for info on signing up for a free Akismet API key.

博客评论中最严重的问题之一是垃圾邮件,对于许多博客作者而言,垃圾邮件已使人们感到无聊。 整天主持评论是没有人对乐趣的定义。 选中Akismet框以对您的评论启用垃圾邮件过滤,然后输入您的Akismet API密钥。 如果您还没有一个,请查看我们在将WordPress.com功能添加到博客中的文章,以获取有关注册免费的Akismet API密钥的信息。

image

If you’d like to see what other people across the internet are saying about your site, check the Reactions box.  You can choose to see posts from Twitter, Blogger, WordPress, Hacker News, Digg, and more, or simply select Select all services to see every reaction Disqus finds.

如果您想查看互联网上其他人对您网站的评价,请选中“React”框。 您可以选择查看来自Twitter,Blogger,WordPress,Hacker News,Digg等的帖子,也可以选择“选择所有服务”以查看Disqus找到的每个React。

image

By default, if someone wants to leave a comment on your blog, they’ll have to enter their name, email, and password or sign in with a Disqus profile.  If you’d like to make it easier, check the Display login buttons with comment box near the bottom of the page.  Now you can select to let visitors sign in with their Facebook, Twitter, OpenID, or more to make it easier for them to comment.

默认情况下,如果某人想在您的博客上发表评论,则必须输入其名称,电子邮件和密码或使用Disqus配置文件登录。 如果您想简化操作,请选中页面底部附近的显示带注释的登录按钮框。 现在,您可以选择允许访问者使用其Facebook,Twitter,OpenID或其他帐户登录,以使其更易于评论。

image

Once you’ve selected the options you want, click Continue on the bottom of the page.

选择所需的选项后,单击页面底部的继续

image

Now your Disqus account is setup and ready to add to your blog.  Disqus works with a variety of blogging systems, so it will offer instructions on installing it on your own site.  Click the Tumblr link for more info on installing it in Tumblr, or just keep reading here to finish getting it setup the easy way.  Note that you may need some code from this page if your theme doesn’t automatically support Disqus comments, so you may want to open it in another tab for reference.

现在,您的Disqus帐户已经设置好,可以添加到您的博客了。 Disqus可与各种博客系统配合使用,因此将提供有关在您自己的网站上安装它的说明。 单击Tumblr链接以获取有关在Tumblr中安装它的更多信息,或者只是继续阅读此处以完成简单设置。 请注意,如果您的主题不自动支持Disqus评论,那么您可能需要此页面上的一些代码,因此您可能希望在另一个选项卡中将其打开以供参考。

image

Add Disqus To Your Tumblr

将Disqus添加到您的Tumblr

Head over to your Tumblr dashboard, and select the Customize link on the right side.  Alternately, if you’re logged into Tumblr, simply browse to Tumblr.com/customize.

转到您的Tumblr仪表板,然后选择右侧的Customize链接。 或者,如果您已登录Tumblr,只需浏览至Tumblr.com/customize

image

On the Customize page, select the Appearance tab.

在“自定义”页面上,选择“外观”选项卡。

image

Scroll down to the bottom of that list, and paste your Disqus shortname in the Disqus shortname box.  Remember, this is the shortname you entered when you were signing up for Disqus.  You may see different options depending on your theme, but most themes will include a Disqus options box.

向下滚动到该列表的底部,然后将您的Disqus短名称粘贴到Disqus短名称框中。 请记住,这是您注册Disqus时输入的简称。 您可能会看到不同的选项,具体取决于您的主题,但是大多数主题都会包含一个Disqus选项框。

SNAGHTMLfa2c8e

Once you’re done, click Save + Close in the top right corner.

完成后,单击右上角的保存+关闭

image[42]

Adding Disqus Manually to Tumblr

手动将Disqus添加到Tumblr

If you do not see the Disqus box in your Appearance settings, then you’ll need to add the Disqus info manually to your theme.  Please note that this is a fairly advanced step, and while we show how to do this generally, it may not work on all themes the same.  If you feel unsure, you may want to switch to one of the Featured themes, as all of them include Disqus support.

如果您在外观设置中没有看到“ Disqus”框,则需要将“ Disqus”信息手动添加到主题中。 请注意,这是一个相当高级的步骤,尽管我们展示了通常的操作方法,但可能并非对所有主题都适用。 如果您不确定,则可能要切换到“特色”主题之一,因为所有主题均包含Disqus支持。

To proceed and add Disqus manually, select the Theme tab,

要继续并手动添加Disqus,请选择主题标签,

image

and then click the Use custom HTML link at the bottom of the theme tab.

然后单击主题选项卡底部的“使用自定义HTML”链接。

image

Now, in a separate window or tab, open your Disqus instructions page we mentioned earlier.  If you don’t have it open, browse to the Disqus Tumblr installation page (link below).  Once you’re there, copy the text in the box under Manual Instructions part 2.

现在,在单独的窗口或标签中,打开我们前面提到的Disqus指示页面。 如果您没有打开它,请浏览到Disqus Tumblr安装页面(下面的链接)。 到那里后,将文本复制到“手册说明”第2部分下的框中。

image

Back in Tumblr, paste this code in your HTML source directly under:

返回Tumblr,将此代码直接粘贴到您HTML源代码中:

{/block:Posts}

{/ block:帖子}

If you can’t find this, you can press Ctrl+F and then enter the search term in your browser.

如果找不到,可以按Ctrl + F,然后在浏览器中输入搜索词。

image

Now, copy the text in the 3rd box on the Disqus settings page, and paste it before the {/block:Posts} line.

现在,复制在Disqus设置页面中的第三个框中的文本,而{/块:帖子}之前粘贴线。

image

Once you’re done, click Save + Close in Tumblr as before.  You should now have Tumblr comments on your theme even if it didn’t include them by default.

完成后,请像以前一样单击Tumblr中的Save + Close 。 您现在应该在主题上添加Tumblr注释,即使默认情况下不包含它们也是如此。

image[42]

Disqus on Tumblr

Tumblr上的Disqus

Now, when you visit your Tumblr blog, you’ll notice a couple changes.  These may look differently depending on your theme, but most themes will now show the number of comments and reactions on a post directly on your front page.

现在,当您访问Tumblr博客时,您会注意到一些变化。 根据您的主题,这些外观可能有所不同,但是大多数主题现在将直接在首页上显示帖子的评论和React数量。

image

You’ll also see a new comment box, with the social login options you selected, or alternately traditional name, email, and website fields if you chose that.

您还将看到一个新的注释框,其中包含您选择的社交登录选项,或者您选择的是传统名称,电子邮件和网站字段。

image

Once you’ve got comments, they’ll show up under your post as normal, and you can reply to them in one click.

收到评论后,它们会照常显示在您的帖子下,您可以一键回复。

image

Conclusion

结论

Whether you’re running a personal blog or a corporate news site, comments can be the bridge between you and your readers.  Disqus brings this to your Tumblr blog, and helps you keep up with the entire conversation around your posts.  Combine this with Tumblr’s default like and “Reblog” features, and your blog is more social and connected than ever.

无论您是运行个人博客还是公司新闻网站,评论都可以成为您和读者之间的桥梁。 Disqus将其带到您的Tumblr博客,并帮助您跟上有关帖子的整个对话。 将此功能与Tumblr的默认“赞”和“ Reblog”功能结合使用,您的博客将比以往更加社交化和联系紧密。

If you don’t already have a Tumblr blog, check out our article on how to Create a Beautiful, Easy to Update Blog With Tumblr.  Tumblr makes blogging simpler, and with some of these tricks and tips you can make it work just like you want and contain many of the features of more advanced systems.

如果您还没有Tumblr博客,请查看有关如何使用Tumblr创建美丽,易于更新的博客的文章。 Tumblr使博客变得更简单,并且通过一些技巧和技巧,您可以使其按需运行,并包含更高级系统的许多功能。

Links

链接

Signup for Disqus

注册Disqus

Create a Free Tumblr Blog

创建一个免费的Tumblr博客

Install Disqus on Tumblr Manually

在Tumblr上手动安装Disqus

翻译自: https://www.howtogeek.com/howto/22032/add-traditional-comments-to-tumblr-blogs-with-disqus/

hexo添加disqus

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值