catalog page - rewrite youtube url to be local

This commit is contained in:
towards-a-new-leftypol 2021-04-02 19:39:42 -04:00 committed by discomrade
parent a54e286b66
commit eb0a8ac991

View File

@ -56,7 +56,7 @@
<div class="thread grid-li grid-size-small">
<a href="{{post.link}}">
{% if post.youtube %}
<img src="//img.youtube.com/vi/{{ post.youtube }}/0.jpg"
<img src="/vi/{{ post.youtube }}/0.jpg"
{% else %}
<img src="{{post.file}}"
{% endif %}