diff --git a/scripts/post-build.js b/scripts/post-build.js index fe867a2..d940972 100644 --- a/scripts/post-build.js +++ b/scripts/post-build.js @@ -50,11 +50,31 @@ if (process.env.NODE_ENV === 'production' && process.env.DEPLOY_TARGET === 'gith // Move logos directory to web-novit/logos moveDirectory('logos', 'web-novit/logos', '/logos/ → /web-novit/logos/'); - // Move video directory to web-novit/video - moveDirectory('video', 'web-novit/video', '/video/ → /web-novit/video/'); + // Move root-level assets to web-novit directory + const rootAssets = [ + 'novit-logo-official.png', + 'novit-icon-only.svg', + 'favicon.png', + 'robots.txt', + 'site.webmanifest', + 'sitemap.xml' + ]; + + rootAssets.forEach(asset => { + const fromPath = path.join(outDir, asset); + const toPath = path.join(webNovitDir, asset); + + if (fs.existsSync(fromPath)) { + try { + fs.copyFileSync(fromPath, toPath); + console.log(`✅ Copied /${asset} → /web-novit/${asset}`); + } catch (error) { + console.log(`⚠️ Failed to copy ${asset}:`, error.message); + } + } + }); - // Keep root files at root for GitHub Pages - console.log('✅ Root files maintained for GitHub Pages compatibility'); + console.log('✅ Root assets moved to web-novit directory for GitHub Pages compatibility'); console.log('🎉 GitHub Pages structure ready!'); } else { diff --git a/src/app/[locale]/academia/page.tsx b/src/app/[locale]/academia/page.tsx index 7587e03..d7ce1a6 100644 --- a/src/app/[locale]/academia/page.tsx +++ b/src/app/[locale]/academia/page.tsx @@ -7,7 +7,7 @@ import remarkGfm from 'remark-gfm'; import Image from 'next/image'; import Link from 'next/link'; import { ArrowLeft, BookOpen, Users, Award, Target } from 'lucide-react'; -import { getAssetPath } from '@/config/constants'; +import { getNavigationPath } from '@/config/constants'; import BackgroundVideo from '@/components/ui/BackgroundVideo'; interface AcademiaFrontmatter { @@ -203,7 +203,7 @@ export default async function AcademiaPage({ {/* Back Navigation */}