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

是否可以让 fancybox 使用 download 参数提供的大图地址 #442

Closed
3 tasks done
calfzhou opened this issue Apr 22, 2024 · 0 comments · Fixed by #444
Closed
3 tasks done

是否可以让 fancybox 使用 download 参数提供的大图地址 #442

calfzhou opened this issue Apr 22, 2024 · 0 comments · Fixed by #444

Comments

@calfzhou
Copy link
Contributor

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

目前 {% image %} 可以设置 download 参数,做到在页面里加载的是较小的图片,点下载按钮获得高清大图。也可以设置 fancybox 实现点击查看大图。但 fancybox 查看的还是原始的图片链接,而点击下载的话浏览器可能会要求下载而不是直接打开图片。不知道有没有可能让 fancybox 打开的高清的图片,页面里默认加载的还是小图?

calfzhou added a commit to calfzhou/hexo-theme-stellar that referenced this issue Apr 24, 2024
panoshu pushed a commit to panoshu/hexo-theme-stellar that referenced this issue May 5, 2024
lliei0x pushed a commit to lliei0x-x/hexo-theme-stellar that referenced this issue Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant