Karl Keefer
aca440052e
rm Forestry - facing end-of-life shortly ( #1944 )
2022-12-24 22:56:26 +09:00
Bjørn Erik Pedersen
af0014e146
Update scss-sass.md
2022-12-23 12:20:04 +01:00
Bjørn Erik Pedersen
1c43bbbc91
Merge branch 'docs/goworkspace'
2022-12-23 12:12:44 +01:00
Bjørn Erik Pedersen
d034175ca6
netlify: Hugo 0.109.0
2022-12-23 12:12:19 +01:00
Bjørn Erik Pedersen
d3a6a5c3fa
Merge branch 'tempv0.109.0'
2022-12-23 12:11:36 +01:00
hugoreleaser
e127d3e5c6
releaser: Prepare repository for 0.110.0-DEV
...
[ci skip]
2022-12-23 10:50:52 +00:00
hugoreleaser
47b12b83e6
releaser: Bump versions for release of 0.109.0
...
[ci skip]
2022-12-23 10:38:11 +00:00
Bjørn Erik Pedersen
180dfeba03
Adjust "you need the extended version" error message
2022-12-23 10:33:49 +01:00
Bjørn Erik Pedersen
e033dbeadc
docs: Regen docs helper JSON
2022-12-23 10:15:48 +01:00
Bjørn Erik Pedersen
10bb29d7f3
docs: Regen docs helper JSON
2022-12-23 10:15:48 +01:00
Septs
452bf675ce
resource/page: Add Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
Bjørn Erik Pedersen
eb0c8f9d02
resource/page: Slight adjustment of Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
Septs
3a216186b2
resource/page: Add Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
Bjørn Erik Pedersen
12edd7363c
Add some docs for workspaces
2022-12-23 09:31:36 +01:00
dependabot[bot]
7874b96815
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 >
2022-12-23 09:26:10 +01:00
Joe Mooring
71832328f8
Annotate test assertions
2022-12-22 18:53:12 +01:00
Joe Mooring
37ab1cf12a
hugolib: Exclude non-linkable pages from translations map
...
Fixes #9073
2022-12-22 18:53:12 +01:00
Bjørn Erik Pedersen
8f0fcba6bd
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
2022-12-22 12:43:50 +01:00
Bjørn Erik Pedersen
59af05cabc
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
2022-12-22 12:43:50 +01:00
Joe Mooring
4989da653d
Revert "tpl/tplimpl: Use https in sitemap templates"
...
This reverts commit 3fd0b78498 .
2022-12-22 08:53:58 +01:00
Bjørn Erik Pedersen
cd1ed563a8
tpl: Improve template funcs GoDoc
2022-12-21 15:33:02 +01:00
Bjørn Erik Pedersen
aa2c724195
tpl/resources: Fix data race in ToCSS
...
Fixes #10542
2022-12-21 12:26:42 +01:00
Bjørn Erik Pedersen
effa6a4226
tocss: Add some more test cases
...
See #10555
2022-12-21 11:21:07 +01:00
Septs
5d5f0a2371
tocss: Fix unquote case with double quotes
...
See #10555
2022-12-21 11:21:07 +01:00
Bjørn Erik Pedersen
d20d2651ea
Allow "fast render mode" even if --disableLiveReload is set
...
Fixes #10561
2022-12-21 11:02:21 +01:00
Bjørn Erik Pedersen
41a080b268
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
2022-12-20 19:36:30 +01:00
Bjørn Erik Pedersen
4e66d98adf
Update theme
2022-12-20 17:09:22 +01:00
Bjørn Erik Pedersen
808aee6f64
config: Update to ga v4
2022-12-20 17:09:22 +01:00
Bjørn Erik Pedersen
1de2bc5a90
config: Update to ga v4
2022-12-20 17:03:25 +01:00
Bjørn Erik Pedersen
41bc6f702a
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: 2c0125b529
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
ddb5fd6b04
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
9a215d6950
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
eda1e720cd
modules: Improve "module workspace" not found error
2022-12-20 09:06:38 +01:00
Bjørn Erik Pedersen
2c0125b529
Remove .Site.Author
...
I will eventually deprecate and remove this.
2022-12-19 21:48:25 +01:00
Bjørn Erik Pedersen
54c54bf765
modules: Adjust watch logic vs workspace use definitions
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
330fa89411
modules: Adjust watch logic vs workspace use definitions
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
6db527483d
Add any configured Go Workspace file to the config watcher
...
Fixes #10556
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
0d4b17d4c0
modules: Make the module.workspace=off as default (note)
...
Also, resolve any workspace file relative to the workingDir.
Fixes #10553
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
3afaca7584
release: Add a note section in release notes
2022-12-19 13:13:38 +01:00
Joe Mooring
2d217cba51
helpers: Allow at signs in UnicodeSanitize (note)
...
Closes #10548
2022-12-19 09:58:56 +01:00
Ivan Duka
2cf8841b35
Update partialCached.md ( #1924 )
...
* Update partialCached.md
Clarifying mechanics of `partialCached`
* incorporating jmooring's feedback
2022-12-18 21:06:26 -08:00
385487191b
Update data-templates.md ( #1926 )
...
Co-authored-by: jafaican <118852541+jafaican@users.noreply.github.com >
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2022-12-18 17:56:11 -08:00
Joe Mooring
ce207e1416
Remove redundant markdown and fix a few typos ( #1936 )
2022-12-18 16:54:18 -08:00
Joe Mooring
3687c29534
Make heading id linkable, take 2
2022-12-18 16:20:28 -08:00
Joe Mooring
45c79bea70
Make heading id linkable
2022-12-18 16:16:11 -08:00
TokiNoKawa
b220793447
Delete duplicates the lines 557-569 and 570-582. ( #1934 )
...
`## 404 Server Error Page" is duplicated between lines 557-569 and 570-582.
So, lines 570-582 should be deleted.
2022-12-18 16:12:52 -08:00
Joe Mooring
0a90dc1224
Rework the taxonomy variables page ( #1935 )
...
Closes #1933
2022-12-18 16:03:49 -08:00
Bjørn Erik Pedersen
7f8979c50c
Update theme
2022-12-17 13:25:31 +01:00
Joe Mooring
26e682a3aa
Update multilingual.md
...
Remove outdated admonition.
2022-12-16 07:16:20 -08:00
Bjørn Erik Pedersen
17055d1fa7
parser/metadecoders: Remove superflous cast in test
2022-12-14 20:10:17 +01:00