mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
tpl: Fix the docshelper
This commit is contained in:
@@ -34,6 +34,10 @@ import (
|
||||
|
||||
// New returns a new instance of the resources-namespaced template functions.
|
||||
func New(deps *deps.Deps) (*Namespace, error) {
|
||||
if deps.ResourceSpec == nil {
|
||||
return &Namespace{}, nil
|
||||
}
|
||||
|
||||
scssClient, err := scss.New(deps.BaseFs.Assets, deps.ResourceSpec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user