# Home page setting # path: Root path for your blogs index page. (default = '') # per_page: Posts displayed per page. (0 = disable pagination) # order_by: Posts order. (Order by date descending by default) index_generator: path: '' per_page: 10 order_by: -date
5. 网站日期格式
1 2 3 4 5 6
# Date / Time format ## Hexo uses Moment.js to parse and display date ## You can customize the date format as defined in ## http://momentjs.com/docs/#/displaying/format/ date_format: YYYY-MM-DD time_format: HH:mm:ss
footer: # Specify the date when the site was setup. If not defined, current year will be used. since: 2019
# Icon between year and copyright info. icon: # Icon name in fontawesome, see: https://fontawesome.com/v4.7.0/icons/ # `heart` is recommended with animation in red (#ff0000). name: user //图标可以到提供的网站修改 # If you want to animate the icon, set it to true. animated: false //动画效果 # Change the color of icon, using Hex Code. color: "#808080" //图标颜色
# If not defined, `author` from Hexo main config will be used. copyright:
powered: # Hexo link (Powered by Hexo). //关闭hexo强力驱动显示 enable: false # Version info of Hexo after Hexo link (vX.X.X). version: false
theme: # Theme & scheme info link (Theme - NexT.scheme). //关闭next主题显示 enable: false # Version info of NexT after scheme info (vX.X.X). version: false
# Beian icp information for Chinese users. In China, every legal website should have a beian icp in website footer. # http://www.beian.miit.gov.cn beian: enable: false icp:
5. 主页阅读全文设置
1 2 3 4 5
# Automatically Excerpt (Not recommend). # Use <!-- more --> in the post to control excerpt accurately. auto_excerpt: enable: true //修改成true length: 150 //显示字数
# --------------------------------------------------------------- # Comments and Widgets # See: https://theme-next.org/docs/third-party-services/comments-and-widgets # --------------------------------------------------------------- ....... # Gitalk # Demo: https://gitalk.github.io gitalk: enable: true github_id: # Github repo owner repo: # Repository name to store issues client_id: # Github Application Client ID client_secret: # Github Application Client Secret admin_user: # GitHub repo owner and collaborators, only these guys can initialize github issues distraction_free_mode: true # Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en, es-ES, fr, ru, zh-CN, zh-TW language:
7. 右上角github
1 2 3 4 5
# `Follow me on GitHub` banner in the top-right corner. github_banner: enable: false //修改成true permalink: https://github.com/yourname title: Follow me on GitHub
8. 创建page(menu标签)
在终端窗口下,定位到 Hexo 站点目录下。使用 hexo new page 新建一个页面,命名为 categories :
$ cd you-site $ hexo new post(或者draft) "you title"
10. 头像显示
1 2 3 4 5 6 7 8 9 10 11 12
# Sidebar Avatar 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/user.jpg //使用本地图片 # 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//是否旋转
11. 浏览进度按钮
1 2 3 4 5 6
back2top: enable: true//是否启用 # Back to top in sidebar. sidebar: false//是否显示在左侧栏下方 # Scroll percent label in b2t button. scrollpercent: true//是否显示阅读进度
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
17. 文章顶部显示时间信息
1 2 3 4 5 6 7 8
# Post meta display settings post_meta: item_text: true// created_at: true//创建文章时间 updated_at: enable: true//显示更新时间 another_day: true//其他天显示 categories: true//分类显示
18. 文章阅读量统计
1 2 3 4 5 6 7 8 9 10
# Show Views / Visitors of the website / page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi busuanzi_count: enable: true total_visitors: true total_visitors_icon: user total_views: true total_views_icon: eye post_views: true post_views_icon: eye