-
Notifications
You must be signed in to change notification settings - Fork 188
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
(feat): Add JS suport for instagram gallery #560
Conversation
Related with #385 |
d255afd
to
3610529
Compare
fa02db9
to
c550204
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this PR. I have requested some changes from you.
templates/article.html
Outdated
@@ -12,7 +12,7 @@ | |||
|
|||
{% block meta_tags_in_head %} | |||
{% if article.redirect %} | |||
<meta http-equiv="refresh" content="0;URL={{ article.redirect}}" /> | |||
<meta http-equiv="refresh" content="0;URL={{ article.redirect }}" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@iranzo Kindly fix the issues I have mentioned. Next, this patch adds one more dependency to the jquery. We can use other JS frameworks that do not depend on jquery, like Will you be able to replace galleriajs with photoswipe? If not then we both can work together on this feature. It ain't difficult. We can finish it in two days. |
Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
All other things addressed. If we get both supported, we can make something that is compatible with both so that end user can decide or us put default of our preferred one and deprecate the other (if we want to get this included asap) |
Sorry. Here you go https://sachinchoolur.github.io/lightgallery.js/
Too much work. I say as we have already decided to drop jquery, we should only choose a solution that works without jquery.
It won't be much difficult to refactor jquery code to plain JS and make it work with photoswipe. As I said, we can work together on this feature. Meanwhile, do fix the issues in this PR that I have pointed out. Photoswipe change will be made on top of this PR. |
One concern on ligthtgallery: Is listed as free and open source library and repo contains: https://github.com/sachinchoolur/lightgallery.js/blob/master/LICENSE.md so it should be ok for us to use it |
Right. I noticed the license. Can you please compare both the libraries and let me know which one you think is better suited for us? |
Based on latest posts and amount of contributors, photoswipe seems the most maintained (lightgallery is 1 year back in time and 10 contribs vs 42 in photoswipe) |
Ok so photoswipe it is. Now, if you can do this task alone then please update the PR.
|
@talha131 the ones about galleria.io are already in this PR and in the preview (together with admonition usage for the single-multiple) |
Prerequisites
next
branchRecommended Steps
Description
This PR modifies article.html so that it can show instagram pictures or group of pictures as galleries via adding a new yaml preamble named 'instagram'
Example at: https://deploy-preview-560--pelicanelegant.netlify.com/how-to-use-galleriaio-plugin