aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOleksandr Redko <[email protected]>2023-06-26 14:26:36 +0300
committerBjørn Erik Pedersen <[email protected]>2023-06-26 15:12:21 +0200
commite3308a0bbc2de1cb4d7571521abeab07049ce31f (patch)
tree02a0cb5345288e6287eeff289816b26c0994019e
parent019299b0b0bb60355c41ad5364b631f18e7d21ae (diff)
downloadhugo-e3308a0bbc2de1cb4d7571521abeab07049ce31f.tar.gz
hugo-e3308a0bbc2de1cb4d7571521abeab07049ce31f.zip
tpl/tplimpl: Fix typo in global variable name
-rw-r--r--tpl/tplimpl/template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index e706bca4c..ba5e861af 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -754,15 +754,15 @@ func (t *templateHandler) applyTemplateTransformers(ns *templateNamespace, ts *t
//go:embed embedded/templates/*
//go:embed embedded/templates/_default/*
//go:embed embedded/templates/_server/*
-var embededTemplatesFs embed.FS
+var embeddedTemplatesFs embed.FS
func (t *templateHandler) loadEmbedded() error {
- return fs.WalkDir(embededTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
+ return fs.WalkDir(embeddedTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
if d == nil || d.IsDir() {
return nil
}
- templb, err := embededTemplatesFs.ReadFile(path)
+ templb, err := embeddedTemplatesFs.ReadFile(path)
if err != nil {
return err
}