--- import Head from "@components/_head.astro" import Footer from "@components/dashboard/_footer.astro" import Topbar from "@components/dashboard/_topbar.astro" import Scripts from "@components/_scripts.astro" import { convertPathToHtml } from "../../../utils/index.js" const title = "AdminLTE 4 | Theme Customize" const path = "../../../dist" const htmlPath = convertPathToHtml(path); // Smart path resolution: calculate relative path based on directory depth const pathname = Astro.url.pathname; const pathSegments = pathname.split('/').filter(segment => segment !== ''); const depth = pathSegments.length > 0 ? pathSegments.length - 1 : 0; const deploymentPath = depth === 0 ? './' : '../'.repeat(depth); ---