Coder Social home page Coder Social logo

Comments (6)

KernelErr avatar KernelErr commented on June 5, 2024

可以加一个判断条件is_post(),保证仅仅在文章里面使用Photoswipe,但是修改为了实现缩略图的显示,直接修改main.css,不知道是不是个好方案。

from hexo-theme-ayer.

shen-yu avatar shen-yu commented on June 5, 2024

@KernelErr 感谢提出的bug,已经修复~

from hexo-theme-ayer.

KernelErr avatar KernelErr commented on June 5, 2024

修复了之后还是有点问题呀,看起来不能直接删掉Fancybox,移除

<% if (theme.image_viewer && is_post()){ %>
<%- partial('viewer') %>
<% } %>

看看?

from hexo-theme-ayer.

KernelErr avatar KernelErr commented on June 5, 2024

Photoswipe和Fancybox保留Fancybox,保证文章和page都用Fancybox吧

from hexo-theme-ayer.

shen-yu avatar shen-yu commented on June 5, 2024

@KernelErr 谢谢,fancybox太大了, 压缩后的js文件就有70多k,css也有10k,而且只是作为相册放大展示的功能,我个人觉得没有必要,相对而言Photoswipe体积更小,两者功能都相似的,所以我把fancybox都删掉了,现在文章和page都使用Photoswipe了,你再更新看看。

from hexo-theme-ayer.

KernelErr avatar KernelErr commented on June 5, 2024

嗯嗯,非常感谢~

from hexo-theme-ayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.