copyright: # ------------------------------------------------------------- powered: # Hexo link (Powered by Hexo). enable:false# 这项改成false # Version info of Hexo after Hexo link (vX.X.X). version:true
theme: # Theme & scheme info link (Theme - NexT.scheme). enable:false# 这项改成false # Version info of NexT after scheme info (vX.X.X). version:true # -------------------------------------------------------------
sidebar 放到右侧
主题配置文件:
1 2 3 4
sidebar: # Sidebar Position, available values: left | right (only for Pisces | Gemini). #position: left position:right
增加返回顶部按钮、样式
主题配置文件:
1 2 3 4 5 6 7 8
# Back to top in sidebar. b2t:false # Scroll percent label in b2t button. scrollpercent:true # Enable sidebar on narrow view (only for Muse | Mist). onmobile:false # Click any blank part of the page to close sidebar (only for Muse | Mist). dimmer:false
# rtk: local search setting search: path:search.xml field:post format:html limit:10000
主题配置文件中启用本地搜索:
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# 这项改成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
# Valine # You can get your appid and appkey from https://leancloud.cn # More info available at https://valine.js.org valine: enable:true# When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version. appid:xxx# your leancloud application appid appkey:xxx# your leancloud application appkey notify:false# mail notifier, See: https://github.com/xCss/Valine/wiki verify:false# Verification code placeholder:ヾノ≧∀≦)o# comment box placeholder avatar:mm# gravatar style guest_info:nick,mail,link# custom comment header pageSize:10# pagination size visitor:false# leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html comment_count:true# if false, comment count will only be displayed in post page, not in home page
{% if config.symbols_count_time.symbols or config.symbols_count_time.time %} <div class="post-symbolscount"> {% if not theme.symbols_count_time.separated_meta %} <span class="post-meta-divider">|</span> {% endif %}
ps. 看了下其他人的 NexT v5.x 的配置文件,这一项默认是空着的,但能显示出 icon,现在用的 v7.0.1 也是默认空着,但我这只有填上才能显示出来,不知道是不是八阿哥。
npm install没反应
把镜像网站替换成淘宝的。
1 2
$ npm get registry //显示当前的镜像网站 $ npm config set registry http://registry.npm.taobao.org //更改镜像网站
hexo d部署失败
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
$ hexo d -g (node:3908) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:3908) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:3908) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:3908) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:3908) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:3908) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency INFO Start processing INFO Files loaded in 94 ms INFO 0 files generated in 22 ms INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object at copyFile (fs.js:1890:10)