<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>English on seth-shi</title><link>https://sethix.com/tags/english/</link><description>Recent content in English on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 24 Apr 2025 10:42:53 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/english/index.xml" rel="self" type="application/rss+xml"/><item><title>Make Your Hugo Blog Multilingual</title><link>https://sethix.com/posts/2025042410/</link><pubDate>Thu, 24 Apr 2025 10:42:53 +0800</pubDate><guid>https://sethix.com/posts/2025042410/</guid><description>Preface First of all, Hugo cannot achieve automatic redirection because it is essentially a static site generator. https://discourse.gohugo.io/t/auto-detect-browser-preferred-language/8391 Implementation The theme I&amp;rsquo;m using is https://github.com/CaiJimmy/hugo-theme-stack. Others can be modified as needed. Add language configuration in config.toml: languages: zh-cn: languageName: Chinese weight: 1 en: languageName: English title: &amp;#34;seth-shi&amp;#34; weight: 2 add a switch language button layouts/partials/sidebar/left.html &amp;lt;li id=&amp;#34;lang-switcher&amp;#34;&amp;gt; {{ range .Site.Languages }} &amp;lt;a data-url=&amp;#34;{{ .Lang | relURL }}&amp;#34; href=&amp;#34;javascript:void(0);&amp;#34; class=&amp;#34;lang-item {{ if eq .</description></item></channel></rss>