D:\hexo-blog>hexo g #将blog资料创建为css,html静态文件 INFO Generated: archives/index.html D:\hexo-blog>hexo s #运行hexo server INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
# --------------------------------------------------------------- # Menu Settings # ---------------------------------------------------------------
# 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 Font Awesome icon. # When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives). # External url should start with http:// or https:// menu: home: / || fa fa-home tags: /tags/ || fa fa-tags categories: /categories/ || fa fa-th archives: /archives/ || fa fa-archive about: /about/ || fa fa-user #schedule: /schedule/ || fa fa-calendar #sitemap: /sitemap.xml || fa fa-sitemap #commonweal: /404/ || fa fa-heartbeat
只是主页打开还不行,还需要手动创建page页面,否则报错
1 2 3
Cannot GET /about/ Cannot GET /tags/ Cannot GET /categories/
在hexo根目录手动创建page页面:
1 2 3
hexo new page "about" hexo new page "tags" hexo new page "categories"
# Uri of fonts host, e.g. https://fonts.googleapis.com (Default). host: https://fonts.googleapis.com/css?family=Noto+Serif+SC|Roboto
# Font options: # `external: true` will load this font family from `host` above. # `family: Times New Roman`. Without any quotes. # `size: x.x`. Use `em` as unit. Default: 1 (16px)
# Global font settings used for all elements inside <body>. global: external: true family: Noto Serif SC size:
# Font settings for site title (.site-title). title: external: true family: size:
# Font settings for headlines (<h1> to <h6>). headings: external: true family: size:
# Font settings for posts (.post-body). posts: external: true family:
# Font settings for <code> and code blocks. codes: external: true family: Roboto
# 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: fa fa-user total_views: true total_views_icon: fa fa-eye post_views: true post_views_icon: fa fa-eye
\themes\next\layout\_partials找到footer.swig文件,添加
1 2 3
{% if theme.footer.counter %} <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script> {% endif %}