# Creative Commons 4.0 International License. # See: https://creativecommons.org/about/cclicenses/ creative_commons: # Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero license:by-nc-sa # Available values: big | small size:small sidebar:false post:false # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org language:
post 設置為 true 會在文章底部顯示 CC 授權條款。
sidebar 設置為 true 會在側邊欄顯示 CC 授權條款。
選單設定
1 2 3 4 5 6 7 8 9
menu: home:/||fafa-home about:/about/||fafa-user tags:/tags/||fafa-tags categories:/categories/||fafa-th archives:/archives/||fafa-archive #schedule: /schedule/ || fa fa-calendar #sitemap: /sitemap.xml || fa fa-sitemap #commonweal: /404/ || fa fa-heartbeat
側邊選單位置
預設為 left,依照個人喜好修改顯示位置
1 2 3
sidebar: # Sidebar position. Available values: left | right position:right
頭像
1 2 3 4 5 6 7 8
# Sidebar Avatar avatar: # Replace the default image and set the URL here. url:/images/avatar.gif # 如果為 true,頭像外框為圓形 rounded:false # 如果為 true,頭像將隨著游標旋轉 rotated:false
社交平台設定
1 2 3 4 5 6 7 8 9 10
social: GitHub:https://github.com/asz8621||fabfa-github E-Mail:mailto:[email protected]||fafa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo #Twitter: https://twitter.com/yourname || fab fa-twitter #FB Page: https://www.facebook.com/yourname || fab fa-facebook #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow #YouTube: https://youtube.com/yourname || fab fa-youtube #Instagram: https://instagram.com/yourname || fab fa-instagram #Skype: skype:yourname?call|chat || fab fa-skype
footer: # Specify the year when the site was setup. If not defined, current year will be used. #since: 2021
# Icon between year and copyright info. icon:# [黃色方框] # Icon name in Font Awesome. See: https://fontawesome.com/icons name:fafa-heart # If you want to animate the icon, set it to true. animated:true # Change the color of the icon, using Hex Code. color:"#ff0000"
# If not defined, `author` from Hexo `_config.yml` will be used. # Set to `false` to disable the copyright statement. copyright:'Nielsen'# [綠色方框]
# Powered by Hexo & NexT powered:true# [紫色方框]
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, https://beian.mps.gov.cn beian: enable:false icp: gongan_id: gongan_num: gongan_icon_url:
文章元數據顯示設置
這段配置允許你自訂文章頁面的元數據顯示選項。
1 2 3 4 5 6 7 8
# Post meta display settings post_meta: item_text:true# 顯示項目文本 created_at:true# 顯示創建日期 updated_at: enable:true# 隱藏最後更新日期 another_day:true# 顯示與創建日期不同的日期 categories:true# 顯示分類
copy_button: enable:false # Available values: default | flat | mac style:mac
代碼摺疊
1 2 3
fold: enable:true height:100
返回頂部
1 2 3 4 5 6
back2top: enable:true # Back to top in sidebar. sidebar:false # Scroll percent label in b2t button. scrollpercent:false
將 sidebar 設定為 true 可以在側邊欄的個人資訊區塊中顯示回到頂部按鈕。
將 scrollpercent 設定為 true 會顯示閱讀進度百分比。
閱讀進度條
1 2 3 4 5 6 7 8 9 10
# Reading progress bar reading_progress: enable:false # Available values: left | right start_at:left # Available values: top | bottom position:top reversed:false color:"#37c6c0" height:3px
enable: 設定是否開啟進度條,開啟則設定為 true。
start_at: 設定進度條開始位置,選擇 left 或 right。
position: 設定進度條在頂部或底部顯示。
reversed: 是否反轉進度條。
color: 設定進度條顏色。
height: 設定進度條高度。
GitHub 右上角 ICON
1 2 3 4
# `Follow me on GitHub` banner in the top-right corner. github_banner: enable:true permalink:https://github.com/yourname
Note 設定
1 2 3 4 5 6 7 8 9 10 11
note: # Note tag style values: # - simple bootstrap callout old alert style. Default. # - modern bootstrap callout new (v2-v3) alert style. # - flat flat callout style with background, like on Mozilla or StackOverflow. # - disabled disable all CSS styles import of note tag. style:simple icons:false # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6). # Offset also applied to label tag variables. This option can work with disabled note tag. light_bg_offset:0