Skip to main content
Geekdocs
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Audio

The audio shortcode allows you to embed audio files.

Usage

Define your resources in the page front matter, custom parameter params.credits is optional.

---
resources:
  - name: diamonds-trap
    src: "diamonds-trap.mp3"
    title: Diamonds Trap
    params:
      credits: "[Jakob Eglmeier on openmusic.academy CC0-1.0](https://openmusic.academy/media-library/b9do2E2ZwVCfppyBf2yuej)"
---

{{< audio name="diamonds-trap" >}}

Attributes

name required string
Name of the audio resource defined in page front matter.
Default: none

Example