You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.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.
The text was updated successfully, but these errors were encountered: