aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/fileInfo.go
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-03-09 11:21:46 -0800
committerBjørn Erik Pedersen <[email protected]>2024-03-10 10:47:51 +0200
commit4f92f949eaf8c9827a758b3caadc672e0335480b (patch)
treeb3e43a708cc4703697c4108d7c1798345874da8f /source/fileInfo.go
parentd24ffdde5b34cb848d04db7099f9bf8903099209 (diff)
downloadhugo-4f92f949eaf8c9827a758b3caadc672e0335480b.tar.gz
hugo-4f92f949eaf8c9827a758b3caadc672e0335480b.zip
hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual
Closes #12224
Diffstat (limited to 'source/fileInfo.go')
-rw-r--r--source/fileInfo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go
index 1d2226994..44d08e620 100644
--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -61,7 +61,7 @@ func (fi *File) Extension() string {
func (fi *File) Ext() string { return fi.p().Ext() }
// Lang returns a file's language (e.g. "sv").
-// Deprecated: use .Page.Language.Lang instead.
+// Deprecated: Use .Page.Language.Lang instead.
func (fi *File) Lang() string {
hugo.Deprecate(".Page.File.Lang", "Use .Page.Language.Lang instead.", "v0.123.0")
return fi.fim.Meta().Lang