backend:
  #name: test-repo
  name: gitlab
  branch: master
  repo: lq/cmscenter
  auth_type: implicit
  app_id: 25e7dca1513e953f83551bd12693295d2aecbed160b7072b2327ff601bc73a8d
 # secret e86445cbae7d5dcf262dbf4128c53003d4b1242e8c97d10fa08f28a38a21a924
  api_root: https://git.gaorongvc.cn/api/v4
  base_url: https://git.gaorongvc.cn
  authENdpoint: oauth/authorize
media_folder: static/img
collections:
  - name: "frontPage"
    label: "frontPage"
    files:
      - label: "frontPage"
        name: "frontPage"
        file: "content/frontPage.md"
        fields:
          - { label: "RollImage1", name: "rollimage1", widget: "image" }
          - { label: "RollImage2", name: "rollimage2", widget: "image", required: false }
          - { label: "RollImage3", name: "rollimage3", widget: "image", required: false }
          - label: 'Bigevent'
            name: "bigevent"
            widget: list
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Tag", name: "tag", widget: "string" }
              - { label: "buttonText", name: "btnText", widget: "string" }
              - { label: "Cover", name: "cover", widget: "image" }
              - { label: "JumpUrl", name: "jumpUrl", widget: "string" , required: false }
          - label: "Ronghui"
            name: "ronghui"
            widget: list
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "SubTitle", name: "subTitle", widget: "string" }
              - { label: "Cover", name: "cover", widget: "image" }
              - { label: "JumpUrl", name: "jumpUrl", widget: "string", required: false  }
          - label: "PR"
            name: "pr"
            widget: list
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "SubTitle", name: "subTitle", widget: "string" }
              - { label: "Cover", name: "cover", widget: "image" }
              - { label: "JumpUrl", name: "jumpUrl", widget: "string", required: false  }


  - name: "article"
    label: "article"
    sortable_fields: ['type', 'title','createDate', 'highLight','source']
    create: true
    identifier_field: name
    folder: "content/article"
    summary: "{{title}} {{createDate}}"
    fields:
          - { label: "Title", name: "title", widget: "string" }
          - { label: "type", name: "type", widget: "string", required: false}
          - { label: "createDate", name: "createDate", widget: "datetime" }
          - { label: "Abstract", name: "abstract", widget: "text" }
          - { label: "content", name: "content", widget: "markdown"}
          - { label: "coverpic", name: "coverpic", widget: "image" }

  - name: "linkarticle"
    label: "linkarticle"
    sortable_fields: ['type', 'title','createDate', 'highLight','source']
    create: true
    identifier_field: name
    folder: "content/linkarticle"
    summary: "{{title}} {{createDate}}"
    fields:
          - { label: "Title", name: "title", widget: "string" }
          - { label: "type", name: "type", widget: "string", required: false}
          - { label: "createDate", name: "createDate", widget: "datetime" }
          - { label: "Abstract", name: "abstract", widget: "text" }
          - { label: "content", name: "content", widget: "markdown"}
          - { label: "coverpic", name: "coverpic", widget: "image" }
          - { label: "Link", name: "link", widget: "text" }

  # - label: "RonghuiPage"
  #   name: "ronghui"
  #   create: true
  #   identifier_field: name
  #   folder: "content/linkarticle"
  #   summary: "{{title}} {{createDate}}"
  #   widget: list
  #   fields:
  #     - label: "Category"
  #       name: "title"
  #       widget: "select"
  #       options: ["战略", "组织", "增长", "资本市场", "行业"]
  #     - { label: "Title", name: "title", widget: "string" }
  #     - { label: "SubTitle", name: "subTitle", widget: "string" }
  #     - { label: "Author", name: "author", widget: "string" }
  #     - { label: "AuthorTitle", name: "authorTitle", widget: "string" }
  #     - { label: "Cover", name: "cover", widget: "image" }
  #     - { label: "JumpUrl", name: "jumpUrl", widget: "string" }