cms: 1:1 article preview (mirror .prose tokens/rules), webp upload transformations to keep repo lean
This commit is contained in:
@@ -27,6 +27,23 @@ logo:
|
||||
media_folder: "public/uploads"
|
||||
public_folder: "/uploads"
|
||||
|
||||
# Keep the git repo lean: images are stored as plain git blobs (no LFS), so
|
||||
# every upload is converted client-side to WebP q85 and capped at 2048px
|
||||
# (documented media_libraries transformations). A phone photo lands in the
|
||||
# repo as ~100-300 KB instead of 5-10 MB.
|
||||
media_libraries:
|
||||
default:
|
||||
config:
|
||||
slugify_filename: true
|
||||
transformations:
|
||||
raster_image:
|
||||
format: webp
|
||||
quality: 85
|
||||
width: 2048
|
||||
height: 2048
|
||||
svg:
|
||||
optimize: true
|
||||
|
||||
collections:
|
||||
- name: news
|
||||
label: "News"
|
||||
|
||||
Reference in New Issue
Block a user