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

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

Bear docs

Private blogs Favicons and logos Comments Roadmap Not seeing your post? Code of Conduct RSS Subscriber analytics Upgrading from subscription to lifetime Neat Bear features
Multi-language blog
hidden (docs · 2025-08-27 · via Bear docs

Bear docs

There are a few ways to set up a multi-language blog on Bear. Below are the most common methods. All of the examples will use English and French as the two languages.

This is the simplest approach. Write one blog in English, and one blog in French. You can then subdomain the blogs to represent the languages with either a custom domain (eg: fr.myblog.com) or using the Bear subdomain (eg: myblog-fr.bearblog.dev).

On the home page, in the nav, or in the footer (or anywhere else that supports content on Bear) add a link to the other language blog in the form of something like:

[Read this blog in French](https://fr.myblog.com)

This method relies on an upgraded account which can handle multiple blogs. Ensure you set the lang attribute for the blog so that it is filtered correctly in the Bear discovery feed and by search engines.

Use tag filters

This method uses one blog, but allows you to write in multiple languages. It works by tagging posts as a specific language, then using filters to correctly categorise them.

  • Set your blog lang attribute to the most used language (eg: lang: en)
  • On each post set the relevant lang attribute (eg: lang: fr).
  • On each post set a tag specifying the language of the post (eg: tags: French)

Now in your blog's Nav (or anywhere that supports content on Bear) you can specify a tag filtered blog list using the /blog/?q=French query. Eg:

[Home](/) [English posts](/blog/?q=English) [Articles français](/blog/?q=French)

This could be used in homepage content instead with something along the lines of:

Lis [mes articles en français](/blog/?q=French)

Using post list embeds

This method uses one blog, but allows you to write in multiple languages. It works by tagging posts as a specific language, then using embedded post lists to correctly categorise them.

Similarly to the previous method you'll need to categories the posts like this:

  • Set your blog lang attribute to the most used language (eg: lang: en)
  • On each post set the relevant lang attribute (eg: lang: fr).
  • On each post set a tag specifying the language of the post (eg: tags: French)

Then create a page (called something like Articles français) and in that page set the content to:

# Articles français

{{ posts|tag:French }}

You can do the same thing for English posts.

Note that this method doesn't allow filtering further by tags, since post embeds don't support tag filtering.

Final thoughts

There are a few other, more esoteric ways to handle this. I've seen some examples of using <details><summary>Read in English<summary>..., and others where people get creative with Javascript. The world is your mollusk.

Any great ideas to add to this docs page? Send me an email.