[fix] image hotlinking
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Evan Reichard 2023-11-12 17:26:30 -05:00
parent 6f21dad393
commit 9104bf6f8d
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -86,7 +86,7 @@
<div id="content" class="h-full flex flex-col overflow-auto rounded bg-secondary px-6 pt-6 gap-4 my-3">
<div class="flex justify-center w-full">
<a target="_blank" href="https://www.youtube.com/watch?v={{ metadata.video_id }}">
<img class="h-32 rounded" src="https://i.ytimg.com/vi_webp/{{ metadata.video_id }}/maxresdefault.webp"></img>
<img class="h-32 aspect-video object-cover rounded" src="https://i1.ytimg.com/vi/{{ metadata.video_id }}/hqdefault.jpg"></img>
</a>
</div>
<div class="mx-auto flex justify-center gap-4 italic">

View File

@ -78,7 +78,7 @@
href="/articles/{{ article.video_id }}"
class="flex items-center w-11/12 md:w-5/6 lg:w-4/6 mx-auto rounded px-6 py-3 bg-secondary hover:bg-tertiary transition-all duration-200"
>
<img class="h-14 mr-6 rounded" src="https://i.ytimg.com/vi_webp/{{ article.video_id }}/maxresdefault.webp"></img>
<img class="h-14 mr-6 aspect-video object-cover rounded" src="https://i1.ytimg.com/vi/{{ article.video_id }}/hqdefault.jpg"></img>
<span>{{ article.title }}</span>
</a>
{% endfor %}