config.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. backend:
  2. name: git-gateway
  3. branch: master
  4. media_folder: 'static/media/'
  5. public_folder: 'media'
  6. collections:
  7. - name: authors
  8. label: Authors
  9. label_singular: Author
  10. folder: 'content/authors'
  11. path: '{{slug}}/_index'
  12. create: true # Allow users to create new documents in this collection
  13. fields: # The fields each document in this collection have
  14. - {label: "Display name (such as your full name)", name: "title", widget: "string"}
  15. - {label: "Position or tagline (such as Professor of AI)", name: "role", widget: "string", required: false}
  16. - label: "Avatar (upload an image named `avatar.jpg/png`)"
  17. name: "avatar_filename"
  18. widget: "image"
  19. default: "avatar"
  20. required: false
  21. media_library:
  22. config:
  23. multiple: false
  24. - {label: "Short biography (shown in author boxes)", name: "bio", widget: "string", required: false}
  25. - {label: "Full biography (shown in About widget)", name: "body", widget: "markdown", required: false}
  26. - label: "Interests (shown in About widget)"
  27. name: "interests"
  28. required: false
  29. widget: "list"
  30. - label: Social links
  31. name: social
  32. required: false
  33. widget: list
  34. fields:
  35. - {label: Link, name: link, widget: string}
  36. - label: Icon pack
  37. name: icon_pack
  38. widget: select
  39. multiple: false
  40. options:
  41. - {label: "None", value: ""}
  42. - {label: "Solid", value: "fas"}
  43. - {label: "Regular", value: "far"}
  44. - {label: "Brand", value: "fab"}
  45. - {label: "Academic", value: "ai"}
  46. - {label: Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons), name: icon, widget: string}
  47. - label: "Organizations you belong to or are affiliated with (shown in About widget)"
  48. name: "organizations"
  49. required: false
  50. widget: list
  51. fields:
  52. - {label: Organization, name: name, widget: string, required: true}
  53. - {label: Link, name: url, widget: string, required: false}
  54. - label: "Education"
  55. name: "education"
  56. required: false
  57. widget: object
  58. fields:
  59. - label: "Courses"
  60. name: "courses"
  61. required: false
  62. widget: list
  63. fields:
  64. - {label: Course, name: course, widget: string, required: true}
  65. - {label: Institution, name: institution, widget: string, required: true}
  66. - {label: Year, name: year, widget: number, valueType: int, required: false}
  67. - {label: "Email (to use a Gravatar.com avatar)", name: "email", widget: "string", required: false}
  68. - label: "Super user (is this the primary site user?)"
  69. name: "superuser"
  70. widget: "boolean"
  71. default: false
  72. - label: "User groups (only for organization websites)"
  73. name: "user_groups"
  74. required: false
  75. widget: "list"
  76. - name: posts
  77. label: Posts
  78. label_singular: Post
  79. folder: 'content/post'
  80. path: '{{slug}}/index'
  81. create: true # Allow users to create new documents in this collection
  82. fields: # The fields each document in this collection have
  83. - {label: "Title", name: "title", widget: "string"}
  84. - {label: "Subtitle", name: "subtitle", widget: "string", required: false}
  85. - {label: "Body", name: "body", widget: "markdown"}
  86. - {label: "Publish this page on", name: "date", widget: "datetime"}
  87. - {label: "Summary", name: "summary", widget: "markdown", required: false}
  88. - label: "Draft"
  89. name: "draft"
  90. widget: "boolean"
  91. default: false
  92. - label: "Featured"
  93. name: "featured"
  94. widget: "boolean"
  95. default: false
  96. - label: "Authors"
  97. name: "authors"
  98. required: false
  99. widget: "list"
  100. - label: "Tags"
  101. name: "tags"
  102. required: false
  103. widget: "list"
  104. - label: "Categories"
  105. name: "categories"
  106. required: false
  107. widget: "list"
  108. - label: "Projects"
  109. name: "projects"
  110. required: false
  111. widget: "list"
  112. - label: "Featured Image"
  113. name: "image"
  114. required: false
  115. widget: object
  116. fields:
  117. - label: "Upload an image named `featured.jpg/png`"
  118. name: "filename"
  119. widget: "image"
  120. default: "featured"
  121. media_library:
  122. config:
  123. multiple: false
  124. - {label: Caption, name: caption, widget: string, required: false}
  125. - {label: Description for screen readers, name: alt_text, widget: string, required: false}
  126. - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
  127. - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
  128. - name: projects
  129. label: Projects
  130. label_singular: Project
  131. folder: 'content/project'
  132. path: '{{slug}}/index'
  133. create: true # Allow users to create new documents in this collection
  134. fields: # The fields each document in this collection have
  135. - {label: "Title", name: "title", widget: "string"}
  136. - {label: "Subtitle", name: "subtitle", widget: "string", required: false}
  137. - {label: "Body", name: "body", widget: "markdown", required: false}
  138. - {label: "Publish this page on", name: "date", widget: "datetime"}
  139. - {label: "Summary", name: "summary", widget: "markdown", required: false}
  140. - label: "Draft"
  141. name: "draft"
  142. widget: "boolean"
  143. default: false
  144. - label: "Featured"
  145. name: "featured"
  146. widget: "boolean"
  147. default: false
  148. - label: "Authors"
  149. name: "authors"
  150. required: false
  151. widget: "list"
  152. - label: "Tags"
  153. name: "tags"
  154. required: false
  155. widget: "list"
  156. - label: "Categories"
  157. name: "categories"
  158. required: false
  159. widget: "list"
  160. - {label: "External link (optional - replaces link to project page)", name: "external_link", widget: "string"}
  161. - label: Links
  162. name: links
  163. required: false
  164. widget: list
  165. fields:
  166. - {label: Link, name: url, widget: string}
  167. - {label: Link text, name: name, widget: string, required: false}
  168. - label: Icon pack
  169. name: icon_pack
  170. widget: select
  171. multiple: false
  172. required: false
  173. options:
  174. - {label: "None", value: ""}
  175. - {label: "Solid", value: "fas"}
  176. - {label: "Regular", value: "far"}
  177. - {label: "Brand", value: "fab"}
  178. - {label: "Academic", value: "ai"}
  179. - {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false}
  180. - label: "Featured Image"
  181. name: "image"
  182. required: false
  183. widget: object
  184. fields:
  185. - label: "Upload an image named `featured.jpg/png`"
  186. name: "filename"
  187. widget: "image"
  188. default: "featured"
  189. media_library:
  190. config:
  191. multiple: false
  192. - {label: Caption, name: caption, widget: string, required: false}
  193. - {label: Description for screen readers, name: alt_text, widget: string, required: false}
  194. - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
  195. - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
  196. - name: talks
  197. label: Talks
  198. label_singular: Talk
  199. folder: 'content/talk'
  200. path: '{{slug}}/index'
  201. create: true # Allow users to create new documents in this collection
  202. fields: # The fields each document in this collection have
  203. - {label: "Title", name: "title", widget: "string"}
  204. - {label: "Abstract", name: "abstract", widget: "text"}
  205. - {label: "Where", name: "location", widget: "text"}
  206. - {label: "From", name: "date", widget: "datetime"}
  207. - {label: "To", name: "date_end", widget: "datetime", default: ""}
  208. - {label: "All day event?", name: "all_day", widget: "boolean", default: false}
  209. - label: Links/Tickets
  210. name: links
  211. required: false
  212. widget: list
  213. fields:
  214. - {label: Link, name: url, widget: string}
  215. - {label: Link text, name: name, widget: string, required: false}
  216. - label: Icon pack
  217. name: icon_pack
  218. widget: select
  219. multiple: false
  220. required: false
  221. options:
  222. - {label: "None", value: ""}
  223. - {label: "Solid", value: "fas"}
  224. - {label: "Regular", value: "far"}
  225. - {label: "Brand", value: "fab"}
  226. - {label: "Academic", value: "ai"}
  227. - {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false}
  228. - {label: "Event", name: "event", widget: "string"}
  229. - {label: "Event link", name: "event_url", widget: "string"}
  230. - {label: "Publish this page on", name: "publishDate", widget: "datetime"}
  231. - {label: "Markdown slides (reference a deck in 'content/slides/')", name: "slides", widget: "string", required: false}
  232. - label: "Draft"
  233. name: "draft"
  234. widget: "boolean"
  235. default: false
  236. - label: "Featured"
  237. name: "featured"
  238. widget: "boolean"
  239. default: false
  240. - label: "Authors"
  241. name: "authors"
  242. required: false
  243. widget: "list"
  244. - label: "Tags"
  245. name: "tags"
  246. required: false
  247. widget: "list"
  248. - label: "Categories"
  249. name: "categories"
  250. required: false
  251. widget: "list"
  252. - label: "Projects (reference projects in 'content/project/')"
  253. name: "projects"
  254. required: false
  255. widget: "list"
  256. - label: "Featured Image"
  257. name: "image"
  258. required: false
  259. widget: object
  260. fields:
  261. - label: "Upload an image named `featured.jpg/png`"
  262. name: "filename"
  263. widget: "image"
  264. default: "featured"
  265. media_library:
  266. config:
  267. multiple: false
  268. - {label: Caption, name: caption, widget: string, required: false}
  269. - {label: Description for screen readers, name: alt_text, widget: string, required: false}
  270. - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
  271. - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
  272. - {label: "Details", name: "body", widget: "markdown", required: false}
  273. - name: pages
  274. label: "Pages"
  275. files:
  276. - file: "content/privacy.md"
  277. label: "Privacy Policy"
  278. name: "privacy"
  279. fields:
  280. - {label: "Title", name: "title", widget: "string"}
  281. - {label: "Publish Date", name: "date", widget: "datetime"}
  282. - {label: "Subtitle", name: "subtitle", widget: "string", required: false}
  283. - {label: "Summary", name: "summary", widget: "markdown", required: false}
  284. - label: "Draft"
  285. name: "draft"
  286. required: false
  287. widget: "boolean"
  288. default: false
  289. - {label: "Body", name: "body", widget: "markdown"}
  290. - file: "content/terms.md"
  291. label: "Terms"
  292. name: "terms"
  293. fields:
  294. - {label: "Title", name: "title", widget: "string"}
  295. - {label: "Publish Date", name: "date", widget: "datetime"}
  296. - {label: "Subtitle", name: "subtitle", widget: "string", required: false}
  297. - {label: "Summary", name: "summary", widget: "markdown", required: false}
  298. - label: "Draft"
  299. name: "draft"
  300. required: false
  301. widget: "boolean"
  302. default: false
  303. - {label: "Body", name: "body", widget: "markdown"}