blueprints.yaml.twig 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% set githubid = component.author.githubid ?: component.author.name|hyphenize -%}
  2. name: {{ component.name|titleize }}
  3. slug: {{ component.name|hyphenize }}
  4. type: plugin
  5. version: 0.1.0
  6. description: {{ component.description }}
  7. icon: plug
  8. author:
  9. name: {{ component.author.name }}
  10. email: {{ component.author.email }}
  11. homepage: https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}
  12. demo: http://demo.yoursite.com
  13. keywords: grav, plugin, etc
  14. bugs: https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}/issues
  15. docs: https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}/blob/develop/README.md
  16. license: MIT
  17. dependencies:
  18. - { name: grav, version: '>=1.6.0' }
  19. form:
  20. validation: loose
  21. fields:
  22. enabled:
  23. type: toggle
  24. label: PLUGIN_ADMIN.PLUGIN_STATUS
  25. highlight: 1
  26. default: 0
  27. options:
  28. 1: PLUGIN_ADMIN.ENABLED
  29. 0: PLUGIN_ADMIN.DISABLED
  30. validate:
  31. type: bool
  32. text_var:
  33. type: text
  34. label: PLUGIN_{{ component.name|underscorize|upper }}.TEXT_VARIABLE
  35. help: PLUGIN_{{ component.name|underscorize|upper }}.TEXT_VARIABLE_HELP