# --------------------------------------------------------------- # Menu Settings # ---------------------------------------------------------------
# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives). # Usage: `Key: /link/ || icon` # Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive. # Value before `||` delimiter is the target link. # Value after `||` delimiter is the name of FontAwesome icon. If icon (with or without delimiter) is not specified, question icon will be loaded. # External url should start with http:// or https:// menu: home: / || home #categories: /categories/ || th archives: /archives/ || archive #schedule: /schedule/ || calendar tags: /tags/ || tags about: /about/ || user sitemap: /sitemap.xml || sitemap Follow me on GitHub: https://github.com/ka1i || github #commonweal: /404/ || heartbeat
NexT 默认的菜单项有(标注 的项表示需要手动创建这个页面):
键值
设定值
显示文本(简体中文)
home
home: /
主页
archives
archives: /archives
归档页
categories
categories: /categories
分类页
tags
tags: /tags
标签页
about
about: /about
关于页面
commonweal
commonweal: /404.html
公益 404
运行命令创建
1 2 3
hexo new page 'tags' #创建tags子目录 hexo new page 'about' #创建about子目录 hexo new page 'categories' #创建categories子目录