Website Changelog[2024.11.03]
What I Did Today
- Edited some blog drafts under
/content/xxx.md
- Pushed them to GitHub — finally uploaded some writing I had been keeping in Notion!
What I Learned
-
Why Zola uses so many files
The
templates/base.html
file uses Tera, which is a template engine that defines the basic layout of your site.
At the beginning, it imports a bunch of smaller HTML files that act like reusable components.This kind of modular structure gives you flexibility. For example, inside
base.html
, you’ll often see things like:{%- block seo %} ... {%- endblock seo %}
This tells Zola:
"Hey, this section can be replaced or extended later."Think of each
block
as a placeholder. If you don’t override it, Zola uses the default. But if you want to customize it, just create another template that extends the base, usually like this:{% extends "base.html" %}
Super flexible. Super useful. 💡
What I Want to Do Next
-
Change the logo!
I think it’s hardcoded somewhere intemplates/partials/header.html
. I’ll probably need to replace the file path manually.
But first… I have to actually draw a logo. Hmmm 🎨 -
Keep updating content
I want to fully replace the original Abridge demo content with my own writing. -
Adjust the language setup
Ideally, I want:- The site’s base language to stay in English
- But blog posts to default to Chinese
- And allow users to switch to English if they prefer
This might be tricky because I’ll need to make sure the language settings are consistent across multiple files (like
config.toml
, file names, front matter, etc).
Open Questions 🤔
-
Ugly URLs for Chinese blog titles
Example:https://chanyihua.com/overview-zi-wo-cheng-chang-yu-zi-wo-wan-zheng-xing/
→ Can I manually change the slug or link to make it cleaner? -
Manual date entry is annoying
I’m currently typing in the date for each.md
file manually.
→ Is there a way to automate this? -
Frequent git pushes vs batching commits
Right now, I push to GitHub every time I make a small change.
→ What are the pros and cons of doing that compared to batching multiple changes into one commit?
Time Spent: 2hr
✅ Priority Right Now
I want to focus on uploading and organizing content first, and only then start improving formatting and templates.
Go go go! 🚀