Skip to content

Instantly share code, notes, and snippets.

@mrflix
Created November 9, 2022 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrflix/f912e9eba1fedfbebdf60eb8a4d0a916 to your computer and use it in GitHub Desktop.
Save mrflix/f912e9eba1fedfbebdf60eb8a4d0a916 to your computer and use it in GitHub Desktop.
# site/blueprints/files/default.yml
title: Datei
accept:
maxwidth: 15000
maxheight: 15000
columns:
- width: 1/2
fields:
focus:
label: Fokuspunkt
type: focus
translate: false
help: >
Der Fokuspunkt steuert, um welches Zentrum das Bild beschnitten wird. Am besten auf das wichtigste im Bild setzen.
- width: 1/2
fields:
caption:
extends: fields/text
label: Untertitel
alt:
label: Alternativtext
type: text
help: Wird blinden Besucher vorgelesen um das Bild zu beschreiben. Falls das Bild rein dekorativ ist kann dieses Feld freigelassen werden.
crop: fields/crop
link:
label: Link
type: url
width: 2/3
link_target:
label: Ziel
type: checkboxes
options:
blank: Neuer Tab
width: 1/3
video_options:
label: Video Abspiel-Optionen
type: checkboxes
default:
- loop
- autoplay
- muted
- playsinline
options:
loop: Dauerschleife
autoplay: Automatisch abspielen
muted: Stummgeschaltet
playsinline: Am Handy nicht in Vollbild wechseln wenn man abspielt
controls: Videosteuerung anzeigen
help: >
In den meisten Browsern funktioniert automatisches abspielen nur wenn das Video auch stumm geschaltet ist.
video_hint:
type: info
text: Für ein Video, dass im obersten Bereich der Seite abgespielt wird, rät es sich den ersten Frame des Videos als <strong>Vorschaubild im Format JPG hochzuladen</strong>, damit schon etwas zu sehen ist während das Video buffert. Vorschaubilder genau wie das Video benennen, nur mit '.jpg' statt '.mp4'. Also <strong>video.jpg</strong> wird automatisch erkannt, wenn das Video <strong>video.mp4</strong> heißt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment