Your sites Log in Sign up Menu

Use the first picture instead of the video as thumbnail?

If the post contains a video, the image from it is displayed as the cover of the post, regardless of the size of the other images. Please tell me how to choose the first picture in the post for the thumbnail.

And also how do I mark the borders of the text, for display near the cover. I found a discussion on this topic but couldn't apply it to my template.


6 months ago, 4 replies   metadata   thumbnail   Improve this question

Use thumbnail metadata to specify the image you'd like.

Your other question is best answered in the relevant discussion - I suggest you post a comment there.

Answered 6 months ago · Improve this answer

I've tried many combinations and the metadata doesn't work, none of them.

Here's an example I write at the beginning of a Markdown file:

Date: 28/10/2023

Summary: Description text

Thumbnail: _Files/image.jpg

Then the retreat, and the beginning of fasting. But everything above is displayed as plain text, the date is understood if the time is not specified, other tags are not. Tried with other file types, TXT and HTML don't work either. But it's important to me that it works in Markdown. Maybe I'm doing something wrong?

Answered 6 months ago · Improve this answer

There cannot be blank lines in between metadata, e.g. this will parse correctly:

Date: 28/10/2023 18:30
Summary: Description text
Thumbnail: _Files/image.jpg

but this will not:

Date: 28/10/2023 18:30

Summary: Description text

Thumbnail: _Files/image.jpg

Does that solve the problem?

Answered 6 months ago · Improve this answer

Thank you very much! It worked!

Answered 6 months ago · Improve this answer