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

How to get those fancy images in the post list #41

Closed
bergziege opened this issue May 1, 2018 · 3 comments
Closed

How to get those fancy images in the post list #41

bergziege opened this issue May 1, 2018 · 3 comments

Comments

@bergziege
Copy link

Hi,

in your blog and in the screenshot to this theme there is a image shown between post title and content. When clicked, he image opens in a lightbox.

How to get this effect?

Would be nice, if you could include it to the documentation as it adds a lot to the theme.

Thanks,
bergziege

@HeskeyBaozi
Copy link
Owner

HeskeyBaozi commented May 1, 2018

add <!-- more --> in your raw markdown post before the image that you want to display. It will automatically fetch the first image to show in the homepage as an excerpt.

for example:
https://heskeybaozi.github.io/#/posts/merry-christmas

the raw markdown post:

---
title: Merry Christmas 🎅
date: 2017-12-24 20:08:50
tags:
---

## 🎅又是一年圣诞时

希望每一个度过平安夜的人可以被这个世界善待 💖

<!-- more -->

![show-love](/assets/show-love.jpg)

preview:
111

@bergziege
Copy link
Author

Thanks a lot!

@fightwithtiger
Copy link

作者你好,这个截断我放在图片前不起作用是怎么回事?还有就是分页是怎么配置的呢

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

3 participants