diff --git a/i18n/zh-CN/docusaurus-plugin-content-pages/news/index.mdx b/i18n/zh-CN/docusaurus-plugin-content-pages/news/index.mdx index 2feccd5..1c643c3 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-pages/news/index.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-pages/news/index.mdx @@ -13,7 +13,7 @@ export const NewsData = [ date: "2025-12-18", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v5-1-released", + link: "/news/ivorysql-v5-1-released", img: "/img/news/ivorysql-v5-1-released.png" }, { @@ -22,7 +22,7 @@ export const NewsData = [ date: "2025-11-25", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v5-0-released", + link: "/news/ivorysql-v5-0-released", img: "/img/news/ivorysql-v5-0-released.png" }, { @@ -31,7 +31,7 @@ export const NewsData = [ date: "2025-11-13", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/ivorysql-ospp-2025", + link: "/news/ivorysql-ospp-2025", img: "/img/news/ivorysql-ospp-2025.png" }, { @@ -40,7 +40,7 @@ export const NewsData = [ date: "2025-10-20", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/detail-pg18-contributors", + link: "/news/detail-pg18-contributors", img: "/img/news/detail-pg18-contributors.png" }, { @@ -49,7 +49,7 @@ export const NewsData = [ date: "2025-09-26", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-kylin-cert", + link: "/news/ivorysql-kylin-cert", img: "/img/news/ivorysql-kylin-cert.png" }, { @@ -58,7 +58,7 @@ export const NewsData = [ date: "2025-09-17", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-deepin-cert", + link: "/news/ivorysql-deepin-cert", img: "/img/news/ivorysql-deepin-cert.png" }, { @@ -67,7 +67,7 @@ export const NewsData = [ date: "2025-09-12", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-loongarch-cert", + link: "/news/ivorysql-loongarch-cert", img: "/img/news/ivorysql-loongarch-cert.png" }, { @@ -76,7 +76,7 @@ export const NewsData = [ date: "2025-09-11", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v4-6-released", + link: "/news/ivorysql-v4-6-released", img: "/img/news/ivorysql-v4-6-released.png" }, { @@ -85,7 +85,7 @@ export const NewsData = [ date: "2025-08-04", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-navicat", + link: "/news/ivorysql-navicat", img: "/img/news/ivorysql-navicat.png" }, { @@ -94,7 +94,7 @@ export const NewsData = [ date: "2025-07-15", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/ivorysql-expert-advisory-committee", + link: "/news/ivorysql-expert-advisory-committee", img: "/img/news/ivorysql-expert-advisory-committee.png" }, { @@ -103,7 +103,7 @@ export const NewsData = [ date: "2025-06-28", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/ivorysql-ospp-students", + link: "/news/ivorysql-ospp-students", img: "/img/news/ivorysql-ospp-students.png" }, { @@ -112,7 +112,7 @@ export const NewsData = [ date: "2025-06-05", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v4-5-released", + link: "/news/ivorysql-v4-5-released", img: "/img/news/ivorysql-v4-5-released.png" }, { @@ -121,7 +121,7 @@ export const NewsData = [ date: "2025-05-07", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/ivorysql-pku-course", + link: "/news/ivorysql-pku-course", img: "/img/news/ivorysql-pku-course.png" }, { @@ -130,7 +130,7 @@ export const NewsData = [ date: "2025-03-14", category: "community", categoryLabel: "社区动态", - link: "/zh-cn/news/ivorysql-deepseek-assistant", + link: "/news/ivorysql-deepseek-assistant", img: "/img/news/ivorysql-deepseek-assistant.png" }, { @@ -139,7 +139,7 @@ export const NewsData = [ date: "2025-03-10", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v4-4-released", + link: "/news/ivorysql-v4-4-released", img: "/img/news/ivorysql-v4-4-released.png" }, { @@ -148,7 +148,7 @@ export const NewsData = [ date: "2025-01-13", category: "product", categoryLabel: "产品动态", - link: "/zh-cn/news/ivorysql-v4-2-released", + link: "/news/ivorysql-v4-2-released", img: "/img/news/ivorysql-v4-2-released.png" } ]; @@ -156,7 +156,7 @@ export const NewsData = [ export const NewsCard = ({ news }) => { const { title, desc, date, category, categoryLabel, link, img } = news; return ( - +
{title}
@@ -225,12 +225,10 @@ export const NewsList = () => { .banner-text { position: relative; z-index: 2; max-width: 50%; } .banner-text h1 { font-size: 3rem; font-weight: bold; margin: 0; color: white !important; } .banner-text p { font-size: 1.2rem; opacity: 0.9; margin-top: 15px; color: white !important; } - .news-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; } .filter-container { display: flex; gap: 12px; margin-bottom: 30px; } .filter-btn { padding: 10px 24px; border-radius: 30px; border: 1px solid #f0f0f0; background: #fff; color: #666; cursor: pointer; transition: all 0.3s; font-weight: 500; } .filter-btn.active { background: #7D52F4; color: #fff; border-color: #7D52F4; } - .news-list { display: flex; flex-direction: column; gap: 20px; } .news-card { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; text-decoration: none !important; color: inherit !important; transition: all 0.3s; } .news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); } @@ -246,7 +244,6 @@ export const NewsList = () => { .pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 50px; } .pager-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid #7D52F4; color: #7D52F4; background: transparent; cursor: pointer; } .pager-btn:disabled { color: #ccc; border-color: #eee; cursor: not-allowed; } - @media (max-width: 996px) { .news-banner { min-height: 240px; padding: 2rem 1.5rem; background-position: bottom center; } .banner-text { max-width: 100%; text-align: center; margin-bottom: 80px; } diff --git a/i18n/zh-CN/docusaurus-plugin-content-pages/webinars-page.mdx b/i18n/zh-CN/docusaurus-plugin-content-pages/webinars-page.mdx index 870aa58..f9eb51c 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-pages/webinars-page.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-pages/webinars-page.mdx @@ -13,7 +13,7 @@ export const EventsData = [ startTime: "2025-12-25", endTime: "2025-12-25", location: "线上活动", - link: "/zh-cn/webinars/event-202517", + link: "/webinars/event-202517", img: "/img/events/event-202517.jpg" }, { @@ -22,7 +22,7 @@ export const EventsData = [ startTime: "2025-12-13", endTime: "2025-12-13", location: "线上活动", - link: "/zh-cn/webinars/event-202516", + link: "/webinars/event-202516", img: "/img/events/event-202516.png" }, { @@ -31,7 +31,7 @@ export const EventsData = [ startTime: "2025-11-29", endTime: "2025-11-29", location: "线下活动", - link: "/zh-cn/webinars/event-202515", + link: "/webinars/event-202515", img: "/img/events/event-202515.png" }, { @@ -40,7 +40,7 @@ export const EventsData = [ startTime: "2025-10-16", endTime: "2025-10-16", location: "线上活动", - link: "/zh-cn/webinars/event-202514", + link: "/webinars/event-202514", img: "/img/events/event-202514.png" }, { @@ -49,7 +49,7 @@ export const EventsData = [ startTime: "2025-09-29", endTime: "2025-09-29", location: "线上活动", - link: "/zh-cn/webinars/event-202513", + link: "/webinars/event-202513", img: "/img/events/event-202513.png" }, { @@ -58,7 +58,7 @@ export const EventsData = [ startTime: "2025-09-23", endTime: "2026-12-23", location: "线上活动", - link: "/zh-cn/webinars/event-202512", + link: "/webinars/event-202512", img: "/img/events/event-202512.png" }, { @@ -67,7 +67,7 @@ export const EventsData = [ startTime: "2025-09-16", endTime: "2026-02-28", location: "线上活动", - link: "/zh-cn/webinars/event-202511", + link: "/webinars/event-202511", img: "/img/events/event-202511.png" }, { @@ -76,7 +76,7 @@ export const EventsData = [ startTime: "2025-08-30", endTime: "2025-08-30", location: "线下活动", - link: "/zh-cn/webinars/event-202510", + link: "/webinars/event-202510", img: "/img/events/event-202510.png" }, { @@ -85,7 +85,7 @@ export const EventsData = [ startTime: "2025-07-18", endTime: "2025-07-18", location: "线下活动", - link: "/zh-cn/webinars/event-202509", + link: "/webinars/event-202509", img: "/img/events/event-202509.png" }, { @@ -94,7 +94,7 @@ export const EventsData = [ startTime: "2025-06-27", endTime: "2025-06-28", location: "线下活动", - link: "/zh-cn/webinars/event-202508", + link: "/webinars/event-202508", img: "/img/events/event-202508.jpg" }, { @@ -103,7 +103,7 @@ export const EventsData = [ startTime: "2025-06-07", endTime: "2025-06-07", location: "线下活动", - link: "/zh-cn/webinars/event-202507", + link: "/webinars/event-202507", img: "/img/events/event-202507.png" }, { @@ -112,7 +112,7 @@ export const EventsData = [ startTime: "2025-05-13", endTime: "2025-05-16", location: "线下活动", - link: "/zh-cn/webinars/event-202506", + link: "/webinars/event-202506", img: "/img/events/event-202506.png" }, { @@ -121,7 +121,7 @@ export const EventsData = [ startTime: "2025-05-09", endTime: "2025-06-09", location: "线上活动", - link: "/zh-cn/webinars/event-202505", + link: "/webinars/event-202505", img: "/img/events/event-202505.png" }, { @@ -130,7 +130,7 @@ export const EventsData = [ startTime: "2025-04-24", endTime: "2025-04-24", location: "线上活动", - link: "/zh-cn/webinars/event-202504", + link: "/webinars/event-202504", img: "/img/events/event-202504.png" }, { @@ -139,7 +139,7 @@ export const EventsData = [ startTime: "2025-04-19", endTime: "2025-04-19", location: "线下活动", - link: "/zh-cn/webinars/event-202503", + link: "/webinars/event-202503", img: "/img/events/event-202503.png" }, { @@ -148,7 +148,7 @@ export const EventsData = [ startTime: "2025-02-26", endTime: "2026-12-31", location: "线上活动", - link: "/zh-cn/webinars/event-202502", + link: "/webinars/event-202502", img: "/img/events/event-202502.png" }, { @@ -157,7 +157,7 @@ export const EventsData = [ startTime: "2025-01-04", endTime: "2025-01-04", location: "线下活动", - link: "/zh-cn/webinars/event-202501", + link: "/webinars/event-202501", img: "/img/events/event-202501.png" } ]; @@ -177,10 +177,8 @@ export const EventCard = ({ event }) => { return (
{title} diff --git a/src/pages/news/detail-pg18-contributors.mdx b/src/pages/news/detail-pg18-contributors.mdx index bd3d1b3..2d92b03 100644 --- a/src/pages/news/detail-pg18-contributors.mdx +++ b/src/pages/news/detail-pg18-contributors.mdx @@ -4,6 +4,7 @@ hide_table_of_contents: true --- import useBaseUrl from '@docusaurus/useBaseUrl'; +import Link from '@docusaurus/Link';