You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/post-date",
  5. "title": "Date",
  6. "category": "theme",
  7. "description": "Display the publish date for an entry such as a post or page.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "textAlign": {
  11. "type": "string"
  12. },
  13. "format": {
  14. "type": "string"
  15. },
  16. "isLink": {
  17. "type": "boolean",
  18. "default": false
  19. },
  20. "displayType": {
  21. "type": "string",
  22. "default": "date"
  23. }
  24. },
  25. "usesContext": [ "postId", "postType", "queryId" ],
  26. "supports": {
  27. "html": false,
  28. "color": {
  29. "gradients": true,
  30. "link": true,
  31. "__experimentalDefaultControls": {
  32. "background": true,
  33. "text": true,
  34. "link": true
  35. }
  36. },
  37. "spacing": {
  38. "margin": true,
  39. "padding": true
  40. },
  41. "typography": {
  42. "fontSize": true,
  43. "lineHeight": true,
  44. "__experimentalFontFamily": true,
  45. "__experimentalFontWeight": true,
  46. "__experimentalFontStyle": true,
  47. "__experimentalTextTransform": true,
  48. "__experimentalTextDecoration": true,
  49. "__experimentalLetterSpacing": true,
  50. "__experimentalDefaultControls": {
  51. "fontSize": true
  52. }
  53. }
  54. }
  55. }