Shortcodes

You might wonder what the difference is between a Hugo ‘shortcode’ and a Hugo ‘brick’. Shortcodes place reusable content in an inline way, somewhere inside a section. Bricks are complete sections of a page. An example of a shortcode is a form; an example of a brick is a ‘Call to action brick’.

Below you find a list of all shortcodes in this project:

  • blog — the grid of post teasers with a tag filter
  • breadcrumbs — the trail from home to the current page
  • button — a call-to-action link; a plain link with the class ‘button’ does the same
  • cart — the shopping cart table, total and progress bar
  • checkout — the checkout form with the progress bar
  • checkoutform — the same checkout form, without the progress bar
  • contactbuttons — phone and email as icon buttons, from data/<lang>/general.yaml
  • contactform — the contact form, fields from data/<lang>/contactform.yaml
  • ctaform — the call-to-action form, fields from data/<lang>/ctaform.yaml
  • faq — the question groups from data/<lang>/faqs.yaml
  • features — the grid of icon features from data/<lang>/features.yaml
  • gallery — a thumbnail grid of every image in a folder
  • newsletterform — a newsletter signup, fields from data/<lang>/newsletterform.yaml
  • openinghours — data/<lang>/openinghours.yaml as a list of days and hours
  • pricing — the pricing table from data/<lang>/pricing.yaml
  • products — the grid of product cards
  • reviews — the testimonials from data/<lang>/reviews.yaml
  • search — a site search form that hands the query to Google
  • services — the grid of service teasers
  • socialbuttons — the social links from data/<lang>/footer.yaml
  • tabs — runs of markdown behind a tablist, one tab per ## Heading
  • team — the grid of people from data/<lang>/people.yaml
  • usecue-payment — the embedded Usecue payment page
  • video — a self-hosted HTML5 video
  • vimeo — a Vimeo poster linking out, no iframe and no cookies
  • youtube — a YouTube poster linking out, no iframe and no cookies

Some things that used to need a shortcode are plain markdown now. They have kept their page here, because the pattern is still worth documenting:

Get started with Hugobricks today!

Experience the future of web development with Hugo and stackable content bricks. Build lightning-fast static sites with ease and flexibility.

Get started now