# Site title:居红乡# 已修改-原值:Hexo subtitle:'rsreland.net'# 已修改-原值:'' description:'不要停止思考。'# 已修改-原值:'' keywords: author:百二一# 已修改-原值:John Doe language:zh-CN# 已修改-原值:en timezone:'Asia/Shanghai'# 已修改-原值:''
设置网站和文章地址格式
1 2 3 4 5
# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url:https://rsreland.net# 已修改-原值:http://yoursite.com root:/ permalink:blog/:year:month:day:hour:minute/# 已修改-原值::year/:month/:day/:title/
# LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加 # LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase leancloud: app_id:EK■■■■■IRB■■pmdh■■■D7sQ■■■■■■bMM■# 已修改-空值 app_key:3x■■■OaU8o■■■■■n0JVL■■■■# 已修改-空值 # REST API 服务器地址,国际版不填 # Only the Chinese mainland users need to set server_url: # 统计页面时获取路径的属性 # Get the attribute of the page path during statistics path:window.location.pathname # 开启后不统计本地路径( localhost 与 127.0.0.1 ) # If ture, ignore localhost & 127.0.0.1 ignore_local:false
# 统计数据来源,使用 leancloud 需要设置 `web_analytics: leancloud` 中的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常 # Data source. If use leancloud, you need to set the parameter in `web_analytics: leancloud` # Options: busuanzi | leancloud source:"leancloud"# 已修改-原值:"busuanzi"
备注:设置网站的「访问统计功能」使用 cnzz 和 leancloud 两个提供商的统计服务。
设置导航栏标题
1 2 3 4 5 6
# 导航栏的相关配置 # Navigation bar navbar: # 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示 # The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config blog_title:"居红乡"# 已修改-原值:"Fluid"
备注:设置导航栏标题为 居红乡 。
设置导航栏的网站目录
1 2 3 4 5 6 7 8 9 10 11
# 导航栏菜单,可自行增减,key 用来关联 languages/*.yml,如不存在关联则显示 key 本身的值;icon 是 css class,可以省略;增加 name 可以强制显示指定名称 # Navigation bar menu. `key` is used to associate languages/*.yml. If there is no association, the value of `key` itself will be displayed; if `icon` is a css class, it can be omitted; adding `name` can force the display of the specified name menu: - { key:"home", link:"/", icon:"iconfont icon-home-fill" } - { key:"archive", link:"/archives/", icon:"iconfont icon-archive-fill" } - { key:"category", link:"/categories/", icon:"iconfont icon-category-fill" } - { key:"tag", link:"/tags/", icon:"iconfont icon-tags-fill" } - { key:"series", link:"/series/", icon:"iconfont icon-codeforces"} # 已修改-新增 - { key:"thanks", link:"/thanks/", icon:"iconfont icon-bookmark-fill"} # 已修改-新增 - { key:"about", link:"/about/", icon:"iconfont icon-user-fill" } - { key:"links", link:"/links/", icon:"iconfont icon-link-fill" } # 已修改-取消注释
#--------------------------- # 页脚 # Footer #--------------------------- footer: # 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题 # HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people content:' <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> <div> <span id="timeDate">载入天数...</span> <span id="times">载入时分秒...</span> <script src="/js/duration.js"></script> </div> '# 已修改-新增:<div>……</div>之间的代码
#--------------------------- # 首页 # Home Page #--------------------------- index: # 首页 Banner 头图,可以是相对路径或绝对路径,以下相同 # Path of Banner image, can be a relative path or an absolute path, the same on other pages banner_img:/img/r2net_banner.jpg# 已修改-原值:/img/default.png
设置首页副标题
1 2 3 4 5 6 7 8
# 首页副标题的独立设置 # Independent config of home page subtitle slogan: enable:true
# 为空则按 hexo config.subtitle 显示 # If empty, text based on `subtitle` in hexo config text:"我们的头顶,还有广阔的星空!"# 已修改-原值:"An elegant Material-Design theme for Hexo"
设置关闭自动摘录
1 2 3 4
# 自动截取文章摘要 # Auto extract post auto_excerpt: enable:false# 已修改-原值:true
设置在新窗口打开链接
1 2 3 4
# 打开文章的标签方式 # The browser tag to open the post # Available: _blank | _self post_url_target:_blank# 已修改-原值:_self
# 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片 # Path of the default post cover when `index_img` is not set. If both are empty, no image will be displayed default_index_img:/img/r2net_thumbnail.png# 已修改-空值
设置文章页展示文章阅读次数
1 2 3 4 5 6 7 8
# 浏览量计数 # Number of visits views: enable:true# 已修改-原值:false # 统计数据来源 # Data Source # Options: busuanzi | leancloud source:"leancloud"# 已修改-原值:"busuanzi"
设置文章页展示文章更新时间
1 2 3 4
# 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式) # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date) updated: enable:true# 已修改-原值:false
设置展示分类下文章的侧边栏位置
1 2 3 4
# 置于板块的左侧或右侧 # place in the board # Options: left | right placement: right # 已修改-原值:left
设置展示侧边栏的文章数量
1 2 3
# 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制 # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit post_limit: 5 # 已修改-原值:0
设置文章目录的位置
1 2 3 4
# 置于板块的左侧或右侧 # place in the board # Options: left | right placement: left # 已修改-原值:right
# 层级的折叠深度,0 是全部折叠,大于 0 后如果存在子分类则默认展开 # Collapse depth. If 0, all posts collapsed. If greater than 0, it will be expanded by default if there are subcategories collapse_depth:1# 已修改-原值:0
# 友链下方自定义区域,支持 HTML,可插入例如申请友链的文字 # Custom content at the bottom of the links custom: enable: true # 已修改-原值:false content: '<hr><p>在下方留言申请加入我的友链,按如下格式提供信息:</p><ul><li>博客名:Fluid</li><li>简介:Fluid 主题官方博客</li><li>链接:https://hexo.fluid-dev.com</li><li>图片:https://hexo.fluid-dev.com/img/favicon.png</li></ul>'
设置友情链接页面添加评论功能
1 2 3 4 5 6 7 8
# 评论插件 # Comment plugin comments: enable:true# 已修改-原值:false # 指定的插件,需要同时设置对应插件的必要参数 # The specified plugin needs to set the necessary parameters at the same time # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis type:valine# 已修改-原值:disqus