Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'

This commit is contained in:
Bjørn Erik Pedersen
2024-01-26 08:22:42 +01:00
141 changed files with 904 additions and 813 deletions

View File

@@ -7,10 +7,7 @@ action:
related: []
returnType: string
signatures: [SITE.DisqusShortname]
# deprecated 2023-10-30
expiryDate: 2024-10-30
_build:
list: never
expiryDate: 2024-10-30 # deprecated 2023-10-30
---
{{% deprecated-in 0.120.0 %}}

View File

@@ -6,7 +6,7 @@ keywords: []
action:
related:
- methods/page/GetPage
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.GetPage PATH]
toc: true
---

View File

@@ -7,10 +7,7 @@ action:
related: []
returnType: string
signatures: [SITE.GoogleAnalytics]
# deprecated 2023-10-30
expiryDate: 2024-10-30
_build:
list: never
expiryDate: 2024-10-30 # deprecated 2023-10-30
---
{{% deprecated-in 0.120.0 %}}

View File

@@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.Home]
---

View File

@@ -7,10 +7,7 @@ action:
related: []
returnType: bool
signatures: [SITE.IsDevelopment]
# deprecated 2023-10-30
expiryDate: 2024-10-30
_build:
list: never
expiryDate: 2024-10-30 # deprecated 2023-10-30
---
{{% deprecated-in 0.120.0 %}}
@@ -18,3 +15,7 @@ Use [`hugo.IsDevelopment`] instead.
[`hugo.IsDevelopment`]: /functions/hugo/isdevelopment
{{% /deprecated-in %}}
```go-html-template
{{ .Site.IsDevelopment }} → true/false
```

View File

@@ -7,10 +7,7 @@ action:
related: []
returnType: bool
signatures: [SITE.IsServer]
# deprecated 2023-10-30
expiryDate: 2024-10-30
_build:
list: never
expiryDate: 2024-10-30 # deprecated 2023-10-30
---
{{% deprecated-in 0.120.0 %}}
@@ -18,3 +15,7 @@ Use [`hugo.IsServer`] instead.
[`hugo.IsServer`]: /functions/hugo/isserver
{{% /deprecated-in %}}
```go-html-template
{{ .Site.IsServer }} → true/false
```

View File

@@ -22,27 +22,27 @@ Menus can be defined and localized in several ways. Please see the [menus] secti
A site can have multiple menus. For example, a main menu and a footer menu:
{{< code-toggle file=hugo >}}
[[menu.main]]
[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10
[[menu.main]]
[[menus.main]]
name = 'Books'
pageRef = '/books'
weight = 20
[[menu.main]]
[[menus.main]]
name = 'Films'
pageRef = '/films'
weight = 30
[[menu.footer]]
[[menus.footer]]
name = 'Legal'
pageRef = '/legal'
weight = 10
[[menu.footer]]
[[menus.footer]]
name = 'Privacy'
pageRef = '/privacy'
weight = 20