blueprints.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. name: Sitemap
  2. version: 2.0.1
  3. description: "Provide automatically generated **XML sitemaps** with this very useful, but simple to configure, Grav plugin."
  4. slug: sitemap
  5. type: plugin
  6. icon: map-marker
  7. author:
  8. name: Team Grav
  9. email: devs@getgrav.org
  10. url: http://getgrav.org
  11. homepage: https://github.com/getgrav/grav-plugin-sitemap
  12. keywords: sitemap, plugin, xml, map, index
  13. bugs: https://github.com/getgrav/grav-plugin-sitemap/issues
  14. license: MIT
  15. dependencies:
  16. - { name: grav, version: '>=1.6.0' }
  17. form:
  18. validation: strict
  19. fields:
  20. enabled:
  21. type: toggle
  22. label: PLUGIN_ADMIN.PLUGIN_STATUS
  23. highlight: 1
  24. default: 0
  25. options:
  26. 1: PLUGIN_ADMIN.ENABLED
  27. 0: PLUGIN_ADMIN.DISABLED
  28. validate:
  29. type: bool
  30. changefreq:
  31. type: select
  32. label: PLUGIN_SITEMAP.CHANGEFREQ
  33. default: ''
  34. options:
  35. '': PLUGIN_SITEMAP.CHANGEFREQ_DEFAULT
  36. always: PLUGIN_SITEMAP.CHANGEFREQ_ALWAYS
  37. hourly: PLUGIN_SITEMAP.CHANGEFREQ_HOURLY
  38. daily: PLUGIN_SITEMAP.CHANGEFREQ_DAILY
  39. weekly: PLUGIN_SITEMAP.CHANGEFREQ_WEEKLY
  40. monthly: PLUGIN_SITEMAP.CHANGEFREQ_MONTHLY
  41. yearly: PLUGIN_SITEMAP.CHANGEFREQ_YEARLY
  42. never: PLUGIN_SITEMAP.CHANGEFREQ_NEVER
  43. priority:
  44. type: select
  45. label: PLUGIN_SITEMAP.PRIORITY
  46. default: ''
  47. options:
  48. '': PLUGIN_SITEMAP.PRIORITY_USE_GLOBAL
  49. '0.1': 0.1
  50. '0.2': 0.2
  51. '0.3': 0.3
  52. '0.4': 0.4
  53. '0.5': 0.5
  54. '0.6': 0.6
  55. '0.7': 0.7
  56. '0.8': 0.8
  57. '0.9': 0.9
  58. '1.0': 1.0
  59. validate:
  60. type: float
  61. route:
  62. type: text
  63. label: PLUGIN_SITEMAP.ROUTE
  64. placeholder: /sitemap
  65. validate:
  66. pattern: "/([a-z-_]+/?)+"
  67. ignore_external:
  68. type: toggle
  69. label: PLUGIN_SITEMAP.IGNORE_EXTERNAL
  70. help: PLUGIN_SITEMAP.IGNORE_EXTERNAL_HELP
  71. highlight: 1
  72. default: 1
  73. options:
  74. 1: PLUGIN_ADMIN.ENABLED
  75. 0: PLUGIN_ADMIN.DISABLED
  76. validate:
  77. type: bool
  78. ignore_protected:
  79. type: toggle
  80. label: PLUGIN_SITEMAP.IGNORE_PROTECTED
  81. help: PLUGIN_SITEMAP.IGNORE_PROTECTED_HELP
  82. highlight: 1
  83. default: 1
  84. options:
  85. 1: PLUGIN_ADMIN.ENABLED
  86. 0: PLUGIN_ADMIN.DISABLED
  87. validate:
  88. type: bool
  89. ignores:
  90. type: array
  91. label: PLUGIN_SITEMAP.IGNORES
  92. help: PLUGIN_SITEMAP.IGNORES_HELP
  93. value_only: true
  94. placeholder_value: '/ignore-this-route'
  95. additions:
  96. type: list
  97. label: PLUGIN_SITEMAP.ADDITIONS
  98. help: PLUGIN_SITEMAP.ADDITIONS_HELP
  99. fields:
  100. .location:
  101. type: text
  102. label: PLUGIN_SITEMAP.LOCATION
  103. placeholder: "/not-a-grav-url"
  104. .lastmod:
  105. type: text
  106. label: PLUGIN_SITEMAP.LASTMOD
  107. placeholder: "2017-04-06"
  108. .changefreq:
  109. type: select
  110. label: PLUGIN_SITEMAP.CHANGEFREQ
  111. default: ''
  112. options:
  113. '': PLUGIN_SITEMAP.CHANGEFREQ_DEFAULT
  114. always: PLUGIN_SITEMAP.CHANGEFREQ_ALWAYS
  115. hourly: PLUGIN_SITEMAP.CHANGEFREQ_HOURLY
  116. daily: PLUGIN_SITEMAP.CHANGEFREQ_DAILY
  117. weekly: PLUGIN_SITEMAP.CHANGEFREQ_WEEKLY
  118. monthly: PLUGIN_SITEMAP.CHANGEFREQ_MONTHLY
  119. yearly: PLUGIN_SITEMAP.CHANGEFREQ_YEARLY
  120. never: PLUGIN_SITEMAP.CHANGEFREQ_NEVER
  121. .priority:
  122. type: select
  123. label: PLUGIN_SITEMAP.PRIORITY
  124. default: ''
  125. options:
  126. '': PLUGIN_SITEMAP.PRIORITY_USE_GLOBAL
  127. '0.1': 0.1
  128. '0.2': 0.2
  129. '0.3': 0.3
  130. '0.4': 0.4
  131. '0.5': 0.5
  132. '0.6': 0.6
  133. '0.7': 0.7
  134. '0.8': 0.8
  135. '0.9': 0.9
  136. '1.0': 1.0
  137. validate:
  138. type: float