Skip to content

Kylinxin/Kylinxin.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kylinxin Blog

This repository publishes https://kylinxin.github.io as a Hexo blog using the NexT theme.

NexT is installed with the official clone-style layout:

themes/next

The theme directory was copied from /Volumes/storage/GithubProject/hexo-theme-next, matching the upstream installation requirement to place next-theme/hexo-theme-next under themes/next and set theme: next in _config.yml. Keep site-specific settings in _config.next.yml; do not modify files inside themes/next for normal blog configuration.

Daily Workflow

Install dependencies once:

npm install

Create a new note:

npm run new:post -- "文章标题" "分类名" "tag1,tag2"

Edit an existing note:

npm run edit:post -- "文章标题或文件名" "追加或替换测试文字"

For normal editing, directly edit files under source/_posts/, then update the updated: field in the front matter.

Generate the site into public/:

npm run generate

Build the deployable GitHub Pages files into the repository root:

npm run build

Verify the recovered posts, weekly dates, NexT output, archives, categories, tags, feed, and sitemap:

npm run check

Publish after verification:

git add -A
git commit -m "..."
git push origin main

Repository Layout

  • source/_posts/: editable note sources.
  • _config.yml: Hexo site configuration.
  • _config.next.yml: NexT theme configuration.
  • themes/next/: local clone of next-theme/hexo-theme-next.
  • tools/: local maintenance scripts for build/check/new/edit.
  • Root index.html, 2023/, archives/, categories/, tags/, atom.xml, and sitemap.xml: generated GitHub Pages output.

Do not edit generated root HTML by hand for normal note work. Edit source/_posts/, run npm run build, then verify with npm run check.

About

for blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors