-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure seamless navigation between primary and auxiliary sites
This commit addresses issues where navigating between internal pages and those hosted on an auxiliary site would open additional tabs. The following key changes have been introduced: 1. **Setting the top-level `url` configuration** to match the auxiliary site’s actual URL. This ensures: - Links to the download site are treated as internal, preventing unnecessary new tab openings. - Various `<meta>` elements, as well as generated files such as `browserconfig.xml`, `robots.txt`, and `sitemap.xml`, correctly reference `https://download.slicer.org` instead of `https://slicer.org`. 2. **Introducing the `is_primary_site` config variable** to differentiate between the primary site (`slicer.org`) and auxiliary sites (e.g., `download.slicer.org`). This variable is now used in the `header`, `navbar-column`, and `sitemap-column` includes to conditionally generate links. 3. **Enhancing link post-processing** via the `jekyll-spaceship` plugin to handle links with the `force-internal-link` class. This class is conditionally applied based on the `is_primary_site` setting. The adjustment is necessary to counteract the `jekyll-target-blank` plugin, which enforces opening external links in a new window by default.
- Loading branch information
Showing
5 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters