ctory where the repository is cloned
        const basePath = localStorage.getItem("BasePath"); 
        // ghSubdir and path get set to the path within the repository that the file is located.
        // These are hugo variables that get evaluated at build time and passed into the template.
        const ghSubdir = "{{ $gh_subdir }}";
        const filePath = "{{ $path }}"
        const vscodeUrl = `vscode://file/${basePath}/${ghSubdir}/${filePath}`; // Adjust according to your setup
        return vscodeU