To prevent an accidentally broken-looking front page, and perhaps to improve the "just starting out with Largo" experience, I'd like to configure a site with the "Top Stories" layout to pull in a single "Top Story" and "Featured Stories" posts from a different/default/fallback query if the results of the prominence taxonomy queries come back empty.
I could imagine doing this by filtering the output of largo_get_featured_posts(). Alternatively, we could add some logic to homepages/templates/top-stories.php that handles this, perhaps along with a theme option checkbox, "Highlight recent posts when no top/featured stories are configured." (I can understand why some publishers would want broken-looking over the most recent post being considered "top".)
If you have other suggested ways of achieving this, or thoughts about why it is or isn't a good idea, great! Otherwise I may work on a PR for this soon. Thank you.
To prevent an accidentally broken-looking front page, and perhaps to improve the "just starting out with Largo" experience, I'd like to configure a site with the "Top Stories" layout to pull in a single "Top Story" and "Featured Stories" posts from a different/default/fallback query if the results of the prominence taxonomy queries come back empty.
I could imagine doing this by filtering the output of
largo_get_featured_posts(). Alternatively, we could add some logic tohomepages/templates/top-stories.phpthat handles this, perhaps along with a theme option checkbox, "Highlight recent posts when no top/featured stories are configured." (I can understand why some publishers would want broken-looking over the most recent post being considered "top".)If you have other suggested ways of achieving this, or thoughts about why it is or isn't a good idea, great! Otherwise I may work on a PR for this soon. Thank you.