This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer-website.git


The following commit(s) were added to refs/heads/main by this push:
     new adcc3e93d chore: read release date from latest.json (#324)
adcc3e93d is described below

commit adcc3e93d55559470afc78621978b9dfdaa7296f
Author: Luffy <lu...@apache.org>
AuthorDate: Tue Jun 3 18:39:05 2025 +0800

    chore: read release date from latest.json (#324)
---
 src/pages/download.tsx  | 4 ++--
 static/data/latest.json | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/pages/download.tsx b/src/pages/download.tsx
index 3ddd035ba..3cd2d5d24 100644
--- a/src/pages/download.tsx
+++ b/src/pages/download.tsx
@@ -7,8 +7,8 @@ import latest from '@site/static/data/latest.json'
 import HeaderSlogan from '../components/HeaderSlogan'
 
 export default function Plugins(): JSX.Element {
-  const item =  latest.release.version;
-  const date= '2025-06-03'
+  const item = latest.release.version;
+  const date = latest.release.date;
   return (
     <Layout
       title={translate({ message: 'Download' })}
diff --git a/static/data/latest.json b/static/data/latest.json
index 330f8d22f..ca38c6fde 100644
--- a/static/data/latest.json
+++ b/static/data/latest.json
@@ -1,6 +1,7 @@
 {
   "release": {
+    "date": "2025-06-03",
     "version": "1.5.1",
     "url": "https://github.com/apache/answer/releases/tag/v1.5.1";
   }
-}
\ No newline at end of file
+}

Reply via email to