

This tutorial was written for this purpose. With such an approach, you can take advantage of both worlds and decide whether you want to use features from Rails or Angular to format stuff, for example. Or, perhaps you’re just looking for a way to integrate Angular with your Rails projects because you prefer things this way.

You already have an application running upon your decentralized and fully-working back-end APIs and a front-end made with any ordinary toolset. Users contributing to or participating in the development of this project are subject to the terms of imgix's Code of Conduct.You’ve heard the story before. Contributingīug reports and pull requests are welcome on GitHub at. In absence of correctly configured default_source, imgix_url will report RuntimeError if it's used without specifying a valid source. To use jekyll-imgix in a multi-source setup: Which would result in the following HTML: Multi-source usage

You can also pass parameters to the imgix_url helper like so: That will generate the following HTML in your output: Pass an existing image path to it to activate it: Jekyll-imgix exposes its functionality as a single Jekyll Filter, imgix_url. For example, you will want to run JEKYLL_ENV=production jekyll build before deploying your site to production. Jekyll-imgix does not do anything unless JEKYLL_ENV is set to production. Note: sources and source cannot be used together. : FACEBEEF12 : # Will generate unsigned URLs default_source: # (optional) specify a default source for generating URLs. imgix: sources: # imgix source-secure_url_token key-value pairs. In addition to the standard configuration flags, the following options can be used to serve images across different sources. Jekyll-imgix requires a configuration block in your _config.yml: imgix: source: # Your imgix source address secure_url_token: FACEBEEF12 # (optional) The Secure URL Token associated with your source include_library_param: true # (optional) If `true` all the URLs will include `ixlib` parameter Multi-source configuration Then include jekyll-imgix in the plugins: section of your _config.yml file: plugins: Configuration First, add liquid and jekyll-imgix to the :jekyll_plugins group in your Gemfile: group :jekyll_plugins do
