diff --git a/README.md b/README.md index 31d1435..02ff6ff 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ A simple drop-in implementation of [responsive images](https://responsiveimages. [Download the latest release](https://github.com/jancbeck/kirby-responsive-images/releases/) and unpack to your kirby `/site/plugins` directory. +You can also rename the `responsive-images.php` file to `image.php` and move it to the `site/tags` directory if you prefer to keep all your custom tags there. + ## Usage There nothing you need to change in order to have responsive image support. Just include images as you would do normally: diff --git a/package.json b/package.json new file mode 100644 index 0000000..73272d0 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "kirby-responsive-images", + "description": "Bring responsive images to Kirby CMS", + "author": "Jan Beck ", + "version": "1.1.0", + "type": "kirby-plugin", + "license": "MIT" +} \ No newline at end of file diff --git a/responsive-images.php b/responsive-images.php index c511c2c..a977e81 100644 --- a/responsive-images.php +++ b/responsive-images.php @@ -1,7 +1,7 @@ set('tag', 'image', array( 'attr' => array( 'width', 'height', @@ -124,7 +124,7 @@ } } -); +)); /** * Returns the srcset attribute value for a given Kirby file