We are wanting to have out content split into 2 sections in the content directory:
- pages
- job-openings
The idea here is to that the content in each uses a different template in Netlify. Then in a short code:
{{ $section := "jobs" }}
<ul>
{{ range (where .Site.RegularPages.ByTitle "Section" $section ) }}
<li><a href="{{ .Permalink }}">{{ .Params.title | humanize | title }}</a></li>
{{ end }}
</ul>
The issue here is that the resulting display results in no pages. If I change the value of $section
to be ‘pages’ then I get output, but not of the directory I am interested in.
Can anyone suggest what I should be doing?