block.json 905 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/rss",
  5. "title": "RSS",
  6. "category": "widgets",
  7. "description": "Display entries from any RSS or Atom feed.",
  8. "keywords": [ "atom", "feed" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "columns": {
  12. "type": "number",
  13. "default": 2
  14. },
  15. "blockLayout": {
  16. "type": "string",
  17. "default": "list"
  18. },
  19. "feedURL": {
  20. "type": "string",
  21. "default": ""
  22. },
  23. "itemsToShow": {
  24. "type": "number",
  25. "default": 5
  26. },
  27. "displayExcerpt": {
  28. "type": "boolean",
  29. "default": false
  30. },
  31. "displayAuthor": {
  32. "type": "boolean",
  33. "default": false
  34. },
  35. "displayDate": {
  36. "type": "boolean",
  37. "default": false
  38. },
  39. "excerptLength": {
  40. "type": "number",
  41. "default": 55
  42. }
  43. },
  44. "supports": {
  45. "align": true,
  46. "html": false
  47. },
  48. "editorStyle": "wp-block-rss-editor",
  49. "style": "wp-block-rss"
  50. }