-
Notifications
You must be signed in to change notification settings - Fork 86
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
[Vssue] Comments for docs #2
Comments
更新:原来是我没放到docs目录下,现在可以了你好,我按照你这个使用指南并没有跑起来, |
目录结构只是个示例,遵从 Vuepress 的规则即可,具体放到哪个目录下按照自己的习惯来就好了 |
作者你好,我在弄SEO的时候发现百度是支持自动推送这个方法的,所以在想能否在像TheHeaderBanner这种组件每个页都会触发的地方,写入自动推送代码?我在本地改了你的代码,发到github pages上测是没问题的,但是感觉不够优雅,写成plugin是否更好?下面是我的代码 // TheHeaderBanner.vue
mounted(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
} |
写成Plugin,把 这样可以不改主题代码,自己加一个 plugin 就行了 |
@meteorlxy 请问评论支持按时间倒序排列吗?? |
可以查看 Vssue 文档 - 支持的平台。 主要的问题是目前 Github API V3 不支持评论排序,换成 GitLab 的话是支持最完善的。 |
lang是必须配的吗?因为我没有设置会报错Cannot read property 'createdAt' of undefined,配上就好了。 |
==== 更新 ==== v1.0.0-alpha.20 版本如果用户不设置 |
设置评论遇到The redirect_uri MUST match the registered callback URL for this application错误,请问是什么原因,我确认设置都没有问题 |
如果是用的 GitLab,参考 meteorlxy/vssue#30 如果用的是 GitHub 或者 Bitbucket,参考 Vssue文档 |
@zhangzippo 我进去试了没看到 |
@zhangzippo 你的应该是线上部署问题,你直接进博客页面就是404: |
谢谢 |
@glitzma 因为你文章的评论没配置好,可以在 |
你好,请问会支持搜索,和tag么 |
Emmmm目前是已经支持了的 |
"vuepress": "^1.0.0-alpha.41", 按照指南报错 Error: Cannot find module '@vuepress/core/lib/prepare |
请尝试使用最新版本 |
已经可以了,不过有个小问题 ,点击标签页面后页面无对应blog http://summery1874.site/posts/tags/vue.html |
建议先用 alpha.47 或之前版本。注意 vuepress 的 alpha 版本没有锁定版本号,你安装 vuepress@1.0.0-alpha.47,但是对应的 @vuepress/core 可能还是 1.0.0-alpha.48,所以可能需要单独再锁一下 @vuepress/core 的版本号。(这个贼坑,我很早就给 vuepress 提过,但是在 40 还是 41 锁定了一两个版本之后,又莫名其妙改回去了) --- 题外话 --- Vuepress 现在的 1.0.0-alpha 坑有点多,所以想要玩 vuepress 搭博客的话做好自己多折腾的准备 😅 |
主题版本 1.0.0-alpha.37 已修复 |
能否提供一个多语言版本切换的功能呢?把多种不同语言的文章放在不同的二级路由分别访问这样 |
博主牛逼啊 |
您好,我想问一下如果博客头像上的随机图案想换成自定义的图像背景,或者自定义的Css该如何操作呢。 |
好的,我之前就是因为geo的原因,不知道怎么覆盖,现在解决了,谢谢!
… On Aug 1, 2019, at 2:03 AM, meteorlxy ***@***.***> wrote:
@OOXXXX <https://github.com/OOXXXX>
您好,我想问一下如果博客头像上的随机图案想换成自定义的图像背景,或者自定义的Css该如何操作呢。
#32 <#32> 是关于这个功能的,不过拖延了好久还挂着,过段时间我会处理一下 。
目前的话你可以给 .info-card-header 加样式, 然后用 !important 覆盖一下 😅。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2?email_source=notifications&email_token=AK7M74SDQY62S2UMALJCQTTQCHHWZA5CNFSM4GREVIH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ICKDY#issuecomment-516957455>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AK7M74XEBUG4DK3ASCILBDDQCHHWZANCNFSM4GREVIHQ>.
|
这个配置似乎不支持了,是主题问题吗? |
@shenxiang11 可以正常支持没问题呀 |
是我搞错了,往 themeConfig里加了,打扰了 |
已找到方法。 // .vuepress/enhanceApp.js
import 'prismjs/themes/prism-funky.css'
export default ({
Vue,
options,
router,
siteData
}) => {} ==================分割线================ |
请问评论系统支持valine吗 |
@libailibai 不支持哈 |
喵喵喵 🍎 |
看看 |
No description provided.
The text was updated successfully, but these errors were encountered: