Skip to content

Block cta

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

Displays a centered button.

HTML

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

SASS

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

Frontmatter

blocks:
  - type: cta
    heading:
      surtitle: ""
      title: ""
      text: ""
    cta:
      text: ""
      url: ""
      blank: false
    background: false

Netlify CMS

  • CTA object
    • heading object
      • surtitle string
      • title string
      • text string
    • button object
      • text string
      • url string
      • blank boolean
    • background boolean