# Site title:Robert雜記# 部落格標題 subtitle:''# 副標題 description:''# 網站描述 keywords:# 網站關鍵字(以逗號隔開),方便 SEO author:RobertKao# 姓名或暱稱 language:zh-TW# 使用的語言 timezone:''# 留空以使用系統時間
abbrlink: alg:crc16#support crc16(default) and crc32 rep:hex#support dec(default) and hex
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:https://hot5656.github.io/ permalink_defaults: author_name:"Robert" # permalink: :year/:month/:day/:title/ permalink::author_name/:abbrlink/
menu: home:/||fafa-home #about: /about/ || fa fa-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
local_search: enable:enable
motion:# 動畫效果 enable:true
Custom file paths
1 2 3 4 5 6 7 8 9 10 11 12 13
# Define custom file paths. # Create your custom files in site directory `source/_data` and uncomment needed files below. custom_file_path: #head: source/_data/head.njk #header: source/_data/header.njk #sidebar: source/_data/sidebar.njk #postMeta: source/_data/post-meta.njk #postBodyEnd: source/_data/post-body-end.njk #footer: source/_data/footer.njk #bodyEnd: source/_data/body-end.njk #variable: source/_data/variables.styl #mixin: source/_data/mixins.styl #style: source/_data/styles.styl
設置菜單
需安裝 hexo-theme-next
1 2 3 4 5 6
npm install hexo-theme-next --save # copy next config to local # windows command copy node_modules\hexo-theme-next\_config.yml _config.next.yml # linux command cp node_modules/hexo-theme-next/_config.yml _config.next.yml
or
1 2 3 4 5 6
git clone https://github.com/next-theme/hexo-theme-next themes/next # copy next config to local # windows command copy themes\next\_config.yml _config.next.yml # linux command cp themes/next/_config.yml _config.next.yml
_config.next.yml
1 2 3 4 5 6 7 8 9
menu: home:/||fafa-home #about: /about/ || fa fa-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
設置頭像
放於 source/images/
1 2 3 4
# Sidebar Avatar avatar: # Replace the default image and set the url here. url:/images/head.png#/images/avatar.gif
abbrlink: alg:crc16#support crc16(default) and crc32 rep:hex#support dec(default) and hex
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:https://hot5656.github.io/ permalink_defaults: author_name:"Robert" # permalink: :year/:month/:day/:title/ permalink::author_name/:abbrlink/
閱讀次數統計(LeanCloud)…待研究
客製化設定
設定代碼風格 - _config.next.yml
1 2 3 4 5 6 7 8
codeblock: # Code Highlight theme # All available themes: https://theme-next.js.org/highlight/ theme: # light: default # dark: tomorrow-night light:gml dark:gml
// class sequence 內 rect // for 時序圖(sequence) 文字背景 .sequence rect { fill: $content-bg-color; }
範例
1 2 3 4 5 6 7
# 加入 class sequence <div class="sequence"> # 設程式碼為 sequence Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks! </div>
# Disqus # For more information: https://disqus.com disqus: enable:enable# enable Disqus shortname:hot5656-blog# Disqus Website Name for you count:true