diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html
new file mode 100644
index 00000000..7a1ddf1c
--- /dev/null
+++ b/layouts/shortcodes/audio.html
@@ -0,0 +1,25 @@
+{{/* Enable audio to be loaded from local page dir or media library at `static/media/`. */}}
+{{/* Supports primarily MP3 and MP4. */}}
+
+{{ $path := "" }}
+{{ $root_dir := "" }}
+{{ if .Get "library" }}
+ {{ $path = "media/" }}
+ {{ $root_dir = "static/" }}
+{{ end }}
+
+{{ $audio := printf "%s%s" $path (.Get "src") }}
+{{ $audio_type := strings.TrimPrefix "." (path.Ext (.Get "src")) | lower }}
+
+{{/* Set MP3 mime type to mpeg. */}}
+{{ $audio_type = replace $audio_type "mp3" "mpeg" }}
+
+{{ if .Get "library" }}
+ {{ $audio = $audio | relURL }}
+{{ end }}
+
+{{ with $audio }}
+
+{{ end }}
\ No newline at end of file