diff options
author | Alex <[email protected]> | 2018-05-30 23:42:32 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-05-31 18:05:38 +0200 |
commit | 07b96d16e8679c40e289c9076ef4414ed6eb7f81 (patch) | |
tree | a48b1b963450746af1657081ccedfab8c995b2b6 /config/services | |
parent | ceaff7cafc5357274e546984ae02a4cbdf305f81 (diff) | |
download | hugo-07b96d16e8679c40e289c9076ef4414ed6eb7f81.tar.gz hugo-07b96d16e8679c40e289c9076ef4414ed6eb7f81.zip |
Fixes #4798
Diffstat (limited to 'config/services')
-rw-r--r-- | config/services/servicesConfig.go | 9 | ||||
-rw-r--r-- | config/services/servicesConfig_test.go | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/services/servicesConfig.go b/config/services/servicesConfig.go index d78b80948..bc321141a 100644 --- a/config/services/servicesConfig.go +++ b/config/services/servicesConfig.go @@ -30,6 +30,7 @@ type Config struct { Disqus Disqus GoogleAnalytics GoogleAnalytics Instagram Instagram + Twitter Twitter } // Disqus holds the functional configuration settings related to the Disqus template. @@ -52,6 +53,14 @@ type Instagram struct { DisableInlineCSS bool } +// Twitter holds the functional configuration settings related to the Twitter shortcodes. +type Twitter struct { + // The Simple variant of Twitter is decorated with a basic set of inline styles. + // This means that if you want to provide your own CSS, you want + // to disable the inline CSS provided by Hugo. + DisableInlineCSS bool +} + func DecodeConfig(cfg config.Provider) (c Config, err error) { m := cfg.GetStringMap(servicesConfigKey) diff --git a/config/services/servicesConfig_test.go b/config/services/servicesConfig_test.go index 69dec0350..367b40153 100644 --- a/config/services/servicesConfig_test.go +++ b/config/services/servicesConfig_test.go @@ -35,6 +35,8 @@ shortname = "DS" id = "ga_id" [services.instagram] disableInlineCSS = true +[services.twitter] +disableInlineCSS = true ` cfg, err := config.FromConfigString(tomlConfig, "toml") assert.NoError(err) |