Repository navigation
Load Leaflet on dataset pages again - #216
Merged
Merged
Conversation
The maps of the dataset pages were empty: Liquid does not see page.layout when it comes from the defaults of _config.yml, so the condition added in #210 was never true. The build check now looks for Leaflet on the pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matamadio
added a commit
that referenced
this pull request
Nov 25, 2026
Liquid does not see page.layout on these pages, see #216. The build check now looks for the stylesheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The maps of the live dataset pages are empty since #210 (
L is not defined): Leaflet is not loaded.Cause:
_includes/head.htmlloads it ifpage.layout == "dataset". The layout of these pages comes from the defaults in_config.yml, and Liquid only sees the fields a document has itself, so the condition is never true.Fix: the condition is now
page.collection == "datasets", which Jekyll'sDocumentDropgives for these pages.python/check_site.pynow fails the build if a dataset page has no Leaflet.Testing: checked on a local stand-in for Jekyll which hides
page.layoutas Jekyll does: without the fix the dataset page has no Leaflet, with it the page has, and the home page still has none. Jekyll itself was not run locally; the check of this PR builds the site with it and runs the new test.#208 has a third
page.layout == "dataset"condition, forcss/dataset.css. It needs the same change before it is merged.🤖 Generated with Claude Code