Skip to content

Commit 4017ffb

Browse files
janhohenheimbash
andcommitted
Fix page not rendering on missing video
Co-authored-by: Tau Gärtli <[email protected]>
1 parent 98edb8d commit 4017ffb

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

content/news/052/index.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ TODO: I'll be working on adding an email subscription this weekend, so I'll writ
8787
### [Untitled Pixel Wizards Game][pixel-wizards]
8888

8989
{{ embed_video(type="video/mp4", src="untitled-pixel-wizards-game.mp4",
90-
caption="Enemies now perceive, pursue and attack.. and occasionally get burned to death.") }}
91-
92-
[![A Hound chases a player, and its corpse ragdolls after it is burned to death by a fireball](untitled-pixel-wizards-game.gif)][pixel-wizards]
93-
_Enemies now perceive, pursue and attack.. and occasionally get burned to death._
90+
caption="Enemies now perceive, pursue and attack.. and occasionally get burned to death.") }}
9491

9592
[Untitled Pixel Wizards Game][pixel-wizards] is a local-multiplayer [Noita]-like platformer about
9693
killing baddies using spells powered by pixel physics. This month was focused on juicing up said baddies:
-1.72 MB
Binary file not shown.

templates/shortcodes/embed_video.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
66
#} -->
77
<video controls autoplay muted loop>
8-
<source type="{{ type }}" src="{{ src }}"
9-
onerror="parentNode.parentElement.innerText = 'Sorry, this video does not exist or your browser does not support the video codec. Try a different browser!'" />
8+
<source type="{{ type }}" src="{{ get_url(path=page.colocated_path ~ src)}}" />
109
</video> {% if caption %}<em>{{ caption }}</em>{% endif %}

0 commit comments

Comments
 (0)