Skip to content

Commit de7e6f1

Browse files
committed
ktl-722 feat: add Kotlin Version to NextJS pages
1 parent a54e869 commit de7e6f1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

blocks/community/layout/community-layout.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import {Theme, ThemeProvider } from "@rescui/ui-contexts";
1111
import { useRouter } from "next/router";
1212
import {Favicon} from "../../../components/favicon/favicon";
1313
import {Search, onSearch} from "../../../components/search/search";
14+
import releasesDataRaw from '../../../data/releases.yml';
15+
16+
const releasesData: ReleasesData = releasesDataRaw as ReleasesData;
1417

1518
const items = [
1619
{
@@ -52,7 +55,7 @@ export const CommunityLayout: FC<CommunityLayoutProps> = ({title, children}) =>
5255
<GlobalHeader
5356
currentUrl={COMMUNITY_URL}
5457
currentTitle={COMMUNITY_TITLE}
55-
productWebUrl={''}
58+
productWebUrl={releasesData.latest.url}
5659
hasSearch={true}
5760
onSearchClick={onSearch}
5861
/>

types/releases.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
interface ReleasesData {
2+
latest: {
3+
url: string;
4+
}
5+
}

0 commit comments

Comments
 (0)