]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
3 years agobuild(deps): bump gocloud.dev from 0.24.0 to 0.28.0 (#10610)
dependabot[bot] [Tue, 31 Jan 2023 08:40:39 +0000 (09:40 +0100)]
build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 (#10610)

Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.24.0 to 0.28.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.28.0)

---
updated-dependencies:
- dependency-name: gocloud.dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #9778

3 years agoFix description of collections.Uniq
Joe Mooring [Mon, 30 Jan 2023 16:36:44 +0000 (08:36 -0800)]
Fix description of collections.Uniq

3 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Tue, 31 Jan 2023 07:08:52 +0000 (08:08 +0100)]
Update CONTRIBUTING.md

3 years agoFix shortcode detection in RenderString
Bjørn Erik Pedersen [Thu, 26 Jan 2023 09:30:25 +0000 (10:30 +0100)]
Fix shortcode detection in RenderString

Fixes #10654

3 years agoOnly invoke a given cached partial once
Bjørn Erik Pedersen [Tue, 24 Jan 2023 19:57:15 +0000 (20:57 +0100)]
Only invoke a given cached partial once

Note that this is backed by a LRU cache (which we soon shall see more usage of), so if you're a heavy user of cached partials it may be evicted and
refreshed if needed. But in most cases every partial is only invoked once.

This commit also adds a timeout (the global `timeout` config option) to make infinite recursion in partials
easier to reason about.

```
name              old time/op    new time/op    delta
IncludeCached-10    8.92ms ± 0%    8.48ms ± 1%   -4.87%  (p=0.016 n=4+5)

name              old alloc/op   new alloc/op   delta
IncludeCached-10    6.65MB ± 0%    5.17MB ± 0%  -22.32%  (p=0.002 n=6+6)

name              old allocs/op  new allocs/op  delta
IncludeCached-10      117k ± 0%       71k ± 0%  -39.44%  (p=0.002 n=6+6)
```

Closes #4086
Updates #9588

3 years agoUpdate README.md
Bjørn Erik Pedersen [Tue, 24 Jan 2023 14:04:06 +0000 (15:04 +0100)]
Update README.md

3 years agoreleaser: Prepare repository for 0.111.0-DEV
hugoreleaser [Tue, 17 Jan 2023 12:28:17 +0000 (12:28 +0000)]
releaser: Prepare repository for 0.111.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.110.0
hugoreleaser [Tue, 17 Jan 2023 12:16:09 +0000 (12:16 +0000)]
releaser: Bump versions for release of 0.110.0

[ci skip]

3 years agodos: Regen CLI docs
Bjørn Erik Pedersen [Tue, 17 Jan 2023 11:52:53 +0000 (12:52 +0100)]
dos: Regen CLI docs

3 years agodocs: Regen docshelper
Bjørn Erik Pedersen [Tue, 17 Jan 2023 11:52:08 +0000 (12:52 +0100)]
docs: Regen docshelper

3 years agoMerge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
Bjørn Erik Pedersen [Tue, 17 Jan 2023 11:51:46 +0000 (12:51 +0100)]
Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'

3 years agoSquashed 'docs/' changes from 2c0125b52..1214f6ffb
Bjørn Erik Pedersen [Tue, 17 Jan 2023 11:51:01 +0000 (12:51 +0100)]
Squashed 'docs/' changes from 2c0125b52..1214f6ffb

