New Post Filters for Dynamic Variables
Dynamic variables just got a bit more powerful. You can now filter posts on your pages using three new parameters: title, emailed, and without_tag.
Filter by title
It's common for people to write 'social posts' without titles on Pagecord as well as longer, more traditional essay-type posts that have titles. Now you can create a filter showing only one or the other:
{{ posts | title: true }}
{{ posts | title: false }}This is handy if you want to list your longer-form writing separately to your shorter notes.
Filter by newsletter
If you're using Pagecord's email newsletter feature, you can now surface which posts have been (or haven't been) sent to subscribers:
{{ posts | emailed: true }}
{{ posts | emailed: false }}This will come in handy if you want to create a "newsletter archive" page.
Note: this will become more useful when "individual newsletter" posts are enabled for everyone - this feature is still being tested and not released.
Exclude by tag
It was already possible to filter posts by tag. Now you can filter posts that don't have a specific tag:
{{ posts | without_tag: personal }}
{{ posts | without_tag: personal, draft }}Combine everything
All of these new parameters work with both {{ posts }} and {{ posts_by_year }}, and they compose naturally with existing filters:
{{ posts_by_year | title: true | without_tag: personal | sort: asc }}That filter would give you a chronological archive of titled posts, minus anything tagged "personal".
Hopefully you find these new tags useful!