Add support for related_pages parameter to the events include#412
Open
sitjart wants to merge 2 commits intoELIXIR-Belgium:mainfrom
Open
Add support for related_pages parameter to the events include#412sitjart wants to merge 2 commits intoELIXIR-Belgium:mainfrom
related_pages parameter to the events include#412sitjart wants to merge 2 commits intoELIXIR-Belgium:mainfrom
Conversation
Add the related_pages parameter to be able to display events by a filter on any page.
Author
|
See ELITma for an example of how this would render in practice without affecting previous events pages. This only adds the capability to use a filter to display some events in certain pages |
bedroesb
reviewed
Mar 27, 2026
| {%- else %} | ||
| {%- assign events = site.data.events | sort: "startDate" | reverse %} | ||
| {%- assign count = 0 %} | ||
| {%- endif %} |
Member
There was a problem hiding this comment.
I think {%- assign count = 0 %} has to stay if you list both past and future events, no? otherwhise the counter does not get reset I think
Author
|
You're right. I was playing with other things for the 0, and I removed that important part. |
udpate error on count 0
related_pages parameter to the events include
Member
|
@sitjart Thanks for this! Could you also add a line describing the parameter on this page: https://elixir-belgium.github.io/elixir-toolkit-theme/events ? |
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.
Add the related_pages parameter to be able to display events by a filter on any page.