ihewro / Duoshuo Disqus Theme
仿disqus的一款多说风格代码
Stars: ✭ 11
Projects that are alternatives of or similar to Duoshuo Disqus Theme
hugo-dream-plus
🌈 An upgraded version of the Hugo "Dream" theme with tons of new features.
Stars: ✭ 67 (+509.09%)
Mutual labels: disqus
gatsby-plugin-disqus
💬 A plugin for adding Disqus comments to GatsbyJS
Stars: ✭ 40 (+263.64%)
Mutual labels: disqus
newsroom
A simple, minimalistic Hugo theme. View Demo here
Stars: ✭ 200 (+1718.18%)
Mutual labels: disqus
Mouthful
Mouthful is a self-hosted alternative to Disqus
Stars: ✭ 681 (+6090.91%)
Mutual labels: disqus
gatsby-simple-blog
an easily configurable gatsby-starter-blog with overreacted looking and tags, breadcrumbs, disqus, i18n, eslint, algolia supported
Stars: ✭ 48 (+336.36%)
Mutual labels: disqus
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (+427.27%)
Mutual labels: disqus
cusdis
lightweight, privacy-friendly alternative to Disqus.
Stars: ✭ 1,996 (+18045.45%)
Mutual labels: disqus
Disqusjs
💬 Render Disqus comments in Mainland China using Disqus API
Stars: ✭ 455 (+4036.36%)
Mutual labels: disqus
Blog-laravel
This is built on Laravel Framework 5.5. This was built for demonstrate purpose.
Stars: ✭ 48 (+336.36%)
Mutual labels: disqus
Disque作为国外很出名一款第三方评论系统,之前一直想使用,因为体验和主题我都很喜欢。但是前一段时间disqus完全被墙了,没办法使用,于是继续使用多说下去。于是写了一个disqus评论框的样式,并把多说的所有css本地化。
开源项目地址: ihewro/Duoshuo-Disqus-theme
使用说明
评论加载的图片地址:
建议存到你的空间上面去。在css里面搜索替换一下就好了!
comments.php
修改var duoshuoQuery
的选项里面增加一个theme:"none"
的选项来禁止加载多说系统自带的css。
代码示例:
var duoshuoQuery = {short_name:"hewro",theme:"none"};
duoshuo-disqus.css
css文件
修改 .ds-header.ds-gradient-bg:after
里面的width
根据你的“热门评论”自定义文字的长度来设置。
修改embed.js
-
搜索
<form method="post">
改成<form id="commenthw" method="post">
(加上id,我们才能对其进行加上css) -
搜索
this.el.find(".ds-comments-tab-" + a).html(this.el.hasClass("ds-narrow") ? '<span class="ds-service-icon ds-' + a + '"></span>' + i: (i ? '<span class="ds-highlight">' + i + "</span>": "0") + s[a][1])
改成
this.el.find(".ds-comments-tab-" + a).html(this.el.hasClass("ds-narrow") ? '<span class="ds-highlight">' + i + '</span>' + s[a][1]: (i ? '<span class="ds-highlight">' + i + "</span>": "0") + s[a][1])
(这个改动是让手机端显示X条评论
的地方不是只显示评论数而是和电脑端一样的显示x条评论
)
截图
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].