Skip to content

Commit

Permalink
Refactor Navigation component to remove external links
Browse files Browse the repository at this point in the history
This commit removes the code that handles external links in the Navigation component. The code for fetching and displaying external links has been commented out, as it is no longer needed. This change improves the clarity and maintainability of the code.
  • Loading branch information
Adammatthiesen committed Dec 11, 2024
1 parent 8c4ffd4 commit b445ebf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/studiocms_core/src/components/Navigation.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { Avatar } from 'studiocms:components';
import { StudioCMSRoutes } from 'studiocms:helpers/routemap';
import { externalNav } from 'virtual:studiocms/pluginSystem';
// import { externalNav } from 'virtual:studiocms/pluginSystem';
import './navigation.css';
import { pathWithBase } from 'studiocms:helpers';
import { getPageList, getSiteConfig } from 'studiocms:helpers/contentHelper';
Expand Down Expand Up @@ -50,14 +50,14 @@ for (const page of restOfPages) {
});
}
const externalLinks = Array.from(externalNav.values());
// const externalLinks = Array.from(externalNav.values());
for (const link of externalLinks) {
links.push({
text: link.text,
href: pathWithBase(link.slug),
});
}
// for (const link of externalLinks) {
// links.push({
// text: link.text,
// href: pathWithBase(link.slug),
// });
// }
---

<!-- If no dropdown items -->
Expand Down

0 comments on commit b445ebf

Please sign in to comment.