From 4b39c0bfe148529cccda8e9f0d4943878c047471 Mon Sep 17 00:00:00 2001 From: Edd Salkield Date: Sun, 25 Sep 2022 14:43:17 +0100 Subject: [PATCH] templates.go: Resolve symlinks --- templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates.go b/templates.go index fe90ae8..6314c28 100644 --- a/templates.go +++ b/templates.go @@ -108,7 +108,7 @@ func (t *Templates) Load(dir string, exts []string) error { if err != nil { return err } - if d.Type().IsRegular() { + if d.Type().IsRegular() || d.Type()&fs.ModeSymlink != 0 { if err := t.LoadTemplate(fsys, path); err != nil { return err }