Publii: kein FeaturedImage im post gewünscht

Wer in Publii eine Galerie in einem post veröffentlicht, möchte vielleicht das FeaturedImage nicht anzeigen, weil es schon in der Galerie vorkommt.

Hier hilft ein Trick aus dem Publii Forum:

In die config.json fügt man bei dem postConfig-Bereich unter options post__image--none ein, sh das fett Gedruckte im 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"
                }
            ]
        },

Dazu gehört ein Eintrag in die main.css (oder unter Tools & Plugins in Custom CSS):

.post__image--none {
display: none;
}

Danach hat man im post beim FeaturedImage einen neuen Eintrag "none".

siehe auch hier: https://forum.getpublii.com/topic/how-to-remove-featured-picture-from-posts/ , Stand 15.4.23