惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
量子位
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
美团技术团队
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
博客园 - 【当耐特】
L
LangChain Blog
A
About on SuperTechFans
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
Netflix TechBlog - Medium
博客园_首页
WordPress大学
WordPress大学
博客园 - Franky
Engineering at Meta
Engineering at Meta
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

Bboysoul's Blog

Blog Theme Update Mermaid Support Is Here 博客主题更新:现在支持 Mermaid 了 I Recreated My Own Version of TickTick with AI 我用 AI 复刻了一个自己的 TickTick 博客主题更新:更好读的文章页和代码块 Building a Personal Manga Library with Komga 用 Komga 搭一个自己的漫画库 Deploying LiteLLM on Kubernetes 在Kubernetes中部署LiteLLM 20260902的胡言乱语 Random Thoughts - 20260902 Introduction Finger 介绍下Finger How I Use Hermes 我是怎么用 Hermes 的 Whey Protein and Creatine 蛋白粉和肌酸 20260811的胡言乱语 Random Thoughts - 20260811 在 K8s 里搭建 WireGuard VPN 并访问集群网络 20260728的胡言乱语 Random Thoughts - 20260728 夏天来杯黄瓜柠檬水 Cloudflare 提交工单的迷宫——你得把所有下拉菜单点开才算完 聊聊 -XX:MaxRAMPercentage=75% 20260715的胡言乱语 Random Thoughts - 20260715 20260714的胡言乱语 Random Thoughts - 20260714 Random Thoughts - 20260708
Blog Theme Update Easier-to-Read Articles and Code Blocks
2026-09-04 · via Bboysoul's Blog

Introduction

I just did a round of updates on the blog theme, mostly about the reading experience: fonts load more smoothly, article pages are wider and more comfortable, code blocks got a toolbar, and the table of contents now works on mobile too. This post records what changed.

Fonts

LXGW WenKai and Font Awesome were both being loaded twice, and the font only switched in after the page finished loading, so the first screen used to flash. Now the font CSS loads directly in the page head, no more flash, and the number of requests is cut in half.

Article Pages

  • The content width no longer stretches mindlessly with the screen; it caps at 780px, so it’s not tiring to read on big displays
  • The sidebar table of contents now scrolls with you, so you don’t have to scroll back to the top to check it on long posts
  • Body font size, line height, and heading spacing were all re-tuned

Table of Contents on Mobile

Previously the TOC simply didn’t show on small screens, so with long technical posts the only way to jump to a section was scrolling down. Now there’s a Table of Contents (N) block right under the title; it only expands when you tap it, so it takes up no room.

Code Blocks

Code blocks got a toolbar:

  • Language shown in the top-left corner (YAML, BASH, that kind of thing)
  • Copy button in the top-right corner, and it changes to Copied after you click it
  • Code blocks longer than 24 lines can be collapsed, with the button showing something like Collapse · 44 lines
  • On phones the code block stretches full width, so horizontal scrolling feels much better

Homepage List

The post list on the homepage got a small touch-up: a little dot in front of each title, a faint dashed line between rows, and the title turns orange on hover. On phones the date moves below the title. It’s still a plain, simple list.

Previous / Next Posts

Added previous and next post navigation at the bottom of each article, right before the comments section, with the titles shown. Either side hides automatically when there’s no previous or next post, so when you’re reading technical posts you can just click through to the next one instead of going back to the homepage.

Back to Top

Added a back-to-top button in the bottom-right corner. It’s a little cat paw, only appears after you’ve scrolled a bit, and clicking it smooth-scrolls you back up.

Colors

Colors and corner radii were consolidated into CSS variables at the top of the stylesheet. If I want to fine-tune the palette later, I only need to change one place instead of searching the whole file for hex values.

Cleanup

A batch of old code got cleaned up along the way: dead commented-out code in the header, a JS file nobody uses anymore, and a style referencing the wrong font.

Feel free to follow my blog at www.bboy.app

Have Fun


Tags: