<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Hugo on 流动</title>
		<link>https://liudon.com/tags/hugo/</link>
		<description>Recent content in Hugo on 流动</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Wed, 09 Sep 2026 00:00:00 +0800</lastBuildDate>
		
			<atom:link href="https://liudon.com/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>博客焕新，记录继续</title>
				<link>https://liudon.com/posts/blog-refresh/</link>
				<pubDate>Fri, 04 Sep 2026 11:41:08 +0800</pubDate>
				<guid>https://liudon.com/posts/blog-refresh/</guid>
				<description>&lt;h2 id=&#34;前言&#34;&gt;前言&lt;/h2&gt;&#xA;&lt;p&gt;经常访问本站的朋友，可能已经发现本站换了新的主题。&lt;/p&gt;&#xA;&lt;p&gt;回顾折腾博客的这一路，已经用过了5个主题，其中 PaperMod 这个用的时间最长。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cactus&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;jane&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;yinyang&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;meme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;PaperMod&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;一直想换个新主题，但查了一下，没有找到特别喜欢的主题了。&lt;/p&gt;</description>
			</item>
			<item>
				<title>博客加速实践</title>
				<link>https://liudon.com/posts/blog-performance-optimization/</link>
				<pubDate>Tue, 01 Sep 2026 15:14:02 +0800</pubDate>
				<guid>https://liudon.com/posts/blog-performance-optimization/</guid>
				<description>&lt;p&gt;目前博客部署在 Cloudflare Pages 服务上，通过 DnsPod 服务做了国内和海外分线路解析。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Cloudflare Pages&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       ↑&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;blog.liudon.xyz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   ↑         ↑&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; 回源       直接访问&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   │         │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;腾讯云 CDN    │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   ↑         ↑&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   国内     海外&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     \       /&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      DNSPod&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        ↑&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    liudon.com&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;因为 Cloudflare 在国内属于反向加速，所以加了一层国内CDN做加速。&lt;/p&gt;</description>
			</item>
			<item>
				<title>当Hugo遇上AVIF，优化图片加载</title>
				<link>https://liudon.com/posts/use-avif-to-optimize-images-on-hugo/</link>
				<pubDate>Mon, 30 Sep 2024 22:01:45 +0800</pubDate>
				<guid>https://liudon.com/posts/use-avif-to-optimize-images-on-hugo/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;更新说明（2026-09）&lt;/strong&gt;：本文记录的是 2024 年使用 ImageMagick 全量生成单一 1080px AVIF/WebP 文件的历史方案。本站当前已改用 Sharp 预生成多个尺寸并复用构建缓存；当前 Hugo 也已经支持 AVIF 图片处理。最新实现见&lt;a href=&#34;https://liudon.com/posts/blog-performance-optimization/&#34;&gt;博客加速实践&lt;/a&gt;。&lt;/p&gt;</description>
			</item>
			<item>
				<title>使用Hugo实现响应式和优化的图片</title>
				<link>https://liudon.com/posts/responsive-and-optimized-images-with-hugo/</link>
				<pubDate>Sun, 10 Dec 2023 08:29:05 +0800</pubDate>
				<guid>https://liudon.com/posts/responsive-and-optimized-images-with-hugo/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;更新说明（2026-09）&lt;/strong&gt;：本文记录的是 2023 年基于 PaperMod 的 Hugo 响应式图片方案，代码已不再用于本站。当前实现改为 Sharp 预生成多尺寸 AVIF/WebP、媒体缓存和 Terminal 主题共享图片组件，详见&lt;a href=&#34;https://liudon.com/posts/blog-performance-optimization/&#34;&gt;博客加速实践&lt;/a&gt;。&lt;/p&gt;</description>
			</item>
			<item>
				<title>使用Google Indexing API加速博客收录</title>
				<link>https://liudon.com/posts/how-to-use-google-indexing-api-to-speed-up-blog-indexing/</link>
				<pubDate>Fri, 27 Oct 2023 19:32:24 +0800</pubDate>
				<guid>https://liudon.com/posts/how-to-use-google-indexing-api-to-speed-up-blog-indexing/</guid>
				<description>&lt;p&gt;对于一个新站点来说，总是想着能让搜索引擎快点收录网站内容。&lt;/p&gt;&#xA;&lt;p&gt;今天，我们就来介绍一种利用&lt;code&gt;Google Indexing API&lt;/code&gt;接口，通过&lt;code&gt;Github Actions&lt;/code&gt;实现部署时通知&lt;code&gt;Google&lt;/code&gt;抓取页面内容。&lt;/p&gt;</description>
			</item>
			<item>
				<title>在Netlify上部署Twikoo评论系统</title>
				<link>https://liudon.com/posts/deploy-twikoo-on-netlify/</link>
				<pubDate>Thu, 19 Oct 2023 19:46:32 +0800</pubDate>
				<guid>https://liudon.com/posts/deploy-twikoo-on-netlify/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;在本篇文章里，我会介绍如何在Netlify上部署Twikoo评论系统，如何接入到静态博客Hugo，以及如何实现Twikoo系统版本自动更新。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;2026 年更新说明&lt;/strong&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>修正Hugo的JSON Feed格式</title>
				<link>https://liudon.com/posts/fix-hugo-json-feed/</link>
				<pubDate>Sat, 25 Mar 2023 14:11:18 +0800</pubDate>
				<guid>https://liudon.com/posts/fix-hugo-json-feed/</guid>
				<description>&lt;h4 id=&#34;问题背景&#34;&gt;问题背景&lt;/h4&gt;&#xA;&lt;p&gt;前几天在&lt;a href=&#34;https://planetics.xyz/&#34;&gt;Planet&lt;/a&gt;里follow自己的&lt;a href=&#34;https://liudon.eth&#34;&gt;web3博客&lt;/a&gt;，遇到下面的错误。&lt;/p&gt;&#xA;&lt;p&gt;&lt;picture&gt;&lt;source type=&#34;image/avif&#34; srcset=&#34;https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_320x.avif 320w, https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_480x.avif 480w, https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_716x.avif 716w&#34; sizes=&#34;auto, (min-width: 1080px) 1080px, calc(100vw - 32px)&#34;&gt;&lt;source type=&#34;image/webp&#34; srcset=&#34;https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_320x.webp 320w, https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_480x.webp 480w, https://liudon.com/posts/fix-hugo-json-feed/202303251415675.png_716x.webp 716w&#34; sizes=&#34;auto, (min-width: 1080px) 1080px, calc(100vw - 32px)&#34;&gt;&lt;img src=&#34;../../posts/fix-hugo-json-feed/202303251415675.png&#34; alt=&#34;PlanetFeedError&#34;&#xA;         width=&#34;716&#34; height=&#34;544&#34;&#xA;         loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;  &lt;/picture&gt;&lt;/p&gt;&#xA;&lt;p&gt;经过Livid大佬提醒，说是网站的JSON Feed不是标准格式导致的。&lt;/p&gt;&#xA;&lt;p&gt;因为我的已经修正没法截图，这里以&lt;a href=&#34;https://dvel.me/index.json&#34;&gt;dvel的博客&lt;/a&gt;举例，格式类似如下。&lt;/p&gt;</description>
			</item>
			<item>
				<title>将博客部署到星际文件系统(IPFS)</title>
				<link>https://liudon.com/posts/deploy-blog-to-ipfs/</link>
				<pubDate>Tue, 21 Feb 2023 19:46:58 +0800</pubDate>
				<guid>https://liudon.com/posts/deploy-blog-to-ipfs/</guid>
				<description>&lt;p&gt;在这篇文章，我将会介绍如何利用&lt;code&gt;Github Actions&lt;/code&gt;将&lt;code&gt;hugo&lt;/code&gt;博客自动部署到&lt;code&gt;IPFS&lt;/code&gt;上，并通过自定义域名访问&lt;code&gt;IPFS&lt;/code&gt;上的文件。&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;IPFS（InterPlanetary File System）中文称为星际文件系统，是一个旨在实现文件的分布式存储、共享和持久化的网络传输协议。&lt;/p&gt;</description>
			</item>
			<item>
				<title>累计布局偏移修复方案改进 —— 自动生成图片宽高</title>
				<link>https://liudon.com/posts/hugo-auto-generate-image-width-and-height/</link>
				<pubDate>Wed, 24 Aug 2022 12:37:22 +0800</pubDate>
				<guid>https://liudon.com/posts/hugo-auto-generate-image-width-and-height/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;更新说明（2026-09）&lt;/strong&gt;：本站已不再采用通过远程接口读取图片宽高的方案。当前图片处理已升级为本地 Page Bundle、Sharp 多尺寸 AVIF/WebP 预生成和构建缓存，详见&lt;a href=&#34;https://liudon.com/posts/blog-performance-optimization/&#34;&gt;博客加速实践&lt;/a&gt;。2023 年的中间演进方案可参考&lt;a href=&#34;../../posts/responsive-and-optimized-images-with-hugo/&#34;&gt;使用 Hugo 实现响应式和优化的图片&lt;/a&gt;。&lt;/p&gt;</description>
			</item>
			<item>
				<title>将博客部署到Cloudflare Pages</title>
				<link>https://liudon.com/posts/deploy-blog-to-cloudflare-pages/</link>
				<pubDate>Fri, 29 Jul 2022 23:16:01 +0800</pubDate>
				<guid>https://liudon.com/posts/deploy-blog-to-cloudflare-pages/</guid>
				<description>&lt;p&gt;目前博客是部署到了&lt;code&gt;Github Pages&lt;/code&gt;上，具体实现见&lt;a href=&#34;https://liudon.com/posts/%E5%8D%9A%E5%AE%A2%E6%9E%B6%E6%9E%84%E8%AF%B4%E6%98%8E/&#34;&gt;博客架构说明&lt;/a&gt;。&lt;/p&gt;&#xA;&lt;h4 id=&#34;缘由&#34;&gt;缘由&lt;/h4&gt;&#xA;&lt;p&gt;&lt;code&gt;Github Pages&lt;/code&gt;部署有一个问题，就是不支持&lt;code&gt;HSTS&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;HTTP Strict Transport Security（通常简称为HSTS）是一个安全功能，它告诉浏览器只能通过 HTTPS 访问当前资源，而不是HTTP。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
