From 0c3e3d1a01de5c42680f47e2f9d3844fe8b9ad94 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Fri, 6 Jun 2025 22:28:59 +0200 Subject: [PATCH] Add Web Development section to navigation and update development.astro metadata - Introduce a new "Web Development" section in the navigation with a link to 365devnet. - Update the import statement in development.astro to use PageLayout. - Add metadata for improved SEO, including title and description for the development page. --- src/navigation.ts | 10 ++++++++++ src/pages/development.astro | 9 +++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/navigation.ts b/src/navigation.ts index 4996c0d..d0fc70c 100644 --- a/src/navigation.ts +++ b/src/navigation.ts @@ -43,6 +43,16 @@ export const getHeaderData = (lang = 'en') => { { text: t.development.title, links: [ + { + text: 'Web Development', + links: [ + { + text: '365devnet', + href: getPermalink('/development', 'page', lang), + isHashLink: false, + }, + ], + }, { text: 'Anti-FP Shield+', href: getPermalink('/antifp', 'page', lang), diff --git a/src/pages/development.astro b/src/pages/development.astro index 27e7042..d2aec0a 100644 --- a/src/pages/development.astro +++ b/src/pages/development.astro @@ -1,11 +1,16 @@ --- -import Layout from '../layouts/Layout.astro'; +import Layout from '../layouts/PageLayout.astro'; import { getPermalink } from '../utils/permalinks'; import { getTranslation } from '../i18n/translations'; import React, { useMemo } from 'react'; import dynamic from 'astro/dynamic'; import ContributionCalendar from '../components/ContributionCalendar.jsx'; +const metadata = { + title: 'Development Progress | 365DevNet', + description: 'See the latest development activity, code contributions, and commit history for the 365DevNet project.', +}; + const lang = Astro.params.lang || 'en'; const t = getTranslation(lang); @@ -59,7 +64,7 @@ function getContributionData(commits) { const contributionData = getContributionData(commits); --- - +

{t.development.title || 'Development Progress'}