Skip to content

Latest commit

 

History

History
175 lines (154 loc) · 4.67 KB

README_zh-CN.md

File metadata and controls

175 lines (154 loc) · 4.67 KB

hexo-theme-async

master version https://img.shields.io/npm/v/hexo-theme-async?color=%09%23bf00ff hexo version license

🇨🇳 中文简体 | 🇬🇧 English

8dRAS.png

安装

克隆仓库在 themes 目录下

cd hexo
npm install --save hexo-renderer-less hexo-renderer-ejs hexo-wordcount
cd themes
git clone https://gitee.com/ml13/hexo-theme-async.git

然后在 theme 中 _config.yml 中更改设置。

您也可以使用NPM包。

cd hexo
npm install --save hexo-theme-async hexo-renderer-less hexo-renderer-ejs hexo-wordcount

您可以覆盖 theme._config.yml 中配置,可以参考 Hexo Docs

演示

您可以在我的 个人博客 查看演示。

配置

# 站点信息
user:
  name: 博主名称
  first_name: 姓 # 用于顶部导航使用
  last_name: 
  logo: 站点loog # 用于顶部导航显示
  email: 邮箱
  domain: 域名 # 用于友链页面
  avatar: 头像
  describe: 描述
  ruleText: 友链交换规则
  birthDay: 站点运行起始时间 # 用于底部计算时长
  copyrightYear: 2022

# logo
favicon:
  icon16: 网站 favicon 
  icon32: 网站 favicon
  appleTouchIcon: Apple touch icon
  webmanifest: Web App Manifest
  visibilitychange: false
  hidden: The logo link
  show_text: (/≧▽≦/)Yi! Good again!
  hide_text: (●—●)Oh, it's falling apart!

# 顶部菜单
top_bars:
    - title: home
      url: /
      # children # 添加二级菜单
      # noswup # 打开新的窗口
    - title: archives
      url: /archives/
    - title: links
      url: /links/
    - title: about
      url: /about/

# 页面顶部横幅
banner:
  # 首页
  index:
    type: img # 横幅类型
    bgurl:  # 背景图地址,如果 type 是 slideshow,需要为数组
    bannerTitle:  # 横幅上标题
    bannerText: Hi my new friend! # 横幅描述
    videoUrl: 
  # 归档页
  archive: 
    type: img
    bgurl: 
    bannerTitle: 
    bannerText: The article archive
  # 友链页
  links: 
    type: img
    bgurl: 
    bannerTitle: 
    bannerText: A link to a friend's website
  # 关于页
  about: 
    type: img
    bgurl: 
    bannerTitle: 
    bannerText: About me

# 侧栏
sidebar:
  typedTextPrefix: I`m           # 打字机效果前缀
  typedText: [ 'Web Developer' ] # 打字机文字,需要为数组
  info: # 个人信息 
    - key: sidebar.residence # 标题
      val: residence         # 内容
    - key: sidebar.city
      val: city
    - key: sidebar.age
      val: age
  social:  # 社交地址
    - icon: fab fa-github      # 图标 以内置 Font-Awesome Brand 图标
      url: https://github.com  # 地址
    - icon: iconfont cg-gitee
      url: https://gitee.com
    - icon: iconfont cg-weibo
      url: https://weibo.com/

# 个人页  如果 about/index.md 有内容则优先使用自定义内容,否则使用配置项内容
about:
  title:        # 标题
  introduction: # 个人简单描述
  blog:         # 博客信息
  privacy:      # 隐私权说明    

# 友链
links:
  - name: 白云苍狗 # 名称
    url: //www.imalun.com/ # 地址
    image: //www.imalun.com/images/avatar.jpg # 头像
    desc: 醒,亦在人间;梦,亦在人间 # 描述

# 网页访问统计
webAnalytics:  
  enable: false # 默认为false,启用网页统计改为true
  baidu:   # 百度统计的Key
  google:  # Google统计的Tracking ID
  tencent: # 腾讯统计的H5 App id
    sid:
    cid:

# 评论插件
comment:
  enable: false
  bComments:
    v: 0.0.12
    env: 
  twikoo:
    envId:
    region: 
    path: window.location.pathname

# 开启 Service Worker
sw: false