From b583823ee3979be3d438cbd73295661b85998d87 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Fri, 1 Mar 2024 09:14:00 -0800 Subject: [PATCH] Remove custom youtube shortcode --- assets/theme-css/videos.css | 64 ------------------- doc/content/video-page.md | 9 --- layouts/partials/javascript.html | 19 ------ layouts/shortcodes/youtube.html | 103 ------------------------------- 4 files changed, 195 deletions(-) delete mode 100644 assets/theme-css/videos.css delete mode 100644 doc/content/video-page.md delete mode 100644 layouts/shortcodes/youtube.html diff --git a/assets/theme-css/videos.css b/assets/theme-css/videos.css deleted file mode 100644 index f0dfcab2..00000000 --- a/assets/theme-css/videos.css +++ /dev/null @@ -1,64 +0,0 @@ -.youtube { - width: 100%; - display: flex; - flex-direction: column; -} - -.youtube iframe { - width: 640px; - max-width: 100%; - height: 360px; - margin-top: 1rem; - margin-bottom: 0rem; -} - -.youtube .video-meta { - padding-top: 0.75rem; - padding-bottom: 1.5rem; - font-weight: bold; - padding-bottom: 0.5rem; -} - -.youtube .video-title { -} - -.youtube .video-about { -} - -.video-transcript-button { - width: 640px; - max-width: 100%; - background-color: #ddd; - color: #444; - cursor: pointer; - padding: 1rem; - border: none; - text-align: left; - outline: none; - font-size: 1.25rem; -} - -.video-transcript-button:hover { - background-color: #bbb; -} - -/* The little triangle on the transcript button */ -.video-transcript-button-pointer { -} - -.video-transcript-button .video-transcript-button-pointer::before { - content: "▶"; -} - -.video-transcript-button.active .video-transcript-button-pointer::before { - content: "▼"; -} - -.video-transcript { - max-width: 640px; - width: 100%; - display: none; - overflow: auto; - background-color: #f1f1f1; - padding: 1rem; -} diff --git a/doc/content/video-page.md b/doc/content/video-page.md deleted file mode 100644 index dac329ab..00000000 --- a/doc/content/video-page.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -youtube_id: EmGSSbwdCZQ -title: "YouTube: video from a page" -date: 2022-03-15 -author: Somename of Someone -venue: Venue in preamble ---- - -This is the transcript from `video-page.md`. diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 15cf995d..0609cf95 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -17,25 +17,6 @@ -{{- if .HasShortcode "youtube" }} - -{{ end -}} - {{- if .Page.Store.Get "hasMermaid" }}