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

[FEATURE] 画廊兼容markdown image写法 #693

Closed
Y4er opened this issue Aug 22, 2022 · 1 comment
Closed

[FEATURE] 画廊兼容markdown image写法 #693

Y4er opened this issue Aug 22, 2022 · 1 comment
Labels
new feature New feature

Comments

@Y4er
Copy link

Y4er commented Aug 22, 2022

Describe the feature you want 描述你的功能需求

我从别的主题迁移过来,原来的文章都是用的

![image.png](http://baidu.com/1.png)

这种方式引入的图片,但是都不会被画廊加载,我应该如何修改主题设置来兼容这种图片画廊写法?

Useful reference 有价值的参考

No response

@Y4er Y4er added the new feature New feature label Aug 22, 2022
@HEIGE-PCloud
Copy link
Owner

ae358de

修改了默认的行为,现在所有图片,无论是通过 Markdown 语法还是 image shortcode 插入的图片都会默认开启画廊。你只需要在每篇文章的 front matter 开启 lightgallery: true,或者直接在 config.toml 中为全站开启 light gallery 即可。

# whether to enable lightgallery
# 是否使用 lightgallery
lightgallery = false

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

No branches or pull requests

2 participants