博客搭建与配置 - hexo 导航栏中文乱码怎么破?

查看:136
本文介绍了博客搭建与配置 - hexo 导航栏中文乱码怎么破?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

已经设置 language: zh-Hans

解决方案

兄弟,menu设置错了,menu设置分三步:
一、设置链接:
这里home、categories、about...只是以下三处设置的标识符,没什么具体意义;
themes/next/_config.yml

menu:
  #home: /
  #categories: /categories
  #about: /about
  archives: /archives
  #tags: /tags
  #sitemap: /sitemap.xml
  #commonweal: /404.html

二、设置icon:
themes/next/_config.yml

menu_icons:
  enable: true
  #KeyMapsToMenuItemKey: NameOfTheIconFromFontAwesome
  home: home
  about: user
  categories: th
  schedule: calendar
  tags: tags
  archives: archive
  sitemap: sitemap
  commonweal: heartbeat

三、设置显示文字:
themes/next/languages/zh-Hans.yml

menu:
  home: 首页
  archives: 归档
  categories: 分类
  schedule: 日程
  tags: 标签
  about: 关于
  search: 搜索
  commonweal: 公益404

这篇关于博客搭建与配置 - hexo 导航栏中文乱码怎么破?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