Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Articles preview configuration question #52

Open
SSopin opened this issue Jan 14, 2021 · 1 comment
Open

Articles preview configuration question #52

SSopin opened this issue Jan 14, 2021 · 1 comment

Comments

@SSopin
Copy link

SSopin commented Jan 14, 2021

Hi,

I have a question about main page preview.
When I use <!--more--> tag it stops displaying pictures in preview and converts headers into regular text, plus removes new line after the header.

For instance, if my page looks like this:

---
title: 'My page title'
date: 2021-01-01 00:00:00
tags: [tag1, tag2]
category: MyCategory 
---
![](main_picture.jpg)

# Intro

Some introductory text here.
<!--more-->
More text.

On the preview picture will be hidden and the text would look like this:

My page title

IntroSome introductory text here.

How can I fix it? On your demo it looks great.
Thanks!

@pmirek
Copy link

pmirek commented May 4, 2023

You can use photos for that:

---
title: 'My page title'
date: 2021-01-01 00:00:00
photos:
   - https://url.of.your.photo/some-photo.jpg
tags: [tag1, tag2]
category: MyCategory 
---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants