Skip to content

Block datas

Sébastien Moulène edited this page May 15, 2023 · 4 revisions

Displays datas with gauges or not in column.

HTML

https://github.com/hugolify/hugolify-theme/blob/main/layouts/partials/blocks/templates/datas.html

SASS

https://github.com/hugolify/hugolify-theme/blob/main/assets/sass/components/blocks/_datas.sass

Frontmatter

blocks:
  - type: datas
    heading:
      surtitle: ""
      title: ""
      text: ""
    column: ""
    show_gauge: false
    show_color: false
    items:
      prefix: ""
      value: ""
      suffix: ""
      limit: 100
      title: ""
      text: ""
    background: false

Netlify CMS

  • Datas object
    • heading object
      • surtitle string
      • title string
      • text string
    • column number [2…6]
    • show_gauge boolean
    • show_color boolean
    • items list
      • prefix string
      • value number
      • suffix string
      • limit number
      • title string
      • text string
    • background boolean