Skip to content

Commit e1236e3

Browse files
jmooringbep
authored andcommitted
config: Add struct tags to deprecated and unused fields
This will remove these fields from the output of newDocsHelper.
1 parent e24b604 commit e1236e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎config/privacy/privacyConfig.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Config struct {
3030
Disqus Disqus
3131
GoogleAnalytics GoogleAnalytics
3232
Instagram Instagram
33-
Twitter Twitter // deprecated in favor of X in v0.141.0
33+
Twitter Twitter `json:"-"` // deprecated in favor of X in v0.141.0
3434
Vimeo Vimeo
3535
YouTube YouTube
3636
X X

‎config/services/servicesConfig.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ const (
2626
rssLimitKey = "rssLimit"
2727
)
2828

29-
// Config is a privacy configuration for all the relevant services in Hugo.
29+
// Config is a services configuration for all the relevant services in Hugo.
3030
type Config struct {
3131
Disqus Disqus
3232
GoogleAnalytics GoogleAnalytics
33-
Instagram Instagram
34-
Twitter Twitter // deprecated in favor of X in v0.141.0
33+
Instagram Instagram `json:"-"` // the embedded instagram shortcode no longer uses this
34+
Twitter Twitter `json:"-"` // deprecated in favor of X in v0.141.0
3535
X X
3636
RSS RSS
3737
}
@@ -53,12 +53,12 @@ type Instagram struct {
5353
// The Simple variant of the Instagram is decorated with Bootstrap 4 card classes.
5454
// This means that if you use Bootstrap 4 or want to provide your own CSS, you want
5555
// to disable the inline CSS provided by Hugo.
56-
DisableInlineCSS bool
56+
DisableInlineCSS bool // this is no longer used by the embedded instagram shortcode
5757

5858
// App or Client Access Token.
5959
// If you are using a Client Access Token, remember that you must combine it with your App ID
6060
// using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail.
61-
AccessToken string
61+
AccessToken string // this is no longer used by the embedded instagram shortcode
6262
}
6363

6464
// Twitter holds the functional configuration settings related to the Twitter shortcodes.

0 commit comments

Comments
 (0)