# Hexo - nexT 基礎配置 (二) ### pjax 安裝 (還不知道要做啥) > pjax 實現了 URL 改變但不重新整理整個頁面,也就是只有局部的頁面會更新,不會讓整個頁面重新閃動(重新整理)。那這個功能有什麼特色呢?最重要的就是原本左下角的音樂播放器遇到切換頁面,就會停掉然後重新載入;但使用 pjax 後就能解決這個問題。 /themes/next/_config.yml,修改 pjax: true: ```yml # Easily enable fast Ajax navigation on your website. # Dependencies: https://github.com/theme-next/theme-next-pjax pjax: true (default null) ``` ```cmd git clone https://github.com/theme-next/theme-next-pjax themes/next/source/lib/pjax ``` ### 文章字數統計/閱讀時間安裝 /themes/next/_config.yml ``` # Post wordcount display settings # Dependencies: https://github.com/theme-next/hexo-symbols-count-time symbols_count_time: separated_meta: true # 是否"換行顯示"字數統計及閱讀時長 item_text_post: false # 字數統計和閱讀時長是要使用小圖示(true)還是文字表示(false) item_text_total: false # 文章底部的字數統計和閱讀時長是要使用小圖示(true)還是文字表示(false) ``` ``` npm i hexo-generator-sitemap --save ``` ### 文章搜尋功能安裝 /themes/next/_config.yml ```yml local_search: enable: true (default false) ``` ```cmd npm install hexo-generator-searchdb --save ``` Hexo 資料夾根目錄 /_config.yml 自己加上,加入最末端即可 ```yml # 文章搜尋功能 search: path: search.xml field: post content: true format: html ``` ### 頁面滾動進度條 ``` reading_progress: enable: true (default false) ``` (好像要下載這個,但我好像沒有) ``` git clone https://github.com/theme-next/theme-next-reading-progress source/lib/reading_progress ``` ### 頁面載入進度條 我的沒反應QQQQQ <!-- https://blog.pangao.vip/Hexo%E5%8D%9A%E5%AE%A2NexT%E4%B8%BB%E9%A2%98%E7%BE%8E%E5%8C%96%E4%B9%8B%E9%A1%B6%E9%83%A8%E5%8A%A0%E8%BD%BD%E8%BF%9B%E5%BA%A6%E6%9D%A1/ --> ``` git clone https://github.com/theme-next/theme-next-pace source/lib/pace ``` ``` pace: enable: true # Themes list: # big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple # corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal theme: minimal ``` ### 閱讀統計 ``` busuanzi_count: enable: true ```  ### 文章中程式碼設置 - 區塊樣式 可至 [themes](https://theme-next.js.org/highlight/) 挑選 ```yml theme: light: atom-one-dark-reasonable dark: tomorrow-night prism: light: prism dark: prism-dark ``` - copy button ```yml border_radius: copy_button: enable: true # Available values: default | flat | mac style: flat ``` [like button](https://blog.typeart.cc/%E5%9C%A8Hexo%20NexT%E5%A2%9E%E5%8A%A0like%20Button/) ###### tags: `GitHub`, `Hexo`, `GitHub pages`, `Blog` 補充:讓google搜尋 https://augustushsu.github.io/2019/12/14/hexo-03/ https://www.awoo.com.tw/blog/robotstxt-crawl/ https://codeewander.github.io/2020/01/22/hexo-console/ https://op30132.github.io/2019/12/27/hexo-google-analysis/
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up