From c25b91f2526d58f78c7305458f156c9a65fcdce2 Mon Sep 17 00:00:00 2001 From: Denis Shendrik Date: Sun, 13 Oct 2024 00:10:41 -0600 Subject: [PATCH] Fix video links (#130) * fix video links * open video links in a new tab * fix * Update learnindex.json * fix --- _includes/youtube_card.html | 6 +++--- _layouts/learn.html | 2 +- videos.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/youtube_card.html b/_includes/youtube_card.html index 7420aa7b7..81615b415 100644 --- a/_includes/youtube_card.html +++ b/_includes/youtube_card.html @@ -1,10 +1,10 @@
- +
-
{{ include.title }}
+
{{ include.title }}
{%- if include.author -%}

{{ include.author }}

{%- endif -%} -

{{ include.description }}

+

{{ include.description }}

diff --git a/_layouts/learn.html b/_layouts/learn.html index c558c7712..4c26c0cd3 100644 --- a/_layouts/learn.html +++ b/_layouts/learn.html @@ -82,7 +82,7 @@

Videos

{%- for video in site.data.learnindex.navigation.videos limit:3 -%} - {% include youtube_card.html title=video.name description=video.description link=video.path author=video.author min-height="250px" image="/images/icons/yt_icon_rgb.svg" %} + {% include youtube_card.html title=video.name description=video.description embed=video.embed link=video.path author=video.author min-height="250px" image="/images/icons/yt_icon_rgb.svg" %} {%- endfor -%}
diff --git a/videos.html b/videos.html index 281e44c01..4fd0cdccc 100644 --- a/videos.html +++ b/videos.html @@ -29,8 +29,8 @@

Videos

{%- assign videos = site.data.learnindex.navigation.videos | where: "author", author -%}

{{ author }}

- {%- for tutorial in videos -%} - {% include youtube_card.html title=tutorial.name description=tutorial.description link=tutorial.path author=tutorial.author min-height="250px" image="/images/icons/yt_icon_rgb.svg" %} + {%- for video in videos -%} + {% include youtube_card.html title=video.name description=video.description embed=video.embed link=video.path author=video.author min-height="250px" image="/images/icons/yt_icon_rgb.svg" %} {%- endfor -%}
{%- endfor -%}