1214f6ffb Document cleanDestinationDir configuration setting
27ca65463 Clarify .Page.Param method (#1953)
3fa1792d2 Document the usage of `hardWrap` option for markdown rendering (#1951)
8b5afdfb4 Update theme
207e7f0a0 fix docs for getting remote font
1f7094b9e Correct typo
f9d6445c4 Added missing `/` in URL generator (#1946)
3a22ee7d6 Remove translations
b3b900f3f Update introduction.md
aca440052 rm Forestry - facing end-of-life shortly (#1944)
af0014e14 Update scss-sass.md
1c43bbbc9 Merge branch 'docs/goworkspace'
d034175ca netlify: Hugo 0.109.0
d3a6a5c3f Merge branch 'tempv0.109.0'
e033dbead docs: Regen docs helper JSON
452bf675c resource/page: Add Page.Ancestors
12edd7363 Add some docs for workspaces
8f0fcba6b Add HUGO_PUBLISHDIR to the Node environment
4e66d98ad Update theme
808aee6f6 config: Update to ga v4
1de2bc5a9 config: Update to ga v4
ddb5fd6b0 Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
54c54bf76 modules: Adjust watch logic vs workspace use definitions

git-subtree-dir: docs
git-subtree-split: 1214f6ffbf680e853746aaeb6cb097b28c0c556b

3 years agorelated: Handly []any
Bjørn Erik Pedersen [Tue, 17 Jan 2023 11:36:34 +0000 (12:36 +0100)]
related: Handly []any

See #10624

3 years agoFix permalinks issue with repeated sections
Bjørn Erik Pedersen [Tue, 17 Jan 2023 10:00:38 +0000 (11:00 +0100)]
Fix permalinks issue with repeated sections

Fixes #10377

3 years agotpl/strings: Add findRESubmatch
Bjørn Erik Pedersen [Tue, 17 Jan 2023 08:35:16 +0000 (09:35 +0100)]
tpl/strings: Add findRESubmatch

Fixes #10594

3 years agoconfig/security: Add O\w+ (e.g. GOROOT) to the default allowed list
Bjørn Erik Pedersen [Tue, 17 Jan 2023 09:52:51 +0000 (10:52 +0100)]
config/security: Add O\w+ (e.g. GOROOT) to the default allowed list

Fixes #10429

3 years agoPreserve front matter slice value types (e.g. int)
Bjørn Erik Pedersen [Mon, 16 Jan 2023 15:29:42 +0000 (16:29 +0100)]
Preserve front matter slice value types (e.g. int)

Fixes #10624

3 years agoMake hugo.toml the new config.toml
Bjørn Erik Pedersen [Sun, 15 Jan 2023 17:45:51 +0000 (18:45 +0100)]
Make hugo.toml the new config.toml

Both will of course work, but hugo.toml will win if both are set.

We should have done this a long time ago, of course, but the reason I'm picking this up now is that my VS Code setup by default picks up some
JSON config schema from some random other software which also names its config files config.toml.

Fixes #8979

3 years agoAdd fill HTTP Response info into .Data in resources.GetRemote
Bjørn Erik Pedersen [Mon, 16 Jan 2023 11:44:39 +0000 (12:44 +0100)]
Add fill HTTP Response info into .Data in resources.GetRemote

See #10604

3 years agoFix HEAD method in resources.GetRemote
Bjørn Erik Pedersen [Mon, 16 Jan 2023 10:05:28 +0000 (11:05 +0100)]
Fix HEAD method in resources.GetRemote

Fixes #10604

3 years agoFix order when reading custom headers in resources.GetRemote
Bjørn Erik Pedersen [Mon, 16 Jan 2023 10:00:55 +0000 (11:00 +0100)]
Fix order when reading custom headers in resources.GetRemote

Fixes #10616

3 years agodeps: Upgrade github.com/evanw/esbuild v0.15.18 => v0.17.0
Bjørn Erik Pedersen [Mon, 16 Jan 2023 08:53:17 +0000 (09:53 +0100)]
deps: Upgrade github.com/evanw/esbuild v0.15.18 => v0.17.0

Also add a test to make sure legal comments are preserved in JS bundles.

Closes #10536

3 years agoUpdate README.md
Bjørn Erik Pedersen [Mon, 9 Jan 2023 13:13:30 +0000 (14:13 +0100)]
Update README.md

3 years agoresource: Fix Go Doc vs .Data.Integrity
Bjørn Erik Pedersen [Sat, 7 Jan 2023 09:58:34 +0000 (10:58 +0100)]
resource: Fix Go Doc vs .Data.Integrity

3 years agoMisc doc, code refactoring to improve documentation
Bjørn Erik Pedersen [Fri, 30 Dec 2022 08:20:58 +0000 (09:20 +0100)]
Misc doc, code refactoring to improve documentation

3 years agoMake readFile return nil when file not found (note)
Bjørn Erik Pedersen [Fri, 30 Dec 2022 10:10:49 +0000 (11:10 +0100)]
Make readFile return nil when file not found (note)

Fixes #9620

3 years agoRemove reference to Goreleaser in code comment
Omar Kohl [Tue, 3 Jan 2023 19:09:03 +0000 (20:09 +0100)]
Remove reference to Goreleaser in code comment

Hugo no longer uses the Goreleaser tool.

3 years agotpl/compare: Sort special float values as string
acclassic [Mon, 2 Jan 2023 16:35:08 +0000 (17:35 +0100)]
tpl/compare: Sort special float values as string

When sorting strings a worng order is returned. This happens because the strings are first converted
to floating values to check whether or not they should be sorted as
floating values. When an error is returned the strings will be
handled as string literals.
No error will be returned when parsing Inf, Infinity or NaN (case insensitive) because they
will be coverted to special floating point values and therefore are
legal float values.
Now we check if the returned converted values are special floating
values and treat them as string literals.

Fixes #10389

3 years agotpl/diagrams: Move Goat to its own file
Bjørn Erik Pedersen [Sun, 25 Dec 2022 13:02:22 +0000 (14:02 +0100)]
tpl/diagrams: Move Goat to its own file

3 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Sat, 24 Dec 2022 14:53:27 +0000 (15:53 +0100)]
Update CONTRIBUTING.md

3 years agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Sat, 24 Dec 2022 14:49:00 +0000 (15:49 +0100)]
Update CONTRIBUTING.md

3 years agoUpdate README.md
Bjørn Erik Pedersen [Sat, 24 Dec 2022 14:48:45 +0000 (15:48 +0100)]
Update README.md

3 years agoreleaser: Prepare repository for 0.110.0-DEV
hugoreleaser [Fri, 23 Dec 2022 10:50:52 +0000 (10:50 +0000)]
releaser: Prepare repository for 0.110.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.109.0
hugoreleaser [Fri, 23 Dec 2022 10:38:11 +0000 (10:38 +0000)]
releaser: Bump versions for release of 0.109.0

[ci skip]

3 years agoAdjust "you need the extended version" error message
Bjørn Erik Pedersen [Fri, 23 Dec 2022 09:33:49 +0000 (10:33 +0100)]
Adjust "you need the extended version" error message

3 years agodocs: Regen docs helper JSON
Bjørn Erik Pedersen [Fri, 23 Dec 2022 09:15:48 +0000 (10:15 +0100)]
docs: Regen docs helper JSON

3 years agoresource/page: Slight adjustment of Page.Ancestors
Bjørn Erik Pedersen [Fri, 23 Dec 2022 08:13:19 +0000 (09:13 +0100)]
resource/page: Slight adjustment of Page.Ancestors

Fixes #10567

3 years agoresource/page: Add Page.Ancestors
Septs [Wed, 30 Nov 2022 04:02:57 +0000 (12:02 +0800)]
resource/page: Add Page.Ancestors

Fixes #10567

3 years agobuild(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0
dependabot[bot] [Wed, 7 Dec 2022 08:01:50 +0000 (08:01 +0000)]
build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoAnnotate test assertions
Joe Mooring [Thu, 22 Dec 2022 16:39:42 +0000 (08:39 -0800)]
Annotate test assertions

3 years agohugolib: Exclude non-linkable pages from translations map
Joe Mooring [Thu, 22 Dec 2022 16:19:24 +0000 (08:19 -0800)]
hugolib: Exclude non-linkable pages from translations map

Fixes #9073

3 years agoAdd HUGO_PUBLISHDIR to the Node environment
Bjørn Erik Pedersen [Thu, 22 Dec 2022 08:43:53 +0000 (09:43 +0100)]
Add HUGO_PUBLISHDIR to the Node environment

So you can do  `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.

Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.

If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:

```
hugo server --renderToDisk
hugo server --renderStaticToDisk
```

Fixes #10554

3 years agoRevert "tpl/tplimpl: Use https in sitemap templates"
Joe Mooring [Thu, 22 Dec 2022 01:42:11 +0000 (17:42 -0800)]
Revert "tpl/tplimpl: Use https in sitemap templates"

This reverts commit 3fd0b78498597ceb343b7fda2e9b652f3e957478.

3 years agotpl: Improve template funcs GoDoc
Bjørn Erik Pedersen [Wed, 21 Dec 2022 12:11:08 +0000 (13:11 +0100)]
tpl: Improve template funcs GoDoc

3 years agotpl/resources: Fix data race in ToCSS
Bjørn Erik Pedersen [Wed, 21 Dec 2022 10:19:38 +0000 (11:19 +0100)]
tpl/resources: Fix data race in ToCSS

Fixes #10542

3 years agotocss: Add some more test cases
Bjørn Erik Pedersen [Wed, 21 Dec 2022 08:17:51 +0000 (09:17 +0100)]
tocss: Add some more test cases

See #10555

3 years agotocss: Fix unquote case with double quotes
Septs [Wed, 21 Dec 2022 02:24:13 +0000 (10:24 +0800)]
tocss: Fix unquote case with double quotes

See #10555

3 years agoAllow "fast render mode" even if --disableLiveReload is set
Bjørn Erik Pedersen [Wed, 21 Dec 2022 10:02:21 +0000 (11:02 +0100)]
Allow "fast render mode" even if --disableLiveReload is set

Fixes #10561

3 years agotocss: Add vars option
Bjørn Erik Pedersen [Mon, 19 Dec 2022 17:49:02 +0000 (18:49 +0100)]
tocss: Add vars option

This commit adds a new `vars` option to both the Sass transpilers (Dart Sass and Libsass).

This means that you can pass a map with key/value pairs to the transpiler:

```handlebars
{{ $vars := dict "$color1" "blue" "$color2" "green" "$font_size" "24px" }}
{{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }}
{{ $r := resources.Get "scss/main.scss" |  toCSS $cssOpts }}
```

And the the variables will be available in the `hugo:vars` namespace. Example usage for Dart Sass:

```scss
@use "hugo:vars" as v;

p {
    color: v.$color1;
    font-size: v.$font_size;
}
```

Note that Libsass does not support the `use` keyword, so you need to `import` them as global variables:

```scss
@import "hugo:vars";

p {
    color: $color1;
    font-size: $font_size;
}
```

Hugo will:

* Add a missing leading `$` for the variable names if needed.
* Wrap the values in `unquote('VALUE')` (Sass built-in) to get proper handling of identifiers vs other strings.

This means that you can pull variables directly from e.g. the site config:

```toml
[params]
[params.sassvars]
color1 = "blue"
color2 = "green"
font_size = "24px"
image = "images/hero.jpg"
```

```handlebars
{{ $vars := site.Params.sassvars}}
{{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }}
{{ $r := resources.Get "scss/main.scss" |  toCSS $cssOpts }}
```

Fixes #10555

3 years agoSquashed 'docs/' changes from 2201ac0e5..2c0125b52
Bjørn Erik Pedersen [Tue, 20 Dec 2022 10:04:41 +0000 (11:04 +0100)]
Squashed 'docs/' changes from 2201ac0e5..2c0125b52

2c0125b52 Remove .Site.Author
2cf8841b3 Update partialCached.md (#1924)
385487191 Update data-templates.md (#1926)
ce207e141 Remove redundant markdown and fix a few typos (#1936)
3687c2953 Make heading id linkable, take 2
45c79bea7 Make heading id linkable
b22079344 Delete duplicates the lines 557-569 and 570-582. (#1934)
0a90dc122 Rework the taxonomy variables page (#1935)
7f8979c50 Update theme
26e682a3a Update multilingual.md
d40e7693f Update postcss.md
375d75c01 Update postcss npm instructions (#1931)
63020094a Emphasize Window shell selection (#1930)
56824be2c Update configuration.md
b7b8f16b3 Docu 'Theme components': minor fix (#1929)
09dc81a05 Remove Docker from BSD page (#1927)
205fea204 netlify: Hugo 0.108.0
6abe49c28 Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
12b59a4c5 docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
ba07bd970 dartsass: Add sourceMapIncludeSources option

git-subtree-dir: docs
git-subtree-split: 2c0125b5290494d49334606c451446ebd9df3c21

3 years agoMerge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
Bjørn Erik Pedersen [Tue, 20 Dec 2022 10:04:41 +0000 (11:04 +0100)]
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'

3 years agomodules: Improve "module workspace" not found error
Bjørn Erik Pedersen [Tue, 20 Dec 2022 08:06:38 +0000 (09:06 +0100)]
modules: Improve "module workspace" not found error

3 years agomodules: Adjust watch logic vs workspace use definitions
Bjørn Erik Pedersen [Mon, 19 Dec 2022 16:49:45 +0000 (17:49 +0100)]
modules: Adjust watch logic vs workspace use definitions

3 years agoAdd any configured Go Workspace file to the config watcher
Bjørn Erik Pedersen [Mon, 19 Dec 2022 14:50:53 +0000 (15:50 +0100)]
Add any configured Go Workspace file to the config watcher

Fixes #10556

3 years agomodules: Make the module.workspace=off as default (note)
Bjørn Erik Pedersen [Mon, 19 Dec 2022 14:40:47 +0000 (15:40 +0100)]
modules: Make the module.workspace=off as default (note)

Also, resolve any workspace file relative to the workingDir.

Fixes #10553

3 years agorelease: Add a note section in release notes
Bjørn Erik Pedersen [Mon, 19 Dec 2022 12:13:38 +0000 (13:13 +0100)]
release: Add a note section in release notes

3 years agohelpers: Allow at signs in UnicodeSanitize (note)
Joe Mooring [Mon, 19 Dec 2022 08:58:56 +0000 (00:58 -0800)]
helpers: Allow at signs in UnicodeSanitize (note)

Closes #10548

3 years agoparser/metadecoders: Remove superflous cast in test
Bjørn Erik Pedersen [Wed, 14 Dec 2022 19:10:17 +0000 (20:10 +0100)]
parser/metadecoders: Remove superflous cast in test

3 years agoparser/metadecoders: Simplify nil check in Unmarshal
Bjørn Erik Pedersen [Wed, 14 Dec 2022 14:19:04 +0000 (15:19 +0100)]
parser/metadecoders: Simplify nil check in Unmarshal

3 years agoparser/metadecoders: Add empty /data JSON file as empty map
AcClassic [Mon, 12 Dec 2022 17:12:46 +0000 (18:12 +0100)]
parser/metadecoders: Add empty /data JSON file as empty map

When fetching JSON files from the /data folder that are empty they will
be added as empty map[string]any. This makes sure that no empty JSON
file causes the site to crash because of a failed unmarshal. This
happens because empty is not a valid JSON string. It is therefore
important to check the lenght of the data before passing it to the JSON
unmarshal function.

Fixes #8601

3 years agoAlso consider wrapped errors when checking for file IsNotExist errors
Bjørn Erik Pedersen [Wed, 14 Dec 2022 11:20:13 +0000 (12:20 +0100)]
Also consider wrapped errors when checking for file IsNotExist errors

Fixes #10534

3 years agotpl/openapi3: Wrap *kopenapi3.T
Bjørn Erik Pedersen [Tue, 13 Dec 2022 10:11:14 +0000 (11:11 +0100)]
tpl/openapi3: Wrap *kopenapi3.T

To make it easier to document.

3 years agoresources/js: Fix some import discrepancies between Hugo and ESBuild
Bjørn Erik Pedersen [Tue, 13 Dec 2022 13:58:55 +0000 (14:58 +0100)]
resources/js: Fix some import discrepancies between Hugo and ESBuild

This fixes the cases where

```js
import 'imp2/index.js';
import 'imp3/foo.js';
```

And these files lives in `assets` as:

```
imp2/index.ts
imp3/foo.ts
```

Fixes #10527

3 years agogithub: Update to Dart Sass 1.56.2
Bjørn Erik Pedersen [Tue, 13 Dec 2022 15:09:48 +0000 (16:09 +0100)]
github: Update to Dart Sass 1.56.2

3 years agogithub: Use ruby/setup-ruby
Bjørn Erik Pedersen [Sun, 11 Dec 2022 17:56:01 +0000 (18:56 +0100)]
github: Use ruby/setup-ruby

Closes #10517

3 years agotpl/tplimpl: Use https in sitemap templates
Joe Mooring [Fri, 9 Dec 2022 23:29:10 +0000 (15:29 -0800)]
tpl/tplimpl: Use https in sitemap templates

Closes #10515

3 years agoparser/metadecoders: Fix spelling
Francesco La Camera [Sat, 10 Dec 2022 18:37:47 +0000 (19:37 +0100)]
parser/metadecoders: Fix spelling

3 years agoreleaser: Prepare repository for 0.109.0-DEV
hugoreleaser [Tue, 6 Dec 2022 13:50:51 +0000 (13:50 +0000)]
releaser: Prepare repository for 0.109.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.108.0
hugoreleaser [Tue, 6 Dec 2022 13:37:56 +0000 (13:37 +0000)]
releaser: Bump versions for release of 0.108.0

[ci skip]

3 years agoMake the hugo env non verbose output slightly more verbose
Bjørn Erik Pedersen [Tue, 6 Dec 2022 11:33:25 +0000 (12:33 +0100)]
Make the hugo env non verbose output slightly more verbose

This is how it may look like with a extended build:

```
hugo v0.107.0-6445b1e9ff963b07c55d9d69cb9abef8ef21fc5d+extended darwin/arm64 BuildDate=2022-12-06T11:21:50Z
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.19.3"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
```

3 years agoAdd dart-sass-embedded version info to hugo env -v
Bjørn Erik Pedersen [Tue, 6 Dec 2022 11:09:41 +0000 (12:09 +0100)]
Add dart-sass-embedded version info to hugo env -v

```
~ ❯❯❯ hugo env -v | grep dart
github.com/bep/godartsass="v0.16.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
```

3 years agodeps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0
Bjørn Erik Pedersen [Tue, 6 Dec 2022 11:03:08 +0000 (12:03 +0100)]
deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0

3 years agotpl/embedded: Make Open Graph's series optional
Razon Yang [Tue, 6 Dec 2022 09:48:34 +0000 (17:48 +0800)]
tpl/embedded: Make Open Graph's series optional

3 years agoSquashed 'docs/' changes from 4c1309cdf..2201ac0e5
Bjørn Erik Pedersen [Tue, 6 Dec 2022 09:42:36 +0000 (10:42 +0100)]
Squashed 'docs/' changes from 4c1309cdf..2201ac0e5

2201ac0e5 Update theme

git-subtree-dir: docs
git-subtree-split: 2201ac0e5fa47400ecd182e28af823e0f03ed05b

3 years agoMerge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
Bjørn Erik Pedersen [Tue, 6 Dec 2022 09:42:36 +0000 (10:42 +0100)]
Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'

3 years agocommon/hugio: Fix multiWriteCloser.Close
Bjørn Erik Pedersen [Tue, 6 Dec 2022 09:32:33 +0000 (10:32 +0100)]
common/hugio: Fix multiWriteCloser.Close

Fixes #10505

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.109.0 to 0.110.0
dependabot[bot] [Wed, 30 Nov 2022 08:01:38 +0000 (08:01 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.109.0 to 0.110.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.109.0 to 0.110.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.109.0...v0.110.0)

---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agodocs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
Bjørn Erik Pedersen [Mon, 5 Dec 2022 15:50:47 +0000 (16:50 +0100)]
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.

See #10492

3 years agodartsass: Add sourceMapIncludeSources option
Bjørn Erik Pedersen [Fri, 2 Dec 2022 08:26:38 +0000 (09:26 +0100)]
dartsass: Add sourceMapIncludeSources option

3 years agogithub: Update Dart Sass Embedded to 1.56.1
Bjørn Erik Pedersen [Fri, 2 Dec 2022 08:18:47 +0000 (09:18 +0100)]
github: Update Dart Sass Embedded to 1.56.1

3 years agomarkup/goldmark: Add removeSurroundingParagraph for Markdown images
Bjørn Erik Pedersen [Sat, 3 Dec 2022 11:33:48 +0000 (12:33 +0100)]
markup/goldmark: Add removeSurroundingParagraph for Markdown images

* Removes any surrounding paragraph nodes
* And transfers any attributes from the surrounding paragraph down to the image node
* Adds IsBlock and Ordinal (zero based) field to the image context passed to the image render hooks

IsBlock is set to true if `wrapStandAloneImageWithinParagraph = false` and  the image's parent node has only one child.

Closes #8362
Fixes #10492
Fixes #10494
Fixes #10501

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.15.16 to 0.15.18
dependabot[bot] [Mon, 5 Dec 2022 08:01:42 +0000 (08:01 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.16 to 0.15.18

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.16 to 0.15.18.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.15.16...v0.15.18)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump golang.org/x/text from 0.4.0 to 0.5.0
dependabot[bot] [Mon, 5 Dec 2022 08:01:33 +0000 (08:01 +0000)]
build(deps): bump golang.org/x/text from 0.4.0 to 0.5.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/evanw/esbuild from 0.15.15 to 0.15.16
dependabot[bot] [Mon, 28 Nov 2022 08:01:38 +0000 (08:01 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.15 to 0.15.16

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.15 to 0.15.16.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.15.15...v0.15.16)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agotpl/tplimpl: Allow alternate comment syntax
Joe Mooring [Sun, 4 Dec 2022 01:06:56 +0000 (17:06 -0800)]
tpl/tplimpl: Allow alternate comment syntax

Allow alternate comment syntax before block definitions:

{{/* foo */}}
{{- /* foo */}}
{{- /* foo */ -}}

Fixes #10495

3 years agoresources: Increase timeout for http.Client
Anton Sattarov [Sat, 3 Dec 2022 14:47:47 +0000 (17:47 +0300)]
resources: Increase timeout for http.Client

Increase timeout for http.Client in resources.GetRemote  from 10 second to 1 minute

Fixes #10478

3 years agotpl/collections: Fix some index cases where the indices given is a slice and be more...
Bjørn Erik Pedersen [Fri, 2 Dec 2022 09:37:19 +0000 (10:37 +0100)]
tpl/collections: Fix some index cases where the indices given is a slice and be more lenient with nil inputs

See adjusted tests for detail.

Fixes #10489

3 years agotpl: Misco GoDoc improvements
Bjørn Erik Pedersen [Tue, 29 Nov 2022 10:38:21 +0000 (11:38 +0100)]
tpl: Misco GoDoc improvements

3 years agoconfig/security: Add CI env var to whitelist
septs [Fri, 2 Dec 2022 11:13:34 +0000 (19:13 +0800)]
config/security: Add CI env var to whitelist

3 years agoSquashed 'docs/' changes from 32cb8785e..4c1309cdf
Bjørn Erik Pedersen [Fri, 2 Dec 2022 08:19:23 +0000 (09:19 +0100)]
Squashed 'docs/' changes from 32cb8785e..4c1309cdf

4c1309cdf Fix broken link to front matter page (#1923)
8181fff20 Add footnote to Quick Start guide for Win users (#1922)
4fd934f61 Fix abslangurl.md (#1919)
bf2c45617 Quick start guide: fix broken links (#1915)
201b568df Update theme
874db199d Hide the news stripe on front page for now
aaf59e3e2 netlify: Hugo 0.107.0
79654c301 Merge branch 'tempv107'
8345e0347 docs: Regen docs helper
b5b4f15f9 Add assets directory to directory structure diagram (#1917)
76dd3a82a Follow-up: improve function signatures (#1914) (#1916)
656dc72ba Improving function signatures (#1914)
b715e8407 Explain how to create multilingual content (#1912)
8500ee417 Fix typo in Quick Start guide
ce60bb572 Add docu for undocumented functions (#1907)
372bf5e88 Improve Quick Start tutorial
71e81ec5f Remove asciicast from site
1e56c653f Update hosting-on-cloudflare-pages.md (#1903)
1686f60b1 Adding documentation page for function 'strings.FirstUpper' (#1901)
d533f7c9c Fixing typos (#1900)
2563eee45 Update multilingual.md (#1899)
2173ed799 Update theme
5591b8875 Update urls.md (#1897)
4a88890b5 netlify: Hugo 0.106.0
512879fdd docs: Regen CLI docs
f74b1d87d docs: Regenerate docs helper
9feacb48f Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'

git-subtree-dir: docs
git-subtree-split: 4c1309cdfe9858434684352f9d544bf0c5c9d646

3 years agoMerge commit 'da16527896d3087585c5e758083ea498dcabc2c3'
Bjørn Erik Pedersen [Fri, 2 Dec 2022 08:19:23 +0000 (09:19 +0100)]
Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'

3 years agodeps: Upgrade github.com/bep/godartsass v0.14.0 => v0.15.0
Bjørn Erik Pedersen [Thu, 1 Dec 2022 08:44:55 +0000 (09:44 +0100)]
deps: Upgrade github.com/bep/godartsass v0.14.0 => v0.15.0

3 years agotpl: Use consistent delimiter spacing in examples
Joe Mooring [Fri, 25 Nov 2022 05:24:18 +0000 (21:24 -0800)]
tpl: Use consistent delimiter spacing in examples

3 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Thu, 24 Nov 2022 14:17:22 +0000 (15:17 +0100)]
docs: Regen docs helper

3 years agoreleaser: Bump versions for release of 0.107.0
hugoreleaser [Thu, 24 Nov 2022 13:59:45 +0000 (13:59 +0000)]
releaser: Bump versions for release of 0.107.0

[ci skip]

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.108.0 to 0.109.0
dependabot[bot] [Wed, 23 Nov 2022 08:01:49 +0000 (08:01 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.108.0 to 0.109.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.108.0 to 0.109.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.108.0...v0.109.0)

---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/evanw/esbuild from 0.15.14 to 0.15.15
dependabot[bot] [Mon, 21 Nov 2022 08:04:17 +0000 (08:04 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.15.14 to 0.15.15

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.14 to 0.15.15.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.15.14...v0.15.15)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoAdd a cache for lexers.Get
Bjørn Erik Pedersen [Thu, 24 Nov 2022 11:13:19 +0000 (12:13 +0100)]
Add a cache for lexers.Get

```
name                            old time/op    new time/op    delta
Codeblocks/Default-10              152ms ±11%      12ms ± 1%  -92.44%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10     142ms ± 0%       7ms ± 0%  -95.36%  (p=0.029 n=4+4)

name                            old alloc/op   new alloc/op   delta
Codeblocks/Default-10             11.9MB ± 0%    11.7MB ± 0%   -1.59%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10    4.62MB ± 1%    4.43MB ± 0%   -4.08%  (p=0.029 n=4+4)

name                            old allocs/op  new allocs/op  delta
Codeblocks/Default-10               209k ± 0%      209k ± 0%   -0.03%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10     68.4k ± 0%     68.3k ± 0%   -0.06%  (p=0.029 n=4+4)

```

3 years agomarkup/goldmark: Improve benchmark
Bjørn Erik Pedersen [Thu, 24 Nov 2022 10:51:01 +0000 (11:51 +0100)]
markup/goldmark: Improve benchmark

3 years agocommands: Create assets directory with new site
Joe Mooring [Sun, 20 Nov 2022 16:10:39 +0000 (08:10 -0800)]
commands: Create assets directory with new site

Closes #10460