Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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] Some feature:支持文章图片点击放大 #141

Closed
sugarlesss opened this issue Jul 15, 2021 · 3 comments
Closed

[FEATURE] Some feature:支持文章图片点击放大 #141

sugarlesss opened this issue Jul 15, 2021 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@sugarlesss
Copy link

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

当文章添加了一些分辨率比较高的图片时,因为无法点击放大图片,观看上会略有难受。如果能支持此功能,体验会好很多。

Useful reference 有价值的参考

If available, provide useful links to fulfill the feature.
如果可以的话, 提供实现这个功能的相关参考链接.
1、一个点击图片放大显示的案例:https://blog.keyboardman.fun/share/1291.html

@sugarlesss sugarlesss added the enhancement Enhance existing features label Jul 15, 2021
@sugarlesss
Copy link
Author

类似于这篇文章中,像屏幕截图这种分辨率较高的图片,若有此功能的话,体验会好很多。
https://blog.keyboardman.fun/php/1053.html

@HEIGE-PCloud
Copy link
Owner

HEIGE-PCloud commented Jul 15, 2021

在 front matter 中开启 lightgallery: true,然后使用 image shortcode 引入图片来启用 lightgallery。(#118 )

相关文档:

  1. https://hugodoit.pages.dev/zh-cn/theme-documentation-content/#front-matter
  2. https://hugodoit.pages.dev/zh-cn/theme-documentation-extended-shortcodes/#image

相关讨论:
#128

@sugarlesss
Copy link
Author

非常感谢!

@HEIGE-PCloud HEIGE-PCloud added duplicate This issue or pull request already exists and removed enhancement Enhance existing features labels Jul 15, 2021
Repository owner locked and limited conversation to collaborators Jul 15, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants