Intro NextT Customized function 這篇介紹NextT Customized function。
pjax 1 2 3 4 5 6 7 8 9 pjax 實現了 URL 改變但不重新整理整個頁面,也就是只有局部的頁面會更新,不會讓整個頁面重新閃動(重新整理)。 修改 /themes/next/_config.yml pjax: true 安裝lib $ git clone https://github.com/theme-next/theme-next-pjax themes/next/source/lib/pjax
Symbols count & Reading time in article 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 修改 /themes/next/_config.yml symbols_count_time: separated_meta: true item_text_post: false item_text_total: false 安裝lib $ npm install hexo-symbols-count-time --save 修改 /root/_config.yml symbols_count_time: symbols: true time: true total_symbols: true total_time: true exclude_codeblock: false awl: 2 wpm: 275 suffix: "分鐘" memo:加在檔案最下方即可
search in article 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 修改 /themes/next/_config.yml local_search: enable : true 安裝lib $ npm install hexo-generator-searchdb --save 修改 /root/_config.yml search: path: search.xml field: post content: true format: html memo:加在檔案最下方即可
processbar 1 2 3 4 5 6 7 8 9 修改 /themes/next/_config.yml pace: enable : true 安裝lib $ git clone https://github.com/theme-next/theme-next-pace themes/next/source/lib/pace
sitemap.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 「Sitemap」是一種用來提供網站資訊的檔案,您可以在其中列出網頁、影片和其他檔案的資訊, 並呈現這些內容彼此間的關係。Google 等搜尋引擎都會讀取網站的 Sitemap 檔案, 藉此以更有效率的方式檢索網站。 安裝lib $ npm install hexo-generator-sitemap --save 修改 /root/_config.yml sitemap: path: sitemap.xml tags: false categories: false memo:加在檔案最下方即可
加入背景圖片 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 修改 /themes/next/_config.yml custom_file_path: style: source /_data/styles.styl 加入檔案/root/source/_data/styles.styl styles.styl內容: body { background:url(/images/background.jpg); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-position:center center; } 背景圖片需放/root/source/images/background.jpg