diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-05-24 11:24:38 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-05-24 11:40:47 +0200 |
commit | 3bfe8f4be653f44674293685cb5750d90668b2f6 (patch) | |
tree | 19f2c4eae1c4d4052199034db1dcfbe4ddf03806 /config/privacy | |
parent | 6aa2c38507aa1c2246222684717b4d69d26b03d7 (diff) | |
download | hugo-3bfe8f4be653f44674293685cb5750d90668b2f6.tar.gz hugo-3bfe8f4be653f44674293685cb5750d90668b2f6.zip |
tpl: Alias tweet shortode to twitter
See #4765
Diffstat (limited to 'config/privacy')
-rw-r--r-- | config/privacy/privacyConfig.go | 6 | ||||
-rw-r--r-- | config/privacy/privacyConfig_test.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go index ee7b7be2c..bcffec8af 100644 --- a/config/privacy/privacyConfig.go +++ b/config/privacy/privacyConfig.go @@ -31,7 +31,7 @@ type Config struct { GoogleAnalytics GoogleAnalytics Instagram Instagram SpeakerDeck SpeakerDeck - Tweet Tweet + Twitter Twitter Vimeo Vimeo YouTube YouTube } @@ -64,8 +64,8 @@ type SpeakerDeck struct { Service `mapstructure:",squash"` } -// Tweet holds the privacy configuration settingsrelated to the Tweet shortcode. -type Tweet struct { +// Twitter holds the privacy configuration settingsrelated to the Twitter shortcode. +type Twitter struct { Service `mapstructure:",squash"` } diff --git a/config/privacy/privacyConfig_test.go b/config/privacy/privacyConfig_test.go index f945ac8c2..0efc734db 100644 --- a/config/privacy/privacyConfig_test.go +++ b/config/privacy/privacyConfig_test.go @@ -39,7 +39,7 @@ disable = true simple = true [privacy.speakerDeck] disable = true -[privacy.tweet] +[privacy.twitter] disable = true [privacy.vimeo] disable = true @@ -61,7 +61,7 @@ simple = true assert.True(pc.Instagram.Disable) assert.True(pc.Instagram.Simple) assert.True(pc.SpeakerDeck.Disable) - assert.True(pc.Tweet.Disable) + assert.True(pc.Twitter.Disable) assert.True(pc.Vimeo.Disable) assert.True(pc.YouTube.PrivacyEnhanced) |