Added an About Resume Page

Words: 573

The blog never had an About page. On one hand, I had already explained the blog’s original intent in the pinned post “The First Official Post: Let’s Just Chat”; on the other hand, I didn’t have any good ideas. Today I was idling at home with nothing to do, suddenly felt like tidying up my resume, and found that many of the handy tools I used before had started charging. I had actually already pulled out Alipay when it hit me: this seems like something I could build myself. After all, if usability and commercialization are off the table, writing a static page myself shouldn’t be that complicated.

So in the end I turned this About page into a showcase page for my resume, with HTML, PDF, and PNG export. Considering that a resume page contains some private information—though there’s no real need to hide it deliberately right now—it’s still not really suitable for promoting to everyone, so the entry link is on the avatar in the top-left corner of the site, a kind of “hiding in plain sight.”

The basic idea was to first write a static HTML page, then add a new page in the Hugo Theme and embed it.

I didn’t brute-force the HTML page either; with help from Tencent Yuanbao, I had the basic skeleton up quickly based on the view, and the rest was just adjusting some CSS implementations to my liking. Come to think of it, recent versions of Tencent Yuanbao seem very fond of generating HTML—even when asked an ordinary programming question, it wants to generate a page to explain it (the actual reply is inside the page, quite flashy and impractical…).

Exporting an image is not complicated right now; using html2canvas is enough to perfectly generate an image based on the final HTML styling.

For PDF export I first used the html2pdf library, whose principle is to first generate an image with html2canvas and then convert it to PDF. This approach loses links, text, and other information from the HTML, and the result is a PDF containing an image, which isn’t very elegant. So in the end I used the browser’s print function: by calling window.print, if the browser supports it, the print dialog opens and the user can choose to save as PDF.

However, since printing by default prints the entire page, to make maintenance easier I eventually pulled the resume page out into a separate Personal Resume HTML and embedded it into the main page via iframe, so when printing is invoked it can focus only on the resume itself. And I could add another button to open a new window, letting users go directly to the resume page itself.

In addition, I can use the @media print media query in CSS so that certain styles are triggered only when printing, which lets me adjust the final PDF’s appearance.

Actually, for a while I wanted to make a game project, build a web package, and put it on the site—after all, my career is still mainly in the game industry—but I haven’t brewed up the inspiration yet, so I’ve put it aside for now. There’s plenty of time ahead; maybe one day inspiration will strike and there’ll be another big overhaul.


Revision (2026-07-08): This article is the original design record. Later the About resume page was refactored again, merging the standalone resume page and About into a single page; see this follow-up update.

This post is licensed under CC BY-NC-SA 4.0. If it helped, or if you have anything to say, the comment box below is open.
Last updated on Jul 8, 2026 20:10
Page views —
Unique visitors —

Loading...