Age | Commit message (Collapse) | Author |
|
variants
See #8363
|
|
Fixes #5924
|
|
Fixes #8363
|
|
So we can use it and output.Format as map key etc.
This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg.
This means that there are no Suffix or FullSuffix on media.Type anymore.
Fixes #8317
Fixes #8324
|
|
|
|
|
|
The root cause of issue #8079 was a non-breaking space (U+0160).
`unicode.IsPrint` only allows the ASCII space (U+0020). Be more lenient
by using `unicode.IsGraphic` instead.
Fixes #8079
|
|
|
|
Fixes #8189
|
|
Fixes #8164
|
|
This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another.
Fixes #8165
|
|
Fixes #8162
|
|
Fixes #8132
|
|
This enbles people to build their sites/themes on servers where the Dart Sass binary is not available.
|
|
|
|
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021.
Fixes #7380
Fixes #8102
|
|
Previously, the method only worked for date strings but not (for
instance) full RFC3339 datetime strings.
|
|
|
|
The one exception being for the Page, which does not have a MIME type, in which you will get the value `page`.
Fixes #8052
|
|
This allows for constructs ala:
```
{{ $overlay := $img.Filter (images.Overlay $logo 50 50 )}}
```
Or:
```
{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
{{ $overlay := $img | images.Filter $logoFilter }}
```
Which will overlay the logo in the top left corner (x=50, y=50) of `$img`.
Fixes #8057
Fixes #4595
Updates #6731
|
|
|
|
|
|
See https://github.com/mvdan/gofumpt
|
|
Closes #7986
|
|
related #6007 (already closed)
|
|
This commit fixes some issues where modules in /assets share the same name as in node_modules.
This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option.
Fixes #7948
|
|
It was merged by accident and the implementation does not look correct.
Fixes #7932
|
|
* Fix resolve of package.json deps in submodules
* Fix directory logic for writing assets/jsconfig.json
Fixes #7924
Fixes #7923
|
|
Fixes #7865
|
|
Fixes #7816
Fixes #7777
Fixes #7916
|
|
Updates #7777
Added support to allow SourceMap files to be external to the build.
In addition added more information when the js compilation has an error.
Correctly append sourceMappingURL to output file.
Fix merge conflict.
|
|
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing).
Fixes #7866
|
|
Fixes #7804
|
|
Allowing links on pages without rendering them.
Fixes #7783
|
|
Fixes #7782
|
|
Added a Vimeo EnableDNT privacy option to the Hugo config. This will enable the Vimeo 'Do Not Track' flag when either Vimeo shortcode tempalte options are used. When enabled, it will force the Vimeo player to be blocked from tracking any session data, including all cookies and stats.
Fixes #7700
|
|
Fixes #7715
|
|
E.g. PNG files.
Fixes #7688
|
|
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into:
```
assets/_jsconfig
´``
These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename.
But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific.
This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above.
Fixes #7644
Fixes #7656
Fixes #7675
|
|
* Fix change detection when .GetPage/site.GetPage is used from shortcode
* Fix stale content for GetPage results with short name lookups on server reloads
Fixes #7623
Fixes #7624
Fixes #7625
|
|
Added a flag to allow turning on sourcemap in ESBuild. The current support
can only support inline or true as value for sourcemap. This is because
the way ESBuild is invoked it doesn't have a separate output path
to write the mapfile external to the asset pipeline. Add disable for "" and "0".
Add test script and make sure mage check passes.
Fixes #7607
|
|
Fixes #7584
|
|
Fixes #7503
|
|
Mostly to minify cache hash breakage.
Updates #7499
|
|
|
|
This is needed to import `react` as a library, e.g.:
```
{{ $jsx := resources.Get "index.jsx" }}
{{ $options := dict "defines" (dict "process.env.NODE_ENV" "\"development\"") }}
{{ $js := $jsx | js.Build $options }}
```
Fixes #7489
|
|
See #732
|
|
Fixes #7321
|
|
Fixes #7442
Fixes #7443
|
|
Fixes #3983
|