You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/05/12 09:26:44 UTC
[pulsar-site] branch main updated: fix blogs
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new b8ba67007e2 fix blogs
b8ba67007e2 is described below
commit b8ba67007e230aaad57070673c7654998b729427
Author: Li Li <ur...@apache.org>
AuthorDate: Thu May 12 17:26:35 2022 +0800
fix blogs
Signed-off-by: Li Li <ur...@apache.org>
---
site2/website-next/blog/2022-05-11-whats-new-in-pulsar-210.md | 2 +-
site2/website-next/migrate/migrate-blogs.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/site2/website-next/blog/2022-05-11-whats-new-in-pulsar-210.md b/site2/website-next/blog/2022-05-11-whats-new-in-pulsar-210.md
index c70cd7bf99d..5c3e240eb26 100644
--- a/site2/website-next/blog/2022-05-11-whats-new-in-pulsar-210.md
+++ b/site2/website-next/blog/2022-05-11-whats-new-in-pulsar-210.md
@@ -1,5 +1,5 @@
---
-title: ""What’s New in Apache Pulsar 2.10""
+title: "What’s New in Apache Pulsar 2.10"
date: 2022-05-11
author: "Penghui Li, Dave Duggins"
---
diff --git a/site2/website-next/migrate/migrate-blogs.js b/site2/website-next/migrate/migrate-blogs.js
index 69beb04b103..f4564440d4d 100644
--- a/site2/website-next/migrate/migrate-blogs.js
+++ b/site2/website-next/migrate/migrate-blogs.js
@@ -21,6 +21,7 @@ function migrate(mdpath) {
let data = fs.readFileSync(mdpath, "utf8");
data = fixMd(data)
.replace(/title:\s*(.*)/, 'title: "$1"')
+ .replace(/title:\s*""(.*)""/, 'title: "$1"')
.replace(/\.\.\/img\//g, "/img/");
if (!/<!--truncate-->/.test(data)) {
data = data.replace(/\.\n/, ".\n\n<!--truncate-->\n");