name: Image Srcset
version: 1.1.1
testing: true
description: "Adds a srcset-attribute to img-elements to allow for responsive images in Markdown."
icon: picture-o
author:
  name: Ole Vik
  email: git@olevik.me
  url: http://olevik.me
homepage: https://github.com/olevik/grav-plugin-imgsrcset
keywords: responsive, srcset
bugs: https://github.com/olevik/grav-plugin-imgsrcset/issues
license: MIT

form:
  validation: loose
  fields:
    enabled:
      type: toggle
      label: Plugin Status
      highlight: 1
      default: 1
      options:
        1: PLUGIN_ADMIN.ENABLED
        0: PLUGIN_ADMIN.DISABLED
      validate:
        type: bool
    widths:
      type: selectize
      label: Widths
      description: Determines the available image sizes. Comma-separated list of widths.
      classes: fancy
      validate:
        type: commalist
    sizes:
      type: text
      size: x-small
      label: Sizes
      help: Determines the Sizes-attribute.
      validate:
        type: text
        min: 1
