mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'
This commit is contained in:
@@ -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 %}}
|
||||
|
@@ -6,7 +6,7 @@ keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/GetPage
|
||||
returnType: hugolib.pageState
|
||||
returnType: page.Page
|
||||
signatures: [SITE.GetPage PATH]
|
||||
toc: true
|
||||
---
|
||||
|
@@ -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 %}}
|
||||
|
@@ -5,7 +5,7 @@ categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related: []
|
||||
returnType: hugolib.pageState
|
||||
returnType: page.Page
|
||||
signatures: [SITE.Home]
|
||||
---
|
||||
|
||||
|
@@ -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
|
||||
```
|
||||
|
@@ -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
|
||||
```
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user