Coder Social home page Coder Social logo

Comments (6)

lzane avatar lzane commented on July 22, 2024

你好,可能名字里面的“gallery”误导你了,sorry。

这个插件本身只是封装了lightgallery所以它就是用在preview上面的(点击之后预览,加了插件之后可以在底部有一条缩略图)

我猜你需要的照片墙是类似于这一种baguetteBox, 如果需要可以自己引入一下。

至于你说的有两层overlayer应该是与你原本主题的image preview冲突了。

from hexo-light-gallery.

cutelittleturtle avatar cutelittleturtle commented on July 22, 2024

@lzane 你好!谢谢你的回复。原来如此,我因为看了原版的demo,以为照片墙也是这个插件的一部分呢。

那我把这个问题关掉了。

能不能好奇的问一下,在不改变主题代码的情况下可以在layout或post里面直接添加部分吗?我试过装原版的插件但在post主体部分include 和插件都失败了。

from hexo-light-gallery.

lzane avatar lzane commented on July 22, 2024

@cutelittleturtle “能不能好奇的问一下,在不改变主题代码的情况下可以在layout或post里面直接添加部分吗?我试过装原版的插件但在post主体部分include 和插件都失败了。”

sorry. 没读懂你的问题...

from hexo-light-gallery.

cutelittleturtle avatar cutelittleturtle commented on July 22, 2024

@lzane 对不起描述得比较失败。。。

是这样,原版的教程要求

  1. add lightgallery.css in the of the document
  2. Then include lightgallery.min.js into your document

但hexo如果不修改主题文件(themes/next/)的话,貌似没有办法给之间添加信息。更待scaffolds/post.mdsource/_posts/都只能更改之间的信息。

所以我想请问一下你的插件是怎么做到修改之间的信息的。

from hexo-light-gallery.

lzane avatar lzane commented on July 22, 2024

@cutelittleturtle 抱歉,还是看不懂你想表达的意思。。。

这个插件做的就只是注册一个事件,在Hexo trigger after_post_render 这个事件的时候就会调我的call back,然后在callback里面修改原本render的html。 你可以看一下src里面的文件,整个插件很短很短的~

from hexo-light-gallery.

cutelittleturtle avatar cutelittleturtle commented on July 22, 2024

谢谢你的耐心!原谅我没学过html所以对基本的运行规范和流程一点不了解!谢谢!

from hexo-light-gallery.

Related Issues (9)

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.