mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Merge branch 'tempv0.104.0'
This commit is contained in:
5 files changed
+43
-4
No files matched your search
@@ -26,7 +26,7 @@ To load completions for every new session, execute once:
|
|||||||
|
|
||||||
#### macOS:
|
#### macOS:
|
||||||
|
|
||||||
hugo completion bash > /usr/local/etc/bash_completion.d/hugo
|
hugo completion bash > $(brew --prefix)/etc/bash_completion.d/hugo
|
||||||
|
|
||||||
You will need to start a new shell for this setup to take effect.
|
You will need to start a new shell for this setup to take effect.
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ to enable it. You can execute the following once:
|
|||||||
|
|
||||||
echo "autoload -U compinit; compinit" >> ~/.zshrc
|
echo "autoload -U compinit; compinit" >> ~/.zshrc
|
||||||
|
|
||||||
|
To load completions in your current shell session:
|
||||||
|
|
||||||
|
source <(hugo completion zsh); compdef _hugo hugo
|
||||||
|
|
||||||
To load completions for every new session, execute once:
|
To load completions for every new session, execute once:
|
||||||
|
|
||||||
#### Linux:
|
#### Linux:
|
||||||
@@ -24,7 +28,7 @@ To load completions for every new session, execute once:
|
|||||||
|
|
||||||
#### macOS:
|
#### macOS:
|
||||||
|
|
||||||
hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo
|
hugo completion zsh > $(brew --prefix)/share/zsh/site-functions/_hugo
|
||||||
|
|
||||||
You will need to start a new shell for this setup to take effect.
|
You will need to start a new shell for this setup to take effect.
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ hugo new [path] [flags]
|
|||||||
--disableKinds strings disable different kind of pages (home, RSS etc.)
|
--disableKinds strings disable different kind of pages (home, RSS etc.)
|
||||||
--editor string edit new content with this editor, if provided
|
--editor string edit new content with this editor, if provided
|
||||||
--enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages
|
--enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages
|
||||||
|
-f, --force overwrite file if it already exists
|
||||||
--forceSyncStatic copy all files when static is changed.
|
--forceSyncStatic copy all files when static is changed.
|
||||||
--gc enable to run some cleanup tasks (remove unused cache files) after the build
|
--gc enable to run some cleanup tasks (remove unused cache files) after the build
|
||||||
-h, --help help for new
|
-h, --help help for new
|
||||||
|
|||||||
@@ -163,6 +163,19 @@ Sometimes it can be useful to create the filter chain once and then reuse it.
|
|||||||
{{ $image2 := $image2.Filter $filters }}
|
{{ $image2 := $image2.Filter $filters }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Colors
|
||||||
|
|
||||||
|
{{< new-in "0.104.0" >}}
|
||||||
|
|
||||||
|
`.Colors` returns a slice of hex string with the dominant colors in the image using a simple histogram method.
|
||||||
|
|
||||||
|
```go-html-template
|
||||||
|
{{ $colors := $image.Colors }}
|
||||||
|
```
|
||||||
|
|
||||||
|
This method is fast, but if you also scale down your images, it would be good for performance to extract the colors from the scaled down image.
|
||||||
|
|
||||||
|
|
||||||
### Exif
|
### Exif
|
||||||
|
|
||||||
Provides an [Exif] object containing image metadata.
|
Provides an [Exif] object containing image metadata.
|
||||||
|
|||||||
+23
-2
@@ -244,6 +244,13 @@
|
|||||||
"chaiscript"
|
"chaiscript"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "Chapel",
|
||||||
|
"Aliases": [
|
||||||
|
"chapel",
|
||||||
|
"chpl"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "Cheetah",
|
"Name": "Cheetah",
|
||||||
"Aliases": [
|
"Aliases": [
|
||||||
@@ -347,6 +354,13 @@
|
|||||||
"jinja"
|
"jinja"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "dns",
|
||||||
|
"Aliases": [
|
||||||
|
"zone",
|
||||||
|
"bind"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "Docker",
|
"Name": "Docker",
|
||||||
"Aliases": [
|
"Aliases": [
|
||||||
@@ -437,7 +451,8 @@
|
|||||||
{
|
{
|
||||||
"Name": "Fortran",
|
"Name": "Fortran",
|
||||||
"Aliases": [
|
"Aliases": [
|
||||||
"fortran"
|
"fortran",
|
||||||
|
"f90"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1004,6 +1019,12 @@
|
|||||||
"promql"
|
"promql"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "properties",
|
||||||
|
"Aliases": [
|
||||||
|
"java-properties"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "Protocol Buffer",
|
"Name": "Protocol Buffer",
|
||||||
"Aliases": [
|
"Aliases": [
|
||||||
@@ -1650,7 +1671,7 @@
|
|||||||
"^postcss$"
|
"^postcss$"
|
||||||
],
|
],
|
||||||
"osEnv": [
|
"osEnv": [
|
||||||
"(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$"
|
"(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"funcs": {
|
"funcs": {
|
||||||
|
|||||||
Reference in new issue
Block a user