From 597b5751a3d7009790625e3be9ceebe5c64eee56 Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Mon, 15 May 2023 12:31:27 -0300 Subject: [PATCH] Audio and Video support (#1367) Since #1253 has been hanging there for a while, I decided to part from it and add audio and video support. --------- Signed-off-by: George Araujo --- _includes/audio.html | 16 ++++++ _includes/video.html | 47 ++++++++++++++++++ _posts/2023-04-24-videos.md | 32 ++++++++++++ _posts/2023-04-25-audios.md | 21 ++++++++ assets/audio/epicaly-short-113909.mp3 | Bin 0 -> 915330 bytes ...els-engin-akyurt-6069112-960x540-30fps.mp4 | Bin 0 -> 1539606 bytes 6 files changed, 116 insertions(+) create mode 100644 _includes/audio.html create mode 100644 _includes/video.html create mode 100644 _posts/2023-04-24-videos.md create mode 100644 _posts/2023-04-25-audios.md create mode 100644 assets/audio/epicaly-short-113909.mp3 create mode 100644 assets/video/pexels-engin-akyurt-6069112-960x540-30fps.mp4 diff --git a/_includes/audio.html b/_includes/audio.html new file mode 100644 index 0000000..14c7801 --- /dev/null +++ b/_includes/audio.html @@ -0,0 +1,16 @@ +
+ +
diff --git a/_includes/video.html b/_includes/video.html new file mode 100644 index 0000000..e56e054 --- /dev/null +++ b/_includes/video.html @@ -0,0 +1,47 @@ +{% assign extension = include.path | split:'.' | last %} + +
+ + {% if extension == "mp4" or extension == "webm" or extension == "ogg" %} + +