Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2022-03-08docs: Regenerate CLI docsBjørn Erik Pedersen
2022-03-08docs: Regenerate docshelperBjørn Erik Pedersen
2022-03-08Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'Bjørn Erik Pedersen
2022-02-28Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'Bjørn Erik Pedersen
2022-02-28docs: Regenerate docs helperBjørn Erik Pedersen
2022-02-28cod: Regen CLI docsBjørn Erik Pedersen
2022-02-27CodeblockContext method renamesBjørn Erik Pedersen
Fixes #9577
2022-02-25Move the Goat template to the correct placeBjørn Erik Pedersen
Updates #7765
2022-02-24Add Markdown diagrams and render hooks for code blocksBjørn Erik Pedersen
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`). We also used this new hook to add support for diagrams in Hugo: * Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams. * Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information. Updates #7765 Closes #9538 Fixes #9553 Fixes #8520 Fixes #6702 Fixes #9558
2022-02-23Allow images to be cropped without being resizedJohn Elliott
Introduces the Crop method for image processing which implements gift.CropToSize. Also allows a smartCrop without resizing, and updates the documentation. Fixes #9499
2022-02-18modules: Add modules.Workspace config for Go 1.18Bjørn Erik Pedersen
Sets `GOWORK` env var for Go 1.18. Fixes #9525
2022-02-15Add --printUnusedTemplatesBjørn Erik Pedersen
Fixes #9502
2022-02-15commands: Rename --i18n-warnings to printI18nWarningsBjørn Erik Pedersen
To get it in line with the others.
2022-02-15commands: Rename --path-warnings, --print-men to --printPathWarnings, ↵Bjørn Erik Pedersen
--printMemoryUsage To get it in line with the others.
2022-02-15deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0Bjørn Erik Pedersen
2022-02-14Merge commit '230a495941b191af0bdaa7e2fc8c61607cb38207'Bjørn Erik Pedersen
2022-02-10Fix validation of Page Kind in cascade target mapJoe Mooring
Fixes #8888
2022-02-10Remove the "check" commandJoe Mooring
Closes #9454
2022-02-02Remove hugo gen autocompleteJoe Mooring
Closes #8862
2022-01-12docs: Regenerate docshelperBjørn Erik Pedersen
2022-01-12Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'Bjørn Erik Pedersen
2022-01-11docs: Add dependency table to maintainance pageBjørn Erik Pedersen
See #8949
2022-01-11Add hugo.DepsBjørn Erik Pedersen
Fixes #8949
2022-01-07docs. Regen CLI docsBjørn Erik Pedersen
Closes #9363
2022-01-04docs: Regenerate CLI docsBjørn Erik Pedersen
2022-01-04docs: Regenerate docshelperBjørn Erik Pedersen
2021-12-23Revert "config/security: Add HOME to default exec env var whitelist"Bjørn Erik Pedersen
There have been one report in the wild suggesting that this needs to be tested better before doing: https://discourse.gohugo.io/t/hugo-mod-failing-in-v0-91-1-but-works-in-v0-91-0/36180/5 This reverts commit fca266ebbb81af3d4479873a7a79759033c7ce25.
2021-12-22config/security: Add HOME to default exec env var whitelistBjørn Erik Pedersen
See #9309
2021-12-17docs: Regen docs helperBjørn Erik Pedersen
2021-12-16Add some basic security policies with sensible defaultsBjørn Erik Pedersen
This ommmit contains some security hardening measures for the Hugo build runtime. There are some rarely used features in Hugo that would be good to have disabled by default. One example would be the "external helpers". For `asciidoctor` and some others we use Go's `os/exec` package to start a new process. These are a predefined set of binary names, all loaded from `PATH` and with a predefined set of arguments. Still, if you don't use `asciidoctor` in your project, you might as well have it turned off. You can configure your own in the new `security` configuration section, but the defaults are configured to create a minimal amount of site breakage. And if that do happen, you will get clear instructions in the loa about what to do. The default configuration is listed below. Note that almost all of these options are regular expression _whitelists_ (a string or a slice); the value `none` will block all. ```toml [security] enableInlineShortcodes = false [security.exec] allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] [security.funcs] getenv = ['^HUGO_'] [security.http] methods = ['(?i)GET|POST'] urls = ['.*'] ```
2021-12-13Merge commit '45e6fdb315d113ba13e20a633ed0c67e3f25170d'Bjørn Erik Pedersen
2021-12-08docs: Regenerate docs helperBjørn Erik Pedersen
2021-12-08Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'Bjørn Erik Pedersen
2021-12-07Add custom font support to images.TextBjørn Erik Pedersen
Fixes #9253
2021-12-07images: Text filter that draws text with the given options (#9239)Paul van Brouwershaven
Fixes #9238
2021-12-07tpl/transform: Optional options for highlight funcJoe Mooring
Closes #9249 Fixes gohugoio/hugoDocs#63
2021-12-02Implement XML data supportPaul van Brouwershaven
Example: ``` {{ with resources.Get "https://example.com/rss.xml" | transform.Unmarshal }} {{ range .channel.item }} <strong>{{ .title | plainify | htmlUnescape }}</strong><br /> <p>{{ .description | plainify | htmlUnescape }}</p> {{ $link := .link | plainify | htmlUnescape }} <a href="{{ $link }}">{{ $link }}</a><br /> <hr> {{ end }} {{ end }} ``` Closes #4470
2021-12-02Make resources.Get use a file cache for remote resourcesPaul van Brouwershaven
Closes #9228
2021-11-30Add remote support to resources.GetPaul van Brouwershaven
Closes #5255 Supports #9044
2021-11-17releaser: Add release notes to /docs for release of 0.89.4v0.89.4hugoreleaser
[ci skip]
2021-11-15releaser: Add release notes to /docs for release of 0.89.3v0.89.3hugoreleaser
[ci skip]
2021-11-08releaser: Add release notes to /docs for release of 0.89.2v0.89.2hugoreleaser
[ci skip]
2021-11-05releaser: Add release notes to /docs for release of 0.89.1v0.89.1hugoreleaser
[ci skip]
2021-11-02releaser: Add release notes to /docs for release of 0.89.0v0.89.0hugoreleaser
[ci skip]
2021-11-02docs: Regen CLI docsBjørn Erik Pedersen
2021-11-01Fix description of lang.FormatNumberCustomJoe Mooring
It currently refers to itself as a simple alternative, when it should refer to lang.FormatNumber.
2021-11-01Update Twitter shortcode oEmbed endpointJoe Mooring
The existing endpoint will be retired and removed on November 23, 2021. References: - https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690 - https://developer.twitter.com/en/docs/twitter-for-websites/oembed-api#Embedded This is a backward compatible change. The existing endpoint requires a single parameter: the id of the tweet. The new endpoint requires two parameters: the id of the tweet, and the user with whom it is associated. For the moment, if you supply the wrong user, the request will be redirected (with a small delay) to the correct user/id pair. This behavior is undocumented, but we will take advantage of it as Hugo site authors transition to the new syntax. {{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point {{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax Fixes #8130
2021-10-31Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'Bjørn Erik Pedersen
2021-10-20hugofs: Add includeFiles and excludeFiles to mount configurationBjørn Erik Pedersen
Fixes #9042
2021-10-10Allow multiple plugins in the PostCSS options mapJoe Mooring
Usage: {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} {{ $style := resources.Get "main.css" | resources.PostCSS $options }} Fixes #9015