0.3.0 • Published 3 years ago

@notiz/scully-plugin-medium-zoom v0.3.0

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

scully-plugin-medium-zoom

npm version

scully-plugin-medium-zoom is a postRenderer plugin for Scully adding a medium style zoom to your images using medium-zoom. This plugin adds data-zoomable attribute to each img tag in your route.

📦 Installation

To install this plugin with npm run

$ npm install @notiz/scully-plugin-medium-zoom --save-dev

Usage

Add the plugin to the defaultPostRenderers in your scully.config:

require('@notiz/scully-plugin-medium-zoom');

exports.config = {
  projectRoot: './src/app',
  defaultPostRenderers: ['mediumZoom'],
  routes: {},
};

If you want to use the plugin for a specific route do:

require('@notiz/scully-plugin-medium-zoom');

exports.config = {
  ...
  routes: {
    '/blog/:slug': {
      type: 'contentFolder',
      slug: {
        folder: './content/blog'
      },
      postRenderers: ['mediumZoom']
    }
  }
  ...
};
0.3.0

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.1.0

4 years ago