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
AgeCommit message (Collapse)Author
2022-06-28Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'Bjørn Erik Pedersen
2022-06-16Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'Bjørn Erik Pedersen
2022-06-14common: Add hugo.GoVersionKhayyam Saleem
Closes #9849. This enables `hugo.GoVersion` in templates to access the version of Go that the Hugo binary was built with.
2022-06-13resources/page: Add :slugorfilename attributeDawid Potocki
Fixes #4739, #385
2022-06-06tpl/path: Add path.BaseName functionJoe Mooring
Closes #9973
2022-05-31docs: Regen CLI docsBjørn Erik Pedersen
2022-05-31Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'Bjørn Erik Pedersen
2022-05-31Fix indentation in highlight shortcodeBjørn Erik Pedersen
This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra whitespace getting hightlighted. Fixes #4717
2022-05-15postcss: Fix import error handlingBjørn Erik Pedersen
Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import. You can work around this by either: * Use url imports or imports with media queries. * Set `skipInlineImportsNotFound=true` in the options Also get the argument order in the different NewFileError* funcs in line. Fixes #9895
2022-05-08docs: Regen CLI docsBjørn Erik Pedersen
2022-05-08Merge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'Bjørn Erik Pedersen
2022-04-28Merge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'Bjørn Erik Pedersen
2022-04-13resources: Add `key` to reources.GetRemote options mapBjørn Erik Pedersen
If set, `key` will be used as the only cache key element for the resource. The default behaviour is to calculate the key based on the URL and all the options. This means that you can now do: ``` {{ $cacheKey := print $url (now.Format "2006-01-02") }} {{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }} ``` Fixes #9755
2022-04-08Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'Bjørn Erik Pedersen
2022-04-08docs: Regen CLI docsBjørn Erik Pedersen
2022-04-05Add environment as a new filter to _cascade.targetCathrine Paulsen
Fixes #9612
2022-03-26docs: Regen CLI docsBjørn Erik Pedersen
2022-03-26Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'Bjørn Erik Pedersen
2022-03-23tpl/crypto: Add optional encoding arg to hmac functionJoe Mooring
Closes #9709
2022-03-11docs: Regenerate CLI docsBjørn Erik Pedersen
2022-03-08docs: Regenerate CLI docsBjørn Erik Pedersen
2022-03-08Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'Bjørn Erik Pedersen
2022-02-28Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'Bjørn Erik Pedersen
2022-02-28cod: Regen CLI docsBjørn Erik Pedersen
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-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-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
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-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]