We have event content where we can set a ‘series’ front matter.
To define the start/landing page of that series, we have a second front matter ‘start’.
Now i would like to create a link that links to the page with both a particular series and start.
So a link to the landing page of that series.
Is there any way of querying content and getting the url of that page?
If I am understanding you correctly, you could write a shortcode for this that would grab the series param from front matter, then link to the page by that name.
thanks for the hint.
I needed to use it in the layout of an event, so html.
This is how i got it running now:
{{ if isset .Params "series"}}
{{ $series := .Params.series }}
{{ range where .Site.Pages "Params.series" $series }}
{{ if eq .Params.start "true"}}
<div>This event is part of series '<strong><a href="{{ .Permalink }}">{{ $series }}</a></strong>'</div>
{{ end }}
{{ end }}
{{ end }}