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.

67 lines
1.4 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/post-author",
  5. "title": "Author",
  6. "category": "theme",
  7. "description": "Display post author details such as name, avatar, and bio.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "textAlign": {
  11. "type": "string"
  12. },
  13. "avatarSize": {
  14. "type": "number",
  15. "default": 48
  16. },
  17. "showAvatar": {
  18. "type": "boolean",
  19. "default": true
  20. },
  21. "showBio": {
  22. "type": "boolean"
  23. },
  24. "byline": {
  25. "type": "string"
  26. },
  27. "isLink": {
  28. "type": "boolean",
  29. "default": false
  30. },
  31. "linkTarget": {
  32. "type": "string",
  33. "default": "_self"
  34. }
  35. },
  36. "usesContext": [ "postType", "postId", "queryId" ],
  37. "supports": {
  38. "html": false,
  39. "spacing": {
  40. "margin": true,
  41. "padding": true
  42. },
  43. "typography": {
  44. "fontSize": true,
  45. "lineHeight": true,
  46. "__experimentalFontFamily": true,
  47. "__experimentalFontWeight": true,
  48. "__experimentalFontStyle": true,
  49. "__experimentalTextTransform": true,
  50. "__experimentalTextDecoration": true,
  51. "__experimentalLetterSpacing": true,
  52. "__experimentalDefaultControls": {
  53. "fontSize": true
  54. }
  55. },
  56. "color": {
  57. "gradients": true,
  58. "link": true,
  59. "__experimentalDuotone": ".wp-block-post-author__avatar img",
  60. "__experimentalDefaultControls": {
  61. "background": true,
  62. "text": true
  63. }
  64. }
  65. },
  66. "style": "wp-block-post-author"
  67. }