Age | Commit message (Collapse) | Author |
|
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
|
|
|
|
Just to confirm/document the function signature.
|
|
|
|
|
|
* Fix: updated date logic in opengraph template
* Updated date logic in schema template
* Reformatted opengraph and schema
* Wrapped PublishDate and Lastmod in with
|
|
Keep this as a separate commit so we can reapply it if needed.
Fixes #7293
|
|
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.
Updates #7293
|
|
|
|
|
|
Fixes #7912
|
|
|
|
|
|
|
|
Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.
|
|
When tracking for cache hints, track the same template name as the call
to MeasureSince in Execute. When referencing a partial "foo", the value
of `n` does not match `templ.Name()` (`partials/foo` versus
`partials/foo.html`). This was causing hints to go untracked since
there was no existing metric to append the hint to.
Fixes #8125
|
|
Most other substr implementations don't error out in out-of-bounds cases
but simply return an empty string (or a value that's printed as an empty
string). We'll follow their lead and not exit template execution. Allow
the user decide what to do with the empty result.
Fixes #8113
|
|
|
|
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
|
|
|
|
|
|
When inside front matter you specified series with spaces,
then the opengraph template wouldn't detect other articles,
because in `.Site.Taxonomies.series` they are stored by
urlized key.
Example:
```yaml
# in front matter
series:
- My Series
```
```gohtml
{{/* in a template */}}
{{- $series := index .Site.Taxonomies.series$name }}
{{/* was resolved to */}}
{{- $series := index {'my-series': ...} "MySeries" }}
```
|
|
|
|
Should make future fork synch easier.
|
|
See https://github.com/mvdan/gofumpt
|
|
|
|
When length parameter is zero, always return an empty string.
Updates #7993
|
|
Fix miscalculations when start is negative. Results should now match
PHP substr.
Fixes #7993
|
|
Closes #7970
|
|
|
|
|
|
Value.Type().Key() must only be called on map values.
Fixes #7899
|
|
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 #7523
|
|
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 #5242
|
|
|
|
* 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
|
|
Go stdlib doesn't contain a limited replace in the regexp package, but
we can accomplish the same thing with ReplaceAllStringFunc.
Fixes #7586
|
|
Fixes #7595
|
|
Updates #7586
|
|
We need to make a proper fix for this, but it is better with an error than just silently continue.
Fixes #7572
Updates #7528
|
|
The rss templates had some tab characters mixed in with the spaces.
Additionally there would end up being trailing whitespace in output
rss feeds, which looks red in git diff.
|
|
This reverts commit 2fa851e6500752c0cea1da5cfdfc6d99e0a81a71.
|
|
Closes #7523
|
|
Prior to this change, the offset indicator for dates with positive
offsets was rendered as + instead of +.
Fixes #7495
|
|
Mostly to minify cache hash breakage.
Updates #7499
|
|
From Hugo 0.74.0.
Fixes #7478
|