1 Star 0 Fork 0

二花 / thiscute.world

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
二花 提交于 2024-04-07 11:56 . docs: README

This Cute World / Ryan4Yin's Space

My personal blog, built using Hugo and hosted on Vercel or GitHub Pages.

Address: https://thiscute.world/

Editing

Use the new command to create a new post:

# new posts
hugo new posts/my-first-post/index.md

# new posts with special category name as a prefix
hugo new posts/category/my-first-post/index.md

Launch a local Hugo server including live reload by running:

# serve in debug mode, with all drafts
hugo server --debug --buildDrafts --disableFastRender

# serve in production mode
hugo serve -e production --disableFastRender

# or serve using the static files generated in production mode
# need to install caddy first
caddy file-server --root public/ --listen 0.0.0.0:8881

Now edit the newly created file under content/posts, and then you can view the live changes in the browser http://localhost:1313/

Github Action

Push updates to main branch will trigger a GitHub action to deploy the updates automatically.

The action workflow will:

  • Fetch Posts Trending Data from Google Analytics(website_statistics.json).
  • Deploy to GitHub Pages(branch gh-page).
  • Push Argolia Index for Search.

See .github/workflows/ for details.

Process Posts

on NixOS, cd into the project root directory will automatically enter a nix devShell with all the dependencies installed, this is done by direnv.

if you do not have direnv installed, you can also manually enter the devShell by running:

nix develop

then process posts by running:

python3 process_posts.py

Related Repositories

LICENSE

CC BY-NC 4.0

Python
1
https://gitee.com/ryan_yin/thiscute.world.git
git@gitee.com:ryan_yin/thiscute.world.git
ryan_yin
thiscute.world
thiscute.world
main

搜索帮助