Skip to content

Commit adcc3e9

Browse files
authored
chore: read release date from latest.json (#324)
1 parent 7cadafb commit adcc3e9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pages/download.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import latest from '@site/static/data/latest.json'
77
import HeaderSlogan from '../components/HeaderSlogan'
88

99
export default function Plugins(): JSX.Element {
10-
const item = latest.release.version;
11-
const date= '2025-06-03'
10+
const item = latest.release.version;
11+
const date = latest.release.date;
1212
return (
1313
<Layout
1414
title={translate({ message: 'Download' })}

static/data/latest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"release": {
3+
"date": "2025-06-03",
34
"version": "1.5.1",
45
"url": "https://github.com/apache/answer/releases/tag/v1.5.1"
56
}
6-
}
7+
}

0 commit comments

Comments
 (0)