Uploaded January 2020 | Updated November 2026, 1 day ago
Hugo Shortcodes are a way to use short snippets in your Hugo site that embed custom parameterized objects. Some built-in shortcodes can embed GitHub Gist code snippets, YouTube videos or Twitter posts. If Hugo does not provide a built-in shortcode for you however you'll need to create your own shortcode. Luckily, this is relatively straightforward.
Creating a custom shortcode begins by creating an `html` file in the `layouts/shortcodes` directory. The file should be named after the shortcode you'd like to create. For example `example.html` will create the `example` shortcode. Once you've created the file you can fill it with a combination of hugo's markup language and standard html. The markup language hugo provides allows you to access parameters or otherwise modify the behavior of the shortcode you're creating. In our case we'd like to embed a Shadertoy shader. Every shader on Shadertoy has a unique embed link based upon its ID so we can create a shortcode that accepts a shader id and plop the value into an iframe. Embed... done.
The source for the custom shader shortcode I use is in this gist: gist.github.com/runewake2/3f5d3b4827beefb56a66e9c228979820
Hugo is a really easy to use static website generation tool (gohugo.io/) that can turn your Markdown files into websites. Some documentation on custom Hugo shortcodes: gohugo.io/templates/shortcode-templates
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Hugo Shortcodes are a way to use short snippets in your Hugo site that embed custom parameterized objects. Some built-in shortcodes can embed GitHub Gist code snippets, YouTube videos or Twitter posts. If Hugo does not provide a built-in shortcode for you however you'll need to create your own shortcode. Luckily, this is relatively straightforward.
Creating a custom shortcode begins by creating an `html` file in the `layouts/shortcodes` directory. The file should be named after the shortcode you'd like to create. For example `example.html` will create the `example` shortcode. Once you've created the file you can fill it with a combination of hugo's markup language and standard html. The markup language hugo provides allows you to access parameters or otherwise modify the behavior of the shortcode you're creating. In our case we'd like to embed a Shadertoy shader. Every shader on Shadertoy has a unique embed link based upon its ID so we can create a shortcode that accepts a shader id and plop the value into an iframe. Embed... done.
The source for the custom shader shortcode I use is in this gist: gist.github.com/runewake2/3f5d3b4827beefb56a66e9c228979820
Hugo is a really easy to use static website generation tool (gohugo.io/) that can turn your Markdown files into websites. Some documentation on custom Hugo shortcodes: gohugo.io/templates/shortcode-templates
Join the World of Zero Discord Server: discord.gg/hU5Kq2u

 we built previously.
Our shader is based off of this formula.
```
weight * colorA + (1 - weight) * colorB;
```
This formula uses a weight to balance between two colors. We can modify this by using a boolean value for the weight which will make it 1 when the boolean is true or 0 when the boolean is false. This will make it possible to turn our gradient between two colors into a hard transition instead.
We can modify our material in C# using code like this in order to animate it from code:
```csharp
material.SetFloat(_Transition, currentTransitionState);
```
Join the World of Zero Discord server: https://discord.gg/hU5Kq2u Color Contrast Shader - Lets Make a Side Scrolling Shooter - Part 3](https://i.ytimg.com/vi/jJcSbixSy5c/mqdefault.jpg)

- [`AnimFloat`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimFloat.html)
- [`AnimQuaternion`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimQuaternion.html)
- [`AnimVector3`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimVector3.html)
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Using AnimatedValues in Custom Unity Editors](https://i.ytimg.com/vi/jfhCaijXm6M/mqdefault.jpg)






![Creating our own Dockerized Mindustry Server
Lately Ive been playing Mindustry a factory based tower defense game that lets you build a factory, construct defenses and grow over time. Mindustry also includes its own self-hostable server. Were going to be taking a look at how we can use that self-hosted server file in order to create a reproducible containerized environment where we can run Mindustry games to play with friends.
To setup our Mindustry container image were going to create a `Dockerfile` with three layers:
```docker
FROM openjdk:25-slim
COPY server.jar /server.jar
CMD [ java, -jar, /server.jar ]
```
* `FROM`: defines which image to base our own image upon. Well be layering upon a slimmed down version of openjdks images.
* `COPY`: copies a file from our local machine - `server.jar` in this case - onto the container image so we can access it.
* `CMD`: defines the command to run to boot our server when we run it. For us this means using the packaged `jre` to run the `server.jar` we copied over into the container.
We build our Docker Image using this command:
```sh
docker build tag mindustry-server .
```
And then run that image using `docker run`:
```sh
docker run -it -p 6567:6567 -p 6567:6567/udp mindustry-server
```
Mindustry Server Hosting is documented on the Mindustry Wiki here: https://mindustrygame.github.io/wiki/servers/
We are basing our `Dockerfile` on the `openjdk` images. You can find them on Docker Hub here: https://hub.docker.com/_/openjdk
If youd like to see how we can apply similar ideas to hosting our own Minecraft Server, you can check out our containerized Minecraft server here: https://youtu.be/JtKIpGjtLzw
The current version of this container is available on GitHub at https://github.com/WorldOfZero/mindustry-server
***
Mindustry is available on Itch or Steam for desktop players or you can get a copy for your mobile phones:
* Itch.io: https://anuke.itch.io/mindustry
* Steam: https://store.steampowered.com/app/1127400/Mindustry/
* Google Play Store (Android): https://play.google.com/store/apps/details?id=io.anuke.mindustry&pli=1
* Apple App Store (iOS): https://apps.apple.com/us/app/mindustry/id1385258906?ls=1
(I dont have any association with this game, I just like playing it) Creating our own Dockerized Mindustry Server](https://i.ytimg.com/vi/m3mowhqXsXE/mqdefault.jpg)
![Importing .NET Libraries Into Unity 3D
You can import .NET Libraries into Unity in order to expose additional functionality in your game. In this video were going to build a basic demonstration of this feature by creating a brand new .NET Core library and importing it into Unity.
Once the library is imported we can invoke it and create objects defined by it just like any other code.
To create a new dotnet library with .NET Core you can use:
```csharp
dotnet new classlib name [your library name]
```
More about using the Unity Resources folder here on learn.unity.com: https://learn.unity.com/tutorial/assets-resources-and-assetbundles
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Importing .NET Libraries Into Unity 3D](https://i.ytimg.com/vi/m5Ls_NUChMk/mqdefault.jpg)