前言

本文主要记录的是Butterfly主题中_config.butterfly.yml文件的修改内容,方便更新主题后的相关配置更新

修改记录

  首页: / || fas fa-home
  归档: /archives/ || fas fa-archive
  分类: /categories/ || fas fa-folder-open
  娱乐 || fas fa-list:                 
     音乐: /music/ || fas fa-music
     视频: /video/ || fas fa-video
  #网盘: /netdisc/ || fas fa-download
  友链: /link/ || fas fa-link
  关于: /about/ || fas fa-user

# social settings (社交圖標設置)  
social:
  # fab fa-github: https://github.com/xxxxx || Github
  # fas fa-envelope: mailto:3463691284@qq.com || Email 
  fas fa-home: https://www.windandleaf.xyz/ || Home  
  fas fa-music: https://music.windandleaf.xyz/ || Music  
  fas fa-cloud: https://onedrive.windandleaf.xyz/ || netdisc  
  fas fa-cogs: https://console.windandleaf.xyz/hpp/admin/login || Manage



# Favicon(網站圖標) 
favicon: /myself/pic_page/favicon.ico    

# Avatar (頭像)
avatar:
  img: /myself/pic_page/blog_head.jpg

cover:
  # display the cover or not (是否顯示文章封面)
  index_enable: false
  aside_enable: false
  archives_enable: false

# wordcount (字數統計)
wordcount:
  enable: false
  post_wordcount: false
  min2read: false
  total_wordcount: false

comments:
  # Up to two comments system, the first will be shown as default
  # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo
  use:
    - Waline  #开启评论

waline:
  serverURL: https://comment.windandleaf.xyz/  # Waline server address url
 
footer:
  owner:
    enable: true
    since: 2020
  custom_text: <a href="https://www.upyun.com/?utm_source=lianmeng&amp;utm_medium=referra"><img src="https://cdn.jsdelivr.net/gh/xingjiahui/CDN/又拍云_logo.png"align="absmiddle" width="59px" height="30px" /></a><span>提供加速服务</span>



# Website Background (設置網站背景)
# can set it to color or image (可設置圖片 或者 顔色)
# The formal of image: url(http://xxxxxx.com/xxx.jpg)
background: url(/myself/pic_page/blog_backgroun.jpg)  #網站背景

# Mouse click effects: Heart symbol (鼠標點擊效果: 愛心)
click_heart:
  enable: true
  mobile: true

# the subtitle on homepage (主頁subtitle)
subtitle:
  enable: true
  sub:
    - 念念不忘 必有回响

aside:
card_announcement:
    enable: true
    content: 欢迎您的到访,博客正在施工中哦。。。

# busuanzi count for PV / UV in site
# 訪問人數
busuanzi:
  site_uv: false
  site_pv: false
  page_pv: false

# Time difference between publish date and now (網頁運行時間)
# Formal: Month/Day/Year Time or Year/Month/Day Time
runtimeshow:
  enable: true
  publish_date: 9/6/2020 00:00:00  

# Pjax [Beta]
# It may contain bugs and unstable, give feedback when you find the bugs.
# https://github.com/MoOx/pjax
pjax:
  enable: true
  exclude:
    # - xxxx
    # - xxxx    
    - /music/
    - /video/

# Inject the css and script (aplayer/meting)
aplayerInject:
  enable: true
  per_page: true

# Inject
# Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)
# 插入代码到头部 </head> 之前 和 底部 </body> 之前
inject:
  head:
    # - <link rel="stylesheet" href="/xxx.css">
    - <link rel="stylesheet" href="https://blog.windandleaf.xyz/picgo/DIY_Hexo_css_js/DIY.css">

#aplayer设置                #要安装hexo-tag-aplayer插件
aplayer:
  #script_dir: js                       # Public 目录下脚本目录路径,默认: 'assets/js'
  #style_dir: css                        # Public 目录下样式目录路径,默认: 'assets/css'
  #cdn: http://xxx/aplayer.min.js                # 引用 APlayer.js 外部 CDN 地址 (默认不开启)
  #style_cdn: http://xxx/aplayer.min.css         # 引用 APlayer.css 外部 CDN 地址 (默认不开启)
  meting: true                                  # MetingJS 支持
  #meting_api: http://xxx/api.php                # 自定义 Meting API 地址
  #meting_cdn: http://xxx/Meing.min.js           # 引用 Meting.js 外部 CDN 地址 (默认不开启)
  asset_inject: false                         # 自动插入 Aplayer.js 与 Meting.js 资源脚本, 默认开启
  #externalLink: http://xxx/aplayer.min.js       # 老版本参数,功能与参数 cdn 相同  

后记

本博客使用HEXO框架搭建,部署在Github上面,使用的主题为Butterfly。