From: Oleksandr Redko Date: Mon, 26 Jun 2023 11:26:36 +0000 (+0300) Subject: tpl/tplimpl: Fix typo in global variable name X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e3308a0bbc2de1cb4d7571521abeab07049ce31f;p=brevno-suite%2Fhugo tpl/tplimpl: Fix typo in global variable name --- 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 }