Closed arifpedia closed 6 years ago
@arifpedia Maybe you are using some new version of the lightGallery, and it isn't compatible with the code. You can check this out: https://github.com/ppoffice/hexo-theme-hueman/blob/master/source/libs/lightgallery/js/lightgallery.min.js
Fixed. jQuery must inserted before lightGallery. I recently change head.ejs:
...
<%- js('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js') %>
<%- partial('plugin/scripts', { isHead: true }) %>
</head>
...
Please make sure these boxes are checked before submitting your issue. Thank you!
I plan to use lightgallery CDN rather than local, so i edit file
/layout/plugin/scripts.ejs
:But if i clicked on any image in the post, its open link directly (not using lightgallery):