merlos / jekyll-auto-image Goto Github PK
View Code? Open in Web Editor NEWjekyll plugin that makes available the first image of a post in the template
License: MIT License
jekyll plugin that makes available the first image of a post in the template
License: MIT License
Jekyll 3 throws the following error:
/Users/aaron/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/document.rb:448:in `method_missing': undefined method `transform' for #<Jekyll::Document:0x007ff60483db58> (NoMethodError)
When using jekyll-auto-image on Jekyll 3.x, {% raw %} and {% endraw %} in a post or page are totally ignored.
I'm using the current beta of Jekyll 3.0, and I was wondering if there was any specific reason this gem doesn't support it? Running bundle install
is giving me an error about the jekyll version not meeting the requirements set by the jekyll-auto-image gem.
I don't expect you to rebuild the gem if there are major changes that affect the gem between 2.0 and 3.0, but if it does work on 3.0 it'd be appreciated!
Hi,
i installed jekyll-auto-image for my blog. I wanted to show little thumbnail pictures for each post on my overview page where only {{ post.excerpt }}
is shown. As this plugin scrapes HTML output from the current page, images in the post's full content aren't displayed. I guess this breaks the current architecture of this plugin, but do you see any chance to include this feature?
Greetings,
Franz
I am afraid, if the plug-in has compatibility issue with Jekyll 3.3. It produces following error when I run bundle exec Jekyll serve to run Jekyll.
jekyll 3.3.0 | Error: undefined method
transform' for #Jekyll::Renderer:0x00000002be0c38`
Let me know, if I could be of further help.
Hi,
I seem to have a problem with Jekyll 3.3.1 or Liquid 4...
When I compile de website (bundle exec jekyll build), I get this error :
Liquid Warning: Liquid syntax error (line 9): Unexpected character in "{{ site.url }}" in index.html
Everywhere I use the liquid tag <img src="{{ post.image }}" />
.
This is why I suspect the problem comes from jekyll-auto-image.
I tried downgrading to jekyll 3.2.1, same problem.
Here is an example where the plugin doesn't find the first image:
https://nicolas-hoizey.com/2016/08/cloudinary-fait-la-promotion-de-mon-plugin-jekyll.html
I have this in my _config.yml
:
image: favicon.jpg
Hello,
Thanks for making this plugin available!
In my post (*.md
), I have the following HTML element:
<p><img src="/assets/images/photos-articles/thon_tomate.jpg" border="0" alt="Thon à la sauce tomate" title="Thon à la sauce tomate" width="356" height="354" /></p>
The plugin was able to detect this image. However, it seems to add a leading slash (/
) to the image path, so in my front page the image is not displayed because the generated HTML element contains the wrong path:
<img class="w-100" src="//assets/images/photos-articles/thon_tomate.jpg" alt="Thon à la sauce tomate">
Could you please fix this? Below is the output of my gem list | grep jekyll
:
jekyll (4.2.2, 4.2.1)
jekyll-auto-image (1.1.3)
jekyll-date-localization (0.0.5)
jekyll-diagrams (0.10.0)
jekyll-email-protect (1.1.0)
jekyll-feed (0.16.0)
jekyll-github-metadata (2.13.0)
jekyll-paginate (1.1.0)
jekyll-paginate-v2 (3.0.0)
jekyll-sass-converter (2.2.0, 2.1.0)
jekyll-scholar (7.0.0)
jekyll-seo-tag (2.7.1)
jekyll-sitemap (1.4.0)
jekyll-target-blank (2.0.0)
jekyll-twitter-plugin (2.1.0)
jekyll-watch (2.2.1)
Thank you so much in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.