Skip to content

Commit

Permalink
Add local images to the base example.
Browse files Browse the repository at this point in the history
  • Loading branch information
liamfiddler committed Mar 16, 2020
1 parent 94c5874 commit c977674
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions example/basic/.eleventy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const lazyImagesPlugin = require('eleventy-plugin-lazyimages');

module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy('img');
eleventyConfig.addPlugin(lazyImagesPlugin);
};
2 changes: 1 addition & 1 deletion example/basic/.lazyimages.json

Large diffs are not rendered by default.

Binary file added example/basic/img/test-01.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/basic/img/test-02.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/basic/img/test-03.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion example/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ title: Basic demo - eleventy-plugin-lazyimages
---
# Basic demo

This is a basic demo of
This is a basic demo of
[eleventy-plugin-lazyimages](https://github.com/liamfiddler/eleventy-plugin-lazyimages)

## These images are from the local filesystem:

![Local Test](/img/test-01.png "Local Test")

![Local Test](/img/test-02.jpg "Local Test")

![Local Test](/img/test-03.jpg "Local Test")

## These images are from a third-party website:

![Test](https://live.staticflickr.com/3915/14746807980_875aa68823_o.jpg "Test")

![Test](https://live.staticflickr.com/7807/47291519341_1ceba19252_o.jpg "Test")
Expand Down

0 comments on commit c977674

Please sign in to comment.