Anyone publishing a gallery in a post in Publii might not want to display the featured image because it is already included in the gallery.
Here's a trick from the Publii forum to solve this:
In the config.json file, add post__image--none under the postConfig section in options, as shown in bold in the snippet:
"postConfig": [{"name": "featuredImageWidth","label": "Featured Image width","value": "post__image--wide","type": "select", "options":
[{ "label": "None", "value": "post__image--none" },
{"label": "Normal", "value": "post__image--normal" },
{ "label": "Wide", "value": "post__image--wide" },{ "label": "Full", "value": "post__image--full" }
]}, ...
Additionally, add an entry to main.css (or in Publii under Tools & Plugins in Custom CSS):
.post__image--none {display: none;}After this, a new option 'None' will appear for the featured image in posts.
See also:
https://forum.getpublii.com/topic/how-to-remove-featured-picture-from-posts/As of April 15, 2023