Move the privacy config into a parent

See #4751
This commit is contained in:
Bjørn Erik Pedersen
2018-05-22 14:00:36 +02:00
parent 568b4335c2
commit 353148c2bc
10 changed files with 23 additions and 19 deletions

View File

@@ -22,11 +22,19 @@ import (
"strings"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/config/privacy"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
"github.com/spf13/viper"
)
// SiteConfig represents the config in .Site.Config.
type SiteConfig struct {
// This contains all privacy related settings that can be used to
// make the YouTube template etc. GDPR compliant.
Privacy privacy.Config
}
// ConfigSourceDescriptor describes where to find the config (e.g. config.toml etc.).
type ConfigSourceDescriptor struct {
Fs afero.Fs