Skip to content

Commit

Permalink
Fix page not rendering on missing video
Browse files Browse the repository at this point in the history
Co-authored-by: Tau Gärtli <[email protected]>
  • Loading branch information
janhohenheim and bash committed Jun 29, 2024
1 parent 98edb8d commit 4017ffb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions content/news/052/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ TODO: I'll be working on adding an email subscription this weekend, so I'll writ
### [Untitled Pixel Wizards Game][pixel-wizards]

{{ embed_video(type="video/mp4", src="untitled-pixel-wizards-game.mp4",
caption="Enemies now perceive, pursue and attack.. and occasionally get burned to death.") }}

[![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]
_Enemies now perceive, pursue and attack.. and occasionally get burned to death._
caption="Enemies now perceive, pursue and attack.. and occasionally get burned to death.") }}

[Untitled Pixel Wizards Game][pixel-wizards] is a local-multiplayer [Noita]-like platformer about
killing baddies using spells powered by pixel physics. This month was focused on juicing up said baddies:
Expand Down
Binary file removed content/news/052/untitled-pixel-wizards-game.gif
Binary file not shown.
3 changes: 1 addition & 2 deletions templates/shortcodes/embed_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
#} -->
<video controls autoplay muted loop>
<source type="{{ type }}" src="{{ src }}"
onerror="parentNode.parentElement.innerText = 'Sorry, this video does not exist or your browser does not support the video codec. Try a different browser!'" />
<source type="{{ type }}" src="{{ get_url(path=page.colocated_path ~ src)}}" />
</video> {% if caption %}<em>{{ caption }}</em>{% endif %}

0 comments on commit 4017ffb

Please sign in to comment.