Poster 2 Header Image MD file

Hi,

Does anyone know how I can get the header image to show in Poster 2? I’m using Repository as the source for the Markdown files, example below that isn’t working:

Syntax looks different in the Poster 2 documentation …

1 Like

This is what the header section of a markdown file looks like for one of my posts to P2.

  ---
id: 3234
title: Boho Bridal Designs for 2022 Weddings
date: 2021-07-01T12:55:43.000Z
slug: boho-bridal-designs-for-2022-weddings
length: 1940 bytes
status: publish
draft: false
header_image:
  src: ../repo/blog-media/jul21-sustainable.jpg
  alt: Wedding Dress
header_image_detail: true
lightbox: true

categories:
  - Articles
---

header_image_detail: true
lightbox: true
categories:
  - 2020 brides
---
2 Likes

Exactly, the syntax must match exactly the template.

I suggest you have a look at the test project and copy / paste the metadata information from there.

1 Like

Tried what you suggested but it didn’t work for me.

What do mean by:
“must match exactly the template”.

You have in your example screenshot following syntax. I don’t know where you have this from.

header_image:
  - <img src.../>

Correct example (from the test project):

header_image:
  src: https://images.unsplash.com/photo-1535320404287-416e2c6d2b41?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=12c7b98882a77aebcaab5eab5189ddd4&auto=format&fit=crop&w=1080&q=80
  alt: A day at the beach
header_image_detail: true

This is also documented here: Blogging with Markdown Files

Please follow the documentation. Thanks.

1 Like

Thanks Jannis I get it now.