mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
templates.go: Resolve symlinks
This commit is contained in:
parent
ff4d614e49
commit
4b39c0bfe1
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue