Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pedalpalooza-specific page template #810

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

carrythebanner
Copy link
Collaborator

The calevents layout template was a bit overloaded with is-it-PP-or-not logic, so this splits that out to its own page template. That also lets us be more exact in which calendar scripts load on which calendar pages. e.g. now the FullCalendar scripts can be omitted from the default list view (/calendar)

Also, consolidated most calendar scripts into layouts/partials/cal/scripts.html, so the usage is now similar to layouts/partials/cal/head.html. There's still some more untangling we can do to avoid some of these conditional load statements, but this at least organizes it a bit better and in some cases trims down the page transfer size.

Note: This doesn't resolve #744 — I added a bit of logic to prevent unneeded partials from loading, but we could still use a dedicated page template for those older ones.

@carrythebanner
Copy link
Collaborator Author

Fixes #798

@carrythebanner carrythebanner marked this pull request as ready for review September 4, 2024 02:41
@carrythebanner carrythebanner merged commit bf8b194 into shift-org:main Sep 4, 2024
4 checks passed
@carrythebanner carrythebanner deleted the calfestival-layout branch September 4, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make a new page template for Pedalpalooza 2007 and earlier
1 participant