Added my own avatar and favicon at /images/<filename>
Added my own background_img at /images/<filename>
Menu: Create manually. I added Categories and About.
Ex. In hexo-site, run hexo new page about, there will be an about directory created in source directory. Then configure the theme _config.yml‘s menu: about. Write content to /source/about/index.md.
Install hero-generator-searchdb to enable search feature. Use command npm install hexo-generator-searchdb in the site’s main directory.
Enable word count feature, run command npm i hexo-wordcount --save
base_info: title:Sungwa'sBlog author:SungwaYu url:https://sungwayu.github.io/ style: # Theme primary color primary_color:'#0066CC' # Avatar (You can use local image or image external link) avatar:/images/avatar.png # Favicon (You can use local image or image external link) favicon:/images/logo.png # Article image align position, value: left | center article_img_align:left # Left side width left_side_width:260px # Content area max width content_max_width:920px # Mouse hover hover: shadow:true# shadow effect when the mouse hover scale:false# scale effect when the mouse hover # First screen first_screen: enable:true background_img:/images/bg.svg description:WelcometoMyBlog # Scroll style settings scroll: progress_bar: enable:true percent: enable:true social_contact: enable:true links: github:https://github.com/SungwaYu# your GitHub URL weixin:# your WeChat QR-Code URL qq:# your QQ QR-Code URL weibo:# your WeiBo URL zhihu:# your ZhiHu URL twitter:# your twitter URL facebook:# your facebook URL email:yusungwa@gmail.com# your email menu: Home:/ Archives:/archives Categories:/categories # Tags: /tags # Links: /links About:/about # Changelog: /changelog # ...... home_article: category: enable:true# show category in home page article block limit:3# max number of categories shown in home page article block tag: enable:true# show tags in home page article block limit:5# max number of tags shown in home page article block code_copy: enable:true style:mac# values: default | mac toc: enable:true # Automatically add list number to toc. number:true # If true, all level of TOC in a post will be displayed, rather than the activated part of it. expand_all:true copyright_info: enable:false post_wordcount: enable:true wordcount:true# word count, one article min2read:true# time to read, one article website_count: # busuanzi # See: http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: enable:true site_uv:false site_pv:false page_pv:true local_search: enable:true trigger:auto comment: # Valine # See: https://github.com/xCss/Valine valine: enable:false appid:# your leancloud application appid appkey:# your leancloud application appkey placeholder:# your placeholder # Gitalk # See: https://github.com/gitalk/gitalk gitalk: enable:false github_id:# GitHub repo owner repository:# Repository name to store issues client_id:# GitHub Application Client ID client_secret:# GitHub Application Client Secret # Twikoo # See: https://github.com/imaegoo/twikoo twikoo: enable:false env_id:# Tencent Cloud environment id region:# environment region. If select Guangzhou, fill in "ap-guangzhou". rss: enable:false lazyload: enable:false cdn: enable:false pjax: enable:false footer: since:2020 # Keep version (Please don't modify) version:3.3.0
Publish
New post: hexo new <title>
New draft: hexo new draft <title>. When the draft ready, run hexo publish <title> to publish.
Ex. hexo new "Hello World".
Delete post/draft: Simply go to _post or draft folder and delete the .md file (and the the its asset folder).
If has the asset folder, the image path is just (name.png), don’t need anything at the beginning.