Translated by AI model Qwen/Qwen3-8B.
Source Language: Simplified Chinese, Target Language: english, Translation Time: 2026-05-01 14:48
.AI translation is for reference only. Accuracy is not guaranteed, please refer to the original text.
| Written/Drafted On | Published On | Weekday | Time Period (24H) |
|---|---|---|---|
| 2024/10/05 | 2024/10/05 | Saturday | Noon |
Typecho Theme Recommendation: PureSuck
I saw his theme on Xiaozhi and thought it looked pretty good, but it felt incomplete without Pjax loading. So I raised an issue on GitHub asking if Pjax could be added?
The author (MoXi) replied: "Actually I tried it... my personal skills just couldn't solve all the bugs 😢 I hope someone can help me complete the adaptation, it's really sad."
I remembered seeing a pretty simple Pjax project before, so I decided to write my own, God-2077/PureSuck-theme.
The first part was easy, but it took a lot of time to set up Typecho on the server. Mainly because SSH connection timed out due to some firewall issues, and I eventually used GitHub Codespaces to finish it.
Then the server suddenly reported a 500 error, which turned out to be a missing semicolon in the PHP section. I really don't like PHP.
After fixing the 500 error, I found out that the theme's shortcodes are processed on the frontend, which I didn't expect. I thought they were handled on the backend. Adding a callback function was enough, but there might be many more functions to override. I'll leave that to the original author, after all, who knows which functions need overriding?
Then I noticed that some links in TM wouldn't redirect unless using Pjax? ???. I freaked out directly, and the console didn't show any errors either. What's going on here? Well, I'll just leave it to the original author to fix 😭😭😭.
Finally, I hastily added a Pace progress bar. Originally I wanted to write my own Pjax progress bar, but considering my lackluster skills, I gave up.
The whole process was done on the edge of collapse, but TM still had some little bugs.
This morning I found out that MoXi replied to my issue and improved the code, OK, I don't need to care about those codes anymore, yay✌.
MoXi pulled my code, so I got listed as a Contributor.

While reviewing the code, I noticed the author added another line under my comments. Haha. The middle line is his, and the lines above and below are mine. Haha.

Oh no, my National Day homework is still not done 😭😭😭, I'm rushing to finish it.
Afterword
- On 2024/10/7, shortly after this post was published, Xiaozhi pointed out that I misspelled his nickname, which was really sad 😭. I apologize again🙏🙏🙏. Just now I visited his blog and found out he changed his theme again ~~. I submitted several PRs to PureSuck, fixing some issues related to Pjax code, but thought the code I wrote was pretty bad.
If you enjoyed this, leave a comment~