我的博客搭建全记录 — 从零到 Hexo + Butterfly
想拥有一个自己的博客很久了——不被平台限制,内容完全自主,还能折腾各种好玩的功能。 经过一番调研和尝试,最终选择了 Hexo + Butterfly。这篇文章记录下搭建过程,也希望能帮到有同样想法的朋友。 为什么选 Hexo? 纯静态 — 生成的就是 HTML,部署到哪都行 Markdown 写作 — 用熟悉的格式写文章 构建快 — 几十篇文章几秒就生成完 主题丰富 — Butterfly 就是其中最受欢迎的一个 Butterfly 主题亮点 🎨 内置深色模式,跟随系统自动切换 📱 完美适配移动端 ✍️ 打字机效果字幕 🔍 本地搜索,无需第三方服务 🖼️ 图片灯箱、代码高亮、数学公式 🌐 中英文双语支持 部署方案因为在国内,选择了自己的服务器 + Nginx 部署。所有静态资源(CSS、JS、字体图标)都自托管,不依赖任何境外 CDN,确保国内访问速度。 后续计划这个博客会持续更新,记录我的技术探索、摄影作品、旅行见闻和美食体验。希望能坚持写下去。
Getting Started with Hexo & Butterfly — Building Your First Blog
So you’ve decided to start a blog. After weighing all the options — WordPress, Hugo, Gatsby, Ghost — you landed on Hexo. Smart choice. Hexo is a Node.js static site generator that’s fast, flexible, and has a great ecosystem of themes. Paired with the Butterfly theme, you get a gorgeous, feature-packed blog with minimal effort. Why Hexo?Here’s what sold me on Hexo: Markdown-first — Write posts in the format you already know Blazing fast builds — Hundreds of posts generate in seconds Rich plug...
为什么每个程序员都应该有自己的博客
写博客这件事,说起来简单,坚持下来的人却不多。但我真心认为,每个程序员都应该有一个自己的博客。 不止是记录博客远不止是”写日记”。它是一份持续更新的简历。 面试官问你”做过什么项目”?你可以甩一个博客链接过去。那里有你写的技术文章、踩过的坑、解决过的问题——比你嘴上说的有说服力得多。 费曼学习法 如果你不能简单地解释清楚一件事,那说明你还没有真正理解它。 写技术文章的过程,就是最好的学习方式。你以为自己懂了 Docker,直到你想把它讲清楚。你会发现自己原来是一知半解。 写下来,才是真的懂了。 建立个人品牌在信息爆炸的时代,你的博客就是你的数字名片。它不需要多华丽,但需要真实、有料。长期坚持,你会收获: 同行的认可和交流 意想不到的合作机会 一个属于自己的互联网角落 为什么选独立博客知乎、掘金、CSDN 都很好。但它们不是你的地盘。 平台可能消失(还记得人人网吗?) 算法可能不给流量 内容可能被限流或删除 而自己的博客,永远在那里,你想写什么就写什么。 开始行动不需要完美。不需要等学会前端再开始。选 Hexo、Hugo、WordPress 都行。 先写第一篇,然后第二篇...
The Golden Hour — Why Every Photographer Chases It
If you’ve spent any time around photographers, you’ve heard the term “golden hour”. It’s that magical time right after sunrise or just before sunset when everything is bathed in warm, golden light. But why is it so special? And how do you make the most of it? The Science Behind the MagicDuring golden hour, sunlight travels through more atmosphere to reach us. This does two things: Warmer colors — Blue light scatters away, leaving rich oranges and reds Softer shadows — More atmosphere diffusi...
Kyoto in Autumn — A Journey Through Red Leaves and Ancient Temples
Kyoto in November is something else entirely. The city transforms into a canvas of crimson, orange, and gold — a phenomenon the Japanese call koyo (紅葉), the autumn leaf viewing season. I spent five days there last fall. Here’s what I learned. Day 1: ArashiyamaSkip the crowded bamboo grove (or go at 6 AM). Instead, head straight to Tenryu-ji Temple and its stunning garden. The temple’s Sogenchi Garden is one of the oldest Zen gardens in Japan, and the maples framing the pond are breathtaking. ...
Homemade Pasta from Scratch — It's Easier Than You Think
I used to think making fresh pasta was one of those things only Italian nonnas and professional chefs could pull off. Turns out I was wrong — dead wrong. With just two ingredients and about an hour, you can make pasta that blows dried boxed noodles out of the water. The Basic RecipeFor 2 servings: Ingredient Amount ‘00’ flour (or all-purpose) 200g Eggs 2 large Salt A pinch Semolina (for dusting) As needed That’s it. Two main ingredients. The Process1. Make the DoughPour the flou...