Pelican-Elegant / elegant

Best theme for Pelican Static Blog Generator
https://elegant.oncrashreboot.com/
MIT License
295 stars 187 forks source link

[RFE] Add IMGUR galleries #588

Open iranzo opened 4 years ago

iranzo commented 4 years ago

Mandatory Step

Recommended Step

Description

Describe the bug IMGUR has embed code in javascript like:

<blockquote class="imgur-embed-pub" lang="en" data-id="a/UFRjyLc"><a href="//imgur.com/a/UFRjyLc">Chinese Dragon Dance</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>

That allows to embed galleries with photoshow:

Chinese Dragon Dance
We should get something in Pelican-Elegant but using conversion to PhotoSwipe so that we can also embed IMGUR galleries **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
iranzo commented 4 years ago

Alternatively: https://iranzo.github.io/blog/2020/02/19/imgurl-jasvascript-for-photoswipe/

talha131 commented 4 years ago

LIne numbers are a mess! Will have to fix it.

iranzo commented 4 years ago

Well, my point was on how to grab the images from a post so that could be easily converted into elegant's requirements :)