Skip to content

Commit 89e2b28

Browse files
committed
Rename embed_video to video_figure
1 parent d407529 commit 89e2b28

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Diff for: .github/newsletter-issue-template.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ but here are the most important rules:
104104
- The image should come before the text, and must have alt text for accessibility.
105105
- Prefer static images to GIFs/videos, to keep the page load times down.
106106
- To include a video, encode it as `H.264` in an `mp4` container and use
107-
the `embed_video()` shortcode; videos autoplay in a loop (muted).
107+
the `video_figure()` shortcode; videos autoplay in a loop (muted).
108108
- Each section should be under 1000 characters, and under 6 paragraphs.
109109
- This only applies to the rendered text, not the markup.
110110
- Keep formatting minimal - no bold/italics/etc.
@@ -124,7 +124,7 @@ Please use these templates as a starting point:
124124

125125
OR
126126

127-
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
127+
{{ video_figure(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
128128

129129
[Game name] ([GitHub], [Discord], [Twitter]) by [@nickname]
130130
is... {short project description in one sentence}.
@@ -148,7 +148,7 @@ _Discussions: [/r/rust_gamedev](link), [Twitter](link), [etc](link)_
148148

149149
OR
150150

151-
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
151+
{{ video_figure(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
152152

153153
[@nickname] published an [article] about...
154154
{overview what the resource is about}.

Diff for: .github/newsletter-template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Ideal section structure is:
5757
5858
OR
5959
60-
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
60+
{{ video_figure(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
6161
6262
A paragraph or two with a summary and [useful links].
6363

Diff for: CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ _Discussions: [/r/rust_gamedev](link), [Twitter](link), [etc](link)_
8383

8484
OR
8585

86-
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
86+
{{ video_figure(type="video/mp4", src="my-video.mp4", caption="optional video caption") }}
8787

8888
[@nickname] published an [article] about...
8989
{overview what the resource is about}.
@@ -113,7 +113,7 @@ _Discussions: [/r/rust_gamedev](link), [Twitter](link), [etc](link)_
113113
- Unless essential to demonstrating your project, prefer static images
114114
over GIFs/videos, to keep the file size down.
115115
- To include a video, encode it as `H.264` in an `mp4` container and use
116-
the `embed_video()` shortcode; videos autoplay in a loop (muted).
116+
the `video_figure()` shortcode; videos autoplay in a loop (muted).
117117
- Use singular 'they' if you’re not sure what someone's pronouns are.
118118
- If a project has been featured in previous newsletters, try to focus on
119119
what's new rather than repeating previous content.

Diff for: content/news/052/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ We will switch this to an actual @gamedev.rs address in the future. Please tell
8282

8383
### [Untitled Pixel Wizards Game][pixel-wizards]
8484

85-
{{ embed_video(
85+
{{ video_figure(
8686
type="video/mp4",
8787
src="untitled-pixel-wizards-game.mp4",
8888
caption="Enemies now perceive, pursue, and attack... and occasionally get burned to death.") }}
@@ -337,7 +337,7 @@ You can get started by reading the [bevy_lunex book][bevy-lunex-book].
337337

338338
### [haalka]
339339

340-
{{ embed_video(type="video/mp4", src="haalka.mp4", caption="A Minecraft-like UI made with haalka") }}
340+
{{ video_figure(type="video/mp4", src="haalka.mp4", caption="A Minecraft-like UI made with haalka") }}
341341

342342
হালকা: _in bengali, haalka means "light" (e.g. not heavy) and can also be used to mean "easy"_
343343

Diff for: templates/shortcodes/embed_video.html renamed to templates/shortcodes/video_figure.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{# <!--
22
Embed a video into a markdown file. Example usage:
33
4-
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="Some caption.") }}
4+
{{ video_figure(
5+
type="video/mp4",
6+
src="my-video.mp4",
7+
caption="Some caption.") }}
58
69
--> #}
710
<figure>

0 commit comments

Comments
 (0)