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.

53 lines
1.1 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/archives",
  5. "title": "Archives",
  6. "category": "widgets",
  7. "description": "Display a date archive of your posts.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "displayAsDropdown": {
  11. "type": "boolean",
  12. "default": false
  13. },
  14. "showLabel": {
  15. "type": "boolean",
  16. "default": true
  17. },
  18. "showPostCounts": {
  19. "type": "boolean",
  20. "default": false
  21. },
  22. "type": {
  23. "type": "string",
  24. "default": "monthly"
  25. }
  26. },
  27. "supports": {
  28. "align": true,
  29. "html": false,
  30. "spacing": {
  31. "margin": true,
  32. "padding": true,
  33. "__experimentalDefaultControls": {
  34. "margin": false,
  35. "padding": false
  36. }
  37. },
  38. "typography": {
  39. "fontSize": true,
  40. "lineHeight": true,
  41. "__experimentalFontFamily": true,
  42. "__experimentalFontWeight": true,
  43. "__experimentalFontStyle": true,
  44. "__experimentalTextTransform": true,
  45. "__experimentalTextDecoration": true,
  46. "__experimentalLetterSpacing": true,
  47. "__experimentalDefaultControls": {
  48. "fontSize": true
  49. }
  50. }
  51. },
  52. "editorStyle": "wp-block-archives-editor"
  53. }