Ryan4Yin's Space, built using Hugo and hosted on GitHub Pages.
Address: https://ryan4yin.space
Launch a local Hugo server including live reload by running (append -F
for including future posts):
hugo server -D --debug
You can manually create content files (for example as content/<CATEGORY>/<FILE>.<FORMAT>
) and provide metadata in them, however you can use the new
command to do a few things for you (like add title and date):
hugo new posts/my-first-post.md
Edit the newly created file under content/posts
, update the header of the post to say draft: false
,
you can view the live changes in the browser http://localhost:1313/
Push updates to main
branch will trigger a github action to deploy the updates automatically.
see .github/workflows/gh-pages.yaml for details.
- sync posts to cnblogs(markdown & image)