From 207e7f0a05c78ef76c5d20cd55ba57dc124b6e3e Mon Sep 17 00:00:00 2001 From: Oliver Kamer <3026203+olikami@users.noreply.github.com> Date: Mon, 9 Jan 2023 12:05:32 +0100 Subject: [PATCH] fix docs for getting remote font Doesn't work with `resources.Get`, need to use `.GetRemote` --- content/en/functions/images/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/images/index.md b/content/en/functions/images/index.md index 0cf45b6ee..e7fc50f7e 100644 --- a/content/en/functions/images/index.md +++ b/content/en/functions/images/index.md @@ -60,7 +60,7 @@ You can load a custom font if needed. Load the font as a Hugo `Resource` and set ```go-html-template -{{ $font := resources.Get "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }} +{{ $font := resources.GetRemote "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }} {{ $img := resources.Get "/images/background.png"}} {{ $img = $img.Filter (images.Text "Hugo rocks!" (dict "font" $font