Skip to content

Block figure

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

Displays a centered figure image with legend and credit.

HTML

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

SASS

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

Frontmatter

blocks:
  - type: figure
    figure:
      src: ""
      alt: ""
      legend: ""
      credit: ""
    grid: ""
    background: false

Netlify CMS

  • Figure object
    • figure object
      • src image
      • alt string
      • legend string
      • credit markdown
    • grid select
      • small
      • medium
      • large
      • full
    • background boolean