@@ -54,8 +54,7 @@ type Site interface {
54
54
// A shortcut to the home
55
55
Home () Page
56
56
57
- // Returns true if we're running in a server.
58
- // Deprecated: use hugo.IsServer instead
57
+ // Deprecated: Use hugo.IsServer instead.
59
58
IsServer () bool
60
59
61
60
// Returns the server port.
@@ -64,7 +63,6 @@ type Site interface {
64
63
// Returns the configured title for this Site.
65
64
Title () string
66
65
67
- // Returns the configured language code for this Site.
68
66
// Deprecated: Use .Language.LanguageCode instead.
69
67
LanguageCode () string
70
68
@@ -86,7 +84,6 @@ type Site interface {
86
84
// Returns a taxonomy map.
87
85
Taxonomies () TaxonomyList
88
86
89
- // Returns the last modification date of the content.
90
87
// Deprecated: Use .Lastmod instead.
91
88
LastChange () time.Time
92
89
@@ -129,13 +126,13 @@ type Site interface {
129
126
// BuildDrafts is deprecated and will be removed in a future release.
130
127
BuildDrafts () bool
131
128
132
- // IsMultiLingual reports whether this site is configured with more than one language .
129
+ // Deprecated: Use hugo.IsMultiLingual instead .
133
130
IsMultiLingual () bool
134
131
135
132
// LanguagePrefix returns the language prefix for this site.
136
133
LanguagePrefix () string
137
134
138
- // Deprecated. Use site .Home.OutputFormats.Get "rss" instead.
135
+ // Deprecated: Use .Site .Home.OutputFormats.Get "rss" instead.
139
136
RSSLink () template.URL
140
137
}
141
138
@@ -180,7 +177,7 @@ func (s *siteWrapper) Authors() AuthorList {
180
177
return AuthorList {}
181
178
}
182
179
183
- // Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead
180
+ // Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead.
184
181
func (s * siteWrapper ) GoogleAnalytics () string {
185
182
return s .s .GoogleAnalytics ()
186
183
}
@@ -217,7 +214,7 @@ func (s *siteWrapper) Home() Page {
217
214
return s .s .Home ()
218
215
}
219
216
220
- // Deprecated: use hugo.IsServer instead
217
+ // Deprecated: Use hugo.IsServer instead.
221
218
func (s * siteWrapper ) IsServer () bool {
222
219
return s .s .IsServer ()
223
220
}
@@ -262,9 +259,9 @@ func (s *siteWrapper) Taxonomies() TaxonomyList {
262
259
return s .s .Taxonomies ()
263
260
}
264
261
262
+ // Deprecated: Use .Site.Lastmod instead.
265
263
func (s * siteWrapper ) LastChange () time.Time {
266
- hugo .Deprecate (".Site.LastChange" , "Use .Site.Lastmod instead." , "v0.123.0" )
267
- return s .s .Lastmod ()
264
+ return s .s .LastChange ()
268
265
}
269
266
270
267
func (s * siteWrapper ) Lastmod () time.Time {
@@ -295,11 +292,12 @@ func (s *siteWrapper) BuildDrafts() bool {
295
292
return s .s .BuildDrafts ()
296
293
}
297
294
295
+ // Deprecated: Use hugo.IsMultiLingual instead.
298
296
func (s * siteWrapper ) IsMultiLingual () bool {
299
297
return s .s .IsMultiLingual ()
300
298
}
301
299
302
- // Deprecated: Use .Site.Config.Services.Disqus.Shortname instead
300
+ // Deprecated: Use .Site.Config.Services.Disqus.Shortname instead.
303
301
func (s * siteWrapper ) DisqusShortname () string {
304
302
return s .s .DisqusShortname ()
305
303
}
@@ -308,6 +306,7 @@ func (s *siteWrapper) LanguagePrefix() string {
308
306
return s .s .LanguagePrefix ()
309
307
}
310
308
309
+ // Deprecated: Use .Site.Home.OutputFormats.Get "rss" instead.
311
310
func (s * siteWrapper ) RSSLink () template.URL {
312
311
return s .s .RSSLink ()
313
312
}
@@ -342,6 +341,7 @@ func (t testSite) ServerPort() int {
342
341
return 1313
343
342
}
344
343
344
+ // Deprecated: Use .Site.Lastmod instead.
345
345
func (testSite ) LastChange () (t time.Time ) {
346
346
return
347
347
}
@@ -386,7 +386,7 @@ func (t testSite) Languages() langs.Languages {
386
386
return nil
387
387
}
388
388
389
- // Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead
389
+ // Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead.
390
390
func (t testSite ) GoogleAnalytics () string {
391
391
return ""
392
392
}
@@ -395,7 +395,7 @@ func (t testSite) MainSections() []string {
395
395
return nil
396
396
}
397
397
398
- // Deprecated: use hugo.IsServer instead
398
+ // Deprecated: Use hugo.IsServer instead.
399
399
func (t testSite ) IsServer () bool {
400
400
return false
401
401
}
@@ -444,7 +444,7 @@ func (s testSite) Config() SiteConfig {
444
444
return SiteConfig {}
445
445
}
446
446
447
- // Deprecated: Use .Site.Config.Services.Disqus.Shortname instead
447
+ // Deprecated: Use .Site.Config.Services.Disqus.Shortname instead.
448
448
func (testSite ) DisqusShortname () string {
449
449
return ""
450
450
}
@@ -453,6 +453,7 @@ func (s testSite) BuildDrafts() bool {
453
453
return false
454
454
}
455
455
456
+ // Deprecated: Use hugo.IsMultiLingual instead.
456
457
func (s testSite ) IsMultiLingual () bool {
457
458
return false
458
459
}
@@ -461,6 +462,7 @@ func (s testSite) Param(key any) (any, error) {
461
462
return nil , nil
462
463
}
463
464
465
+ // Deprecated: Use .Site.Home.OutputFormats.Get "rss" instead.
464
466
func (s testSite ) RSSLink () template.URL {
465
467
return ""
466
468
}
0 commit comments