block.json 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/post-template",
  5. "title": "Post Template",
  6. "category": "theme",
  7. "parent": [ "core/query" ],
  8. "description": "Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",
  9. "textdomain": "default",
  10. "usesContext": [
  11. "queryId",
  12. "query",
  13. "queryContext",
  14. "displayLayout",
  15. "templateSlug",
  16. "previewPostType"
  17. ],
  18. "supports": {
  19. "reusable": false,
  20. "html": false,
  21. "align": true,
  22. "__experimentalLayout": {
  23. "allowEditing": false
  24. },
  25. "typography": {
  26. "fontSize": true,
  27. "lineHeight": true,
  28. "__experimentalFontFamily": true,
  29. "__experimentalFontWeight": true,
  30. "__experimentalFontStyle": true,
  31. "__experimentalTextTransform": true,
  32. "__experimentalTextDecoration": true,
  33. "__experimentalLetterSpacing": true,
  34. "__experimentalDefaultControls": {
  35. "fontSize": true
  36. }
  37. }
  38. },
  39. "style": "wp-block-post-template",
  40. "editorStyle": "wp-block-post-template-editor"
  41. }