Comments (7)
I'm closing this topic because it's more relevant to a Publii plugin rather than the core functionality of Publii itself.
from publii.
The lightbox requires CSS and JavaScript, which must be attached to your site. In the Gallery, despite the UI delivered with Publii, the scripts are provided by the theme, not the app.
The lightbox in my option should work automatically; when the user clicks the image, the script should detect this image and display the original (big) image in the popup. The best for that will be a plugin that will catch the pictures and display them in the Lightbox.
Not everyone requires this feature, so it's unnecessary to clutter the interface overly. Incorporating every user-requested option could result in an excessively crowded interface.
Also, a plugin will be easier to maintain and update.
from publii.
Definitely - decoupling lightbox mechanism from Publii is a good solution. When we will add this, then there will be people who wants other script/effect etc. It should be solved on the theme/plugin level
from publii.
...or any single image for that matter
from publii.
you have an album feature and the code to support it - why would providing lightbox functionality for single images not be handled by the very same code?
from publii.
from publii.
Thanks guys, that makes more sense to me now :)
from publii.
Related Issues (20)
- [Question] How do I redirect post URLs? HOT 1
- [Question]: Custom Wrapper possible?
- [Bug]: Json Feed show only Default Author name HOT 1
- [Bug]: Cannot upload website via FTP, FTPS or SFTP HOT 5
- [Feature Request]: Import from Mastodon thread
- [Bug]: Rendering process failed An error occurred during rendering process: "undefined" is not valid JSON HOT 4
- [Bug]: [Windows 11] Crash upon launching - "A Javascript error occured in the main process" HOT 2
- [Bug]: language change error occurred - please try again
- [Bug]: SQL3 error: database locked HOT 1
- [Bug]: Meta robots tag not generated when (index, follow) is selected. HOT 2
- [Feature Request]: 希望官网能加入中文
- [Feature Request]: how can i sync websites in multiple working computers conveniently ? HOT 3
- Please delete this
- [Feature Request]: Reduce the size of the featured image
- [Feature Request]: Email address obfuscation/encryption
- [Feature Request]: XMPP: Post to PubSub
- [Feature Request]: Finetune for Content Security Policy
- [Feature Request]: Allow video as featured image HOT 1
- [Bug]: Paste option on right click menu
- [Bug]: changing ssh key results in JS error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from publii.