# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://www.sunmite.com/
root: /
permalink: :category/:urlname.html
permalink_defaults:
urlname: index
footer:# Specify the date when the site was setup.
# If not defined, current year will be used.
since:2014#建站时间
# Icon between year and copyright info.
icon:heart#修改默认图标为♥
# If not defined, will be used `author` from Hexo main config.
copyright:# -------------------------------------------------------------
# Hexo link (Powered by Hexo).
powered:truetheme:# Theme & scheme info link (Theme - NexT.scheme).
enable:true# Version info of NexT after scheme info (vX.X.X).
version:false# 不显示主题版本
toc:
enable: true
# Automatically add list number to toc.
number: false #关闭目录自动添加序号
# If true, all words will placed on next lines if header width longer then sidebar width.
wrap: false
# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
enable: true
app_id: #<app_id>
app_key: #<app_key>
10. 百度推送
1
2
# Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO
baidu_push: true
11. 开启本地搜索
1
2
3
4
5
6
7
8
9
10
11
# Local search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search:
enable: true
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 1
# unescape html strings to the readable one
unescape: false
12. 启用加载进度条
1
2
3
# Progress bar in the top during page loading.
# Dependencies: https://github.com/theme-next/theme-next-pace
pace: true
13. 设置作者头像圆角,旋转
1
2
3
4
5
6
7
8
9
10
11
avatar:
# in theme directory(source/images): /images/avatar.gif
# in site directory(source/uploads): /uploads/avatar.gif
# You can also use other linking images.
url: /images/avatar.gif
# If true, the avatar would be dispalyed in circle.
rounded: true #开启圆角头像
# The value of opacity should be choose from 0 to 1 to set the opacity of the avatar.
opacity: 1
# If true, the avatar would be rotated with the cursor.
rotated: true #旋转
{% if theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
- <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
+ <script src="/js/src/Valine.min.js"></script>
{% if theme.vendors.valine %}
{#####################}
{### END POST BODY ###}
{#####################}
+ <div>
+ {% if not is_index %}
+ {% include 'passage-end-tag.swig' %}
+ {% endif %}
+ </div>
{% if theme.wechat_subscriber.enabled and not is_index %}
<div>
{% include 'wechat-subscriber.swig' %}
</div>
{% endif %}
{% if (theme.alipay or theme.wechatpay or theme.bitcoin) and not is_index %}
<div>
{% include 'reward.swig' %}
</div>
{% endif %}
{% if theme.post_copyright.enable and not is_index %}
<div>
{% include 'post-copyright.swig' with { post: post } %}
</div>
{% endif %}
<footer class="post-footer">
{% if post.tags and post.tags.length and not is_index %}
<div class="post-tags">
{% for tag in post.tags %}
<a href="{{ url_for(tag.path) }}" rel="tag"><i class="fa fa-tag"></i> {{ tag.name }}</a>
{% endfor %}
</div>
{% endif %}
我也打算换hexo了
请教评论如何导入valine
看一下LeanCloud的评论表的字段手动创建评论
@tanmx , 我就是手动的,但是对不上,很奇怪
你确定 coding 很快? ping是快很多,get就不行了
免费的还要啥自行车
下面的comment忘了添邮箱,博主要回复的话请回复这个谢谢😅
你修改了typecho的默认数据库前缀吧,注意修改python代码中的sql查询语句中的表名
好了,是我的数据库没有typecho_ 前缀,改了下代码OK了,顺便问下楼楼用的是啥评论系统,这么快
看到了,我瞎了😂
我这里发生了数据库错误:(1146, “Table ‘dereen_top.typecho_metas’ doesn’t exist”)他说的这个表不存在是什么龟- -,博主能不能帮忙看下,谢谢
我也是昨天从 typecho 转到 hexo,看了博主文章很亲切。我使用了很极简风格的主题,评论功能也暂时没有。😂
可以看下 valine 的官网 看下有没有你使用主题的示例
哈哈 挺好 刚好也准备搬家了