I’d like to exclude from my homepage any shortform posts. Maybe more easily scoped to display only posts with a title? What’s the best way to achieve that?
There’s no universal “just click a button” solution for this, unfortunately. In theory, the theme developer could offer this as a setting, but in most cases, you’ll need to set up a custom theme and tweak it to your liking.
It looks like you’re using the Tiny theme, so the relevant line of code to modify is here.
Thanks! I am using Tiny Theme, so appreciate the point to their docs. I’ll just see if I can make it work.
If it helps, I modified my theme to only show titled posts (for the moment, I’m a frequent theme changer). I wrote up the steps here on my blog: Hey Loura! | Micro.blog hosted blog - List only titled posts on homepage
Here was the relevant change (which should be the line @sod pointed out):
{{ $pages := where .Site.Pages.ByDate.Reverse "Type" "post" }}
{{ $pages = where $pages "Params.title" "ne" nil }}
{{- $paginator := .Paginate $pages (index .Site.Params "archive-paginate" | default 20) }}
1 Like
Thank you! That works perfectly.