My personal blog, built using Hugo and hosted on Vercel or GitHub Pages.
Address: https://thiscute.world/
Use the new
command to create a new post:
# new posts
hugo new posts/2024/Q3/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/
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.
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
- Serverless Comment System