Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-04 15:10:20 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-04 16:12:30 +0300
commit7da1b65968cd78970de8c8b61f5056dc7b0ec6b2 (patch)
tree5c2eaa91db4f603ed74ac0c4575fa2201c789ebf /deps
parent868f89d5c69c1f028b4d8900ccddd671a8d1922c (diff)
all: Use the configured output types to resolve template type
Closes #320
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/deps.go b/deps/deps.go
index 188863876..99763c115 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -8,6 +8,7 @@ import (
"github.com/spf13/hugo/config"
"github.com/spf13/hugo/helpers"
"github.com/spf13/hugo/hugofs"
+ "github.com/spf13/hugo/output"
"github.com/spf13/hugo/tpl"
jww "github.com/spf13/jwalterweatherman"
)
@@ -39,6 +40,9 @@ type Deps struct {
Language *helpers.Language
+ // All the output formats available for the current site.
+ OutputFormatsConfig output.Formats
+
templateProvider ResourceProvider
WithTemplate func(templ tpl.TemplateHandler) error `json:"-"`