Is there a way to filter pages by partial filename?
For example:
/content/new-page.md
/content/old-page.md
/content/new-page2.md
How would I get all the pages that have ‘new’ in the filename?
Is there a way to filter pages by partial filename?
For example:
/content/new-page.md
/content/old-page.md
/content/new-page2.md
How would I get all the pages that have ‘new’ in the filename?
I solved it this way:
{{ range where $.Site.RegularPages "Section" $sectionName }}
{{ if ( findRE $params.find .File 1 ) }}
{{ .File }}
{{ end }}
{{ end }}