Editing / Options
Keep a consistent file structure by setting up an uploads path structure. Images, documents and other files in the editor are uploaded to this location.
_options: image: # Front matter field uploads_dir: "uploads/front-matter-images/:title" content: # Content Editor and block Editable Regions uploads_dir: "uploads/:year/:month/:day/:title"
:title dynamic fields resolve to the associated Jekyll fields for the containing file.
You can also set
site.uploads_dir in your
_config.yml to set it everywhere:
Control the size and format of images clients or team members upload through the interface. Images are resized and converted automatically.
_options: image_path: width: 90 height: 120 resize_style: "contain" mime_type: "image/jpeg" expandable: true content: width: 90 height: 120 resize_style: "cover" mime_type: "image/png"
|resize_style||contain, cover or stretch (optional, defaults to contain)|
|mime_type||image/jpeg, image/png (optional, defaults to uploaded type if supported)|
|expandable||true or false (optional, defaults to false)|
mime_type sets what format the image is converted into on upload.
height define a bounding box.
resize_style defines how uploaded images are resized with respect to that box:
coverensures the image covers the bounding box
containensures the image fits inside the bounding box
stretchignores aspect ratio to resize the image to the bounding box
expandable set to true allows images to be enlarged past original dimensions.