mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
---
|
||||
title: path.Base
|
||||
description: Replaces path separators with slashes (`/`) and returns the last element of the given path.
|
||||
description: Replaces path separators with slashes (`/`) and returns the last element of the given path.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/BaseName
|
||||
- functions/path/Clean
|
||||
- functions/path/Dir
|
||||
- functions/path/Ext
|
||||
- functions/path/Join
|
||||
- functions/path/Split
|
||||
returnType: string
|
||||
signatures: [path.Base PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.Base PATH]
|
||||
aliases: [/functions/path.base]
|
||||
---
|
||||
|
||||
|
@@ -3,17 +3,11 @@ title: path.BaseName
|
||||
description: Replaces path separators with slashes (`/`) and returns the last element of the given path, removing the extension if present.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/Clean
|
||||
- functions/path/Dir
|
||||
- functions/path/Ext
|
||||
- functions/path/Join
|
||||
- functions/path/Split
|
||||
returnType: string
|
||||
signatures: [path.BaseName PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.BaseName PATH]
|
||||
aliases: [/functions/path.basename]
|
||||
---
|
||||
|
||||
|
@@ -3,17 +3,11 @@ title: path.Clean
|
||||
description: Replaces path separators with slashes (`/`) and returns the shortest path name equivalent to the given path.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/BaseName
|
||||
- functions/path/Dir
|
||||
- functions/path/Ext
|
||||
- functions/path/Join
|
||||
- functions/path/Split
|
||||
returnType: string
|
||||
signatures: [path.Clean PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.Clean PATH]
|
||||
aliases: [/functions/path.clean]
|
||||
---
|
||||
|
||||
|
@@ -3,17 +3,11 @@ title: path.Dir
|
||||
description: Replaces path separators with slashes (/) and returns all but the last element of the given path.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/BaseName
|
||||
- functions/path/Clean
|
||||
- functions/path/Ext
|
||||
- functions/path/Join
|
||||
- functions/path/Split
|
||||
returnType: string
|
||||
signatures: [path.Dir PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.Dir PATH]
|
||||
aliases: [/functions/path.dir]
|
||||
---
|
||||
|
||||
|
@@ -3,17 +3,11 @@ title: path.Ext
|
||||
description: Replaces path separators with slashes (`/`) and returns the file name extension of the given path.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/BaseName
|
||||
- functions/path/Clean
|
||||
- functions/path/Dir
|
||||
- functions/path/Join
|
||||
- functions/path/Split
|
||||
returnType: string
|
||||
signatures: [path.Ext PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.Ext PATH]
|
||||
aliases: [/functions/path.ext]
|
||||
---
|
||||
|
||||
|
@@ -3,18 +3,11 @@ title: path.Join
|
||||
description: Replaces path separators with slashes (`/`), joins the given path elements into a single path, and returns the shortest path name equivalent to the result.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/BaseName
|
||||
- functions/path/Clean
|
||||
- functions/path/Dir
|
||||
- functions/path/Ext
|
||||
- functions/path/Split
|
||||
- functions/urls/JoinPath
|
||||
returnType: string
|
||||
signatures: [path.Join ELEMENT...]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: string
|
||||
signatures: [path.Join ELEMENT...]
|
||||
aliases: [/functions/path.join]
|
||||
---
|
||||
|
||||
|
@@ -1,19 +1,13 @@
|
||||
---
|
||||
title: path.Split
|
||||
description: Replaces path separators with slashes (`/`) and splits the resulting path immediately following the final slash, separating it into a directory and file name component.
|
||||
description: Replaces path separators with slashes (`/`) and splits the resulting path immediately following the final slash, separating it into a directory and file name component.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/path/Base
|
||||
- functions/path/BaseName
|
||||
- functions/path/Clean
|
||||
- functions/path/Dir
|
||||
- functions/path/Ext
|
||||
- functions/path/Join
|
||||
returnType: paths.DirFile
|
||||
signatures: [path.Split PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: paths.DirFile
|
||||
signatures: [path.Split PATH]
|
||||
aliases: [/functions/path.split]
|
||||
---
|
||||
|
||||
|
@@ -1,12 +1,7 @@
|
||||
---
|
||||
title: Path functions
|
||||
linkTitle: path
|
||||
description: Template functions to work with file paths.
|
||||
description: Use these functions to work with file paths.
|
||||
categories: []
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: functions
|
||||
---
|
||||
|
||||
Use these functions to work with file paths.
|
||||
|
Reference in New Issue
Block a user