From d325991ffb7cae4f507c869878c8b911fa9749af Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 22 Sep 2020 23:02:24 +0100 Subject: [PATCH] feat(shortcode): enable cross-referencing audio Adds id param to audio shortcode Hashes are prefixed in the form `#audio-` E.g. add `id="my-talk"` when calling the audio shortcode and then reference it using [link to my talk audio](#audio-my-talk) --- .editorconfig | 2 +- wowchemy/layouts/shortcodes/audio.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.editorconfig b/.editorconfig index 322ae485..36af2daa 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,5 +16,5 @@ max_line_length = 100 [*.md] trim_trailing_whitespace = false -[{layouts/shortcodes/*.html, layouts/_default/_markup/*.html}] +[{*/layouts/shortcodes/*.html, */layouts/_default/_markup/*.html}] insert_final_newline = false diff --git a/wowchemy/layouts/shortcodes/audio.html b/wowchemy/layouts/shortcodes/audio.html index 322e976b..f50a1336 100644 --- a/wowchemy/layouts/shortcodes/audio.html +++ b/wowchemy/layouts/shortcodes/audio.html @@ -19,8 +19,8 @@ {{ $audio = $audio | relURL }} {{ end }} -{{ with $audio }} -