diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index 375a4d472..60187802e 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -95,7 +95,7 @@ When using the padding filter, provide all arguments in this order:
"fontSize" 64
"lineHeight" 1.2
"fontColor" "#ffffff"
- "fontPath" "https://github.com/google/fonts/raw/main/ofl/lato/Lato-Regular.ttf"
+ "fontPath" "https://github.com/google/fonts/raw/refs/heads/main/ofl/lato/Lato-Regular.ttf"
}}
{{- /* Get and validate parameters. */}}