From f4c37e0adab5611c18d24735511eec75ec74ae52 Mon Sep 17 00:00:00 2001 From: "cinwell.li" Date: Wed, 4 Mar 2026 20:13:50 +0800 Subject: [PATCH 1/2] docs: change embedded website link to Google Updated the embedded link from cinwell.com to google.com. --- docs/embed-files.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/embed-files.md b/docs/embed-files.md index e9241c478..890edd843 100644 --- a/docs/embed-files.md +++ b/docs/embed-files.md @@ -94,10 +94,10 @@ If you embed the file as `iframe`, `audio` and `video`, then you may need to set ``` ```markdown -[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px') +[cinwell website](https://google.com ':include :type=iframe width=100% height=400px') ``` -[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px') +[cinwell website](https://google.com ':include :type=iframe width=100% height=400px') Did you see it? You only need to write directly. You can check [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for these attributes. From 0cfee34dbc0d511a272070e4124eb2f3102d988e Mon Sep 17 00:00:00 2001 From: Bowl42 Date: Wed, 4 Mar 2026 21:08:53 +0800 Subject: [PATCH 2/2] fix: strip HTML tags from config.name when setting page title (#2690) The `name` config option can contain HTML markup (e.g. `` tags) for rendering a logo in the sidebar. However, this raw HTML was being used directly in `document.title`, causing browser tabs to show markup like `My Site - Page Title`. Strip HTML tags from `name` before using it in the page title so that only the plain text content appears in the browser tab. Fixes #2610 Co-authored-by: Claude Opus 4.6 --- src/core/event/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/event/index.js b/src/core/event/index.js index f92c38e5b..1fd7abce9 100644 --- a/src/core/event/index.js +++ b/src/core/event/index.js @@ -329,10 +329,11 @@ export function Events(Base) { .find(`.sidebar a[href='${currentPath}']`) ?.getAttribute('title'); - const currentTitle = name + const plainName = name ? name.replace(/<[^>]+>/g, '').trim() : name; + const currentTitle = plainName ? currentSection - ? `${currentSection} - ${name}` - : name + ? `${currentSection} - ${plainName}` + : plainName : currentSection; // Update page title