Bjørn Erik Pedersen
7285e74090
all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning
...
There are some breaking changes in this commit, see #11455 .
Closes #11455
Closes #11549
This fixes a set of bugs (see issue list) and it is also paying some technical debt accumulated over the years. We now build with Staticcheck enabled in the CI build.
The performance should be about the same as before for regular sized Hugo sites, but it should perform and scale much better to larger data sets, as objects that uses lots of memory (e.g. rendered Markdown, big JSON files read into maps with transform.Unmarshal etc.) will now get automatically garbage collected if needed. Performance on partial rebuilds when running the server in fast render mode should be the same, but the change detection should be much more accurate.
A list of the notable new features:
* A new dependency tracker that covers (almost) all of Hugo's API and is used to do fine grained partial rebuilds when running the server.
* A new and simpler tree document store which allows fast lookups and prefix-walking in all dimensions (e.g. language) concurrently.
* You can now configure an upper memory limit allowing for much larger data sets and/or running on lower specced PCs.
We have lifted the "no resources in sub folders" restriction for branch bundles (e.g. sections).
Memory Limit
* Hugos will, by default, set aside a quarter of the total system memory, but you can set this via the OS environment variable HUGO_MEMORYLIMIT (in gigabytes). This is backed by a partitioned LRU cache used throughout Hugo. A cache that gets dynamically resized in low memory situations, allowing Go's Garbage Collector to free the memory.
New Dependency Tracker: Hugo has had a rule based coarse grained approach to server rebuilds that has worked mostly pretty well, but there have been some surprises (e.g. stale content). This is now revamped with a new dependency tracker that can quickly calculate the delta given a changed resource (e.g. a content file, template, JS file etc.). This handles transitive relations, e.g. $page -> js.Build -> JS import, or $page1.Content -> render hook -> site.GetPage -> $page2.Title, or $page1.Content -> shortcode -> partial -> site.RegularPages -> $page2.Content -> shortcode ..., and should also handle changes to aggregated values (e.g. site.Lastmod) effectively.
This covers all of Hugo's API with 2 known exceptions (a list that may not be fully exhaustive):
Changes to files loaded with template func os.ReadFile may not be handled correctly. We recommend loading resources with resources.Get
Changes to Hugo objects (e.g. Page) passed in the template context to lang.Translate may not be detected correctly. We recommend having simple i18n templates without too much data context passed in other than simple types such as strings and numbers.
Note that the cachebuster configuration (when A changes then rebuild B) works well with the above, but we recommend that you revise that configuration, as it in most situations should not be needed. One example where it is still needed is with TailwindCSS and using changes to hugo_stats.json to trigger new CSS rebuilds.
Document Store: Previously, a little simplified, we split the document store (where we store pages and resources) in a tree per language. This worked pretty well, but the structure made some operations harder than they needed to be. We have now restructured it into one Radix tree for all languages. Internally the language is considered to be a dimension of that tree, and the tree can be viewed in all dimensions concurrently. This makes some operations re. language simpler (e.g. finding translations is just a slice range), but the idea is that it should also be relatively inexpensive to add more dimensions if needed (e.g. role).
Fixes #10169
Fixes #10364
Fixes #10482
Fixes #10630
Fixes #10656
Fixes #10694
Fixes #10918
Fixes #11262
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11853
Fixes #11860
Fixes #11883
Fixes #11904
Fixes #7388
Fixes #7425
Fixes #7436
Fixes #7544
Fixes #7882
Fixes #7960
Fixes #8255
Fixes #8307
Fixes #8863
Fixes #8927
Fixes #9192
Fixes #9324
2024-01-27 16:28:14 +01:00
Bjørn Erik Pedersen
5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
...
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```
Closes #11925
2024-01-27 10:48:57 +01:00
Bjørn Erik Pedersen
9b0050e9aa
Squashed 'docs/' content from commit 5c085a37b
...
git-subtree-dir: docs
git-subtree-split: 5c085a37b2
2024-01-27 10:48:33 +01:00
Bjørn Erik Pedersen
fc7de7136a
docs: Prepare for new sub tree
...
See #11925
2024-01-27 10:47:28 +01:00
hugoreleaser
1083bf7c08
releaser: Prepare repository for 0.123.0-DEV
...
[ci skip]
2024-01-26 16:06:12 +00:00
hugoreleaser
b9a03bd59d
releaser: Bump versions for release of 0.122.0
...
[ci skip]
2024-01-26 15:54:24 +00:00
dependabot[bot]
e0021f4961
build(deps): bump golang.org/x/tools from 0.16.0 to 0.17.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.16.0...v0.17.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 >
2024-01-26 13:19:29 +01:00
dependabot[bot]
d25902c0d8
build(deps): bump github.com/rogpeppe/go-internal from 1.11.0 to 1.12.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.11.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 12:55:48 +01:00
Bjørn Erik Pedersen
50042ee1f4
docs: Regen docshelper
2024-01-26 08:23:37 +01:00
Bjørn Erik Pedersen
3758456b31
Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'
2024-01-26 08:22:42 +01:00
Bjørn Erik Pedersen
7125ad401a
Squashed 'docs/' changes from 4dd2d6415..3b1a8579d
...
3b1a8579d Update theme
b1f04fd47 params: Adjust the twitter handle
2c8ba029f Fix typo
4421e46ec Update Where.md
5f9fec6a5 Update glossary.md
fb16945cf collections.Where - Clarify description of "collection"
4d6d7018b Update Include.md - improve return statement example
037151073 Update IncludeCached - improve return statement example
b053fa09c Improve return types
f7d615267 Describe minimum required Windows version
e97762b2a Update front matter in math.Sub
9e4d03a79 Fix data.GetJSON examples
9029ee123 Update spellcheck GitHub Action
c852fe421 Add version verification step to quick start guide
8fafca49c Correct front matter example
b412fdf65 Fix closing tag in notes docs
9a64d9579 Add hreflang Tag to Translation Link example
2d2a82101 Fix inverted examples in Permalink and RelPermalink
ff3e67e3f Correct spelling
3904b72e3 Fix documentation contribution steps enumeration
348fd3c02 Fix some typos in the content summaries page
a5823459a Fix two links, one to bonsai.io and one to digital.gov
c36978686 Fix typo
0ee3ff44f Vendor theme
6b0a9b75d Fix typo
44e4cb5c6 Fix typos
815071742 Update min Go version to build from source
192d14df5 Fix typo
e4a18946e Miscellaneous corrections
f12b7b74e netlify: Hugo 0.121.2
97dbc1ea1 Merge branch 'tempv0.121.2'
dc1c0aeeb Add cache note to resources.Concat
a8d1a6020 Correct return type
eca22e97c Fix front matter
7de247a03 Correct return type
5058bc520 collections.Seq: Specify max slice size
e24d81a4b Fix typo on FAQ page
ff8cf5a88 Correct 'related' front matter values
88b21fae0 Adjust deprecation handling
f7e19a25b Update terminology on shortcode templates page
01e10942a Adjust formatting
6ed2e19c2 tpl/math: Add math.Rand template function
b494a8d8d Update js.md
6d78035f4 Add interval description to glossary (#2378 )
f9b612b64 Templates Lookup Order: Add missing parenthesis
741ab1bb2 Show vendorClosest in module default config
eb8cb878f Fix Babel headings
cdcdfc8e8 Change project name in Codeowners example
f31fe0d63 Update link to image filters
9dee1ee0e Update Solus installation instructions
716636fee Add TOC to collections.Sort
f7c64143c Update collections.Sort
4b8f6b991 Add id attributes to Scratch and Store methods
2a1adea79 Add id attributes to GitInfo, File, and Resources methods
b12d9cb8f Add Alpine Linux installation instructions
dfbebeec7 Change writeStats to buildStats
175b8aac8 resources/images: Create AutoOrient image filter
ba8e05c31 Update img shortcode
7fc15a6cc Fix default value of pluralizeListTitles
a0be4fd8a Add Comentario to available comment engines
71aa7d8ab Update GitInfo.md
348441491 EXIF: describe applicable image types
743497eda Disable TOC for lang.Translate
b3b1df75d Describe lang.Translate fallback behavior
a6d9c362c Categorize CLI commands to improve search results
08cc2da4b Document canonical config for enabling inline shortcodes
8945be9c6 Update description of the humanize ordinal conversion
b8b4ccb6f Fix grammatical error
f53f9f936 Fix description of strings.HasSuffix
cdbe19b5b Update Params.md
e00c4eea2 Reformat site config descriptions
6f50c0755 Enumerate root configuration keys
1f2e7b9b2 Use canonical key when documenting menu configs
7d5a13d8d Update images.Text filter
315d2f8c3 Add math.Counter example to warnf
8ed9cdaa9 Miscellaneous edits
2bda491eb Fix front matter example
5c5bbbe3a netlify: Bump to Hugo 0.121.1
ed08f5943 Update Gentoo installation instructions
e4eb48457 Miscellaneous edits
8c3700d12 netlify: Bump to Hugo 0.121.0
1bb5a377f Merge branch 'tempv0.121.0'
8cba89504 Improve where function
0dfc00b0f docs: Regen docshelper
028076a66 Fix link to Gentoo package
52d2db4ff Fix typo
120025c19 Improve Gentooo installation instructions
0c31a4b45 Update GitHub hosting workflow example
dee99c36a Defend against missing aliases in quick-reference shortcode
d305278f1 Add Gentoo installation instructions
be98a37e1 docs: Adjust last merge from docs repository
a703dab53 docs: Regen docs helper
2e9c3532f Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
f57fdb44b deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
50cad5e38 tpl/transform: Add transform.XMLEscape template function
git-subtree-dir: docs
git-subtree-split: 3b1a8579d2
2024-01-26 08:11:52 +01:00
Jeremy Kun
d0d2c6795e
markup/goldmark: Support passthrough extension
...
Fixes #10894
2024-01-26 08:11:35 +01:00
dependabot[bot]
2dd608378d
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.0 to 2.1.1
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-25 19:48:59 +01:00
dependabot[bot]
45f52be7f8
build(deps): bump github.com/evanw/esbuild from 0.19.8 to 0.19.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.8 to 0.19.12.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.8...v0.19.12 )
---
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 >
2024-01-25 19:48:32 +01:00
Daniel Terhorst-North
87bf2b9688
tpl/tplimpl: Fix incorrect lastBuildDate
...
Fixes #11600
Co-authored-by: Joe Mooring <joe@mooring.com >
2024-01-25 19:46:52 +01:00
Daniel Terhorst-North
f281ef8a4a
tpl: fix incorrect lastBuildDate
...
Set the `<lastBuildDate>` field to be the most recent Lastmod date
of all the posts in the current selection.
Fixes #11600
2024-01-25 19:46:52 +01:00
August Feng
46f618756f
parser/metadecoders: Accumulate org keywords into arrays
...
Closes #11743
2024-01-25 19:34:12 +01:00
James Tatum
8915343075
deps: Update github.com/tdewolff/minify/v2 v2.20.9 => v2.20.13
...
KeepConditionalComments was deprecated in the upstream library and replaced with KeepSpecialComments. This new option reflects that both conditional comments and Server Side Include comments can be optionally stripped by the minifier. As with KeepConditionalComments, the minifier is configured not to strip them by default.
2024-01-25 19:33:14 +01:00
Bjørn Erik Pedersen
a541e3b4d4
Upgrade to Go 1.21.6
...
Closes #11892
2024-01-16 10:49:03 +01:00
Joe Mooring
912c6576bb
parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal
...
If true, a quote may appear in an unquoted field and a non-doubled quote
may appear in a quoted field. It defaults to false.
Closes #11884
2024-01-16 09:26:44 +01:00
Joe Mooring
911bc60a7a
README: Update minimum Go version to 1.20
2024-01-06 05:31:49 -08:00
hugoreleaser
5ff6323320
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2024-01-05 12:34:12 +00:00
hugoreleaser
6d5b44305e
releaser: Bump versions for release of 0.121.2
...
[ci skip]
2024-01-05 12:21:15 +00:00
dependabot[bot]
1ccd3147a0
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-05 13:17:17 +01:00
Joe Mooring
e40b9fbbcf
tpl/math: Add math.Rand template function
...
Closes #11833
2023-12-29 19:37:27 +01:00
Bjørn Erik Pedersen
9cd8fbb332
Adjust site benchmark
2023-12-29 16:42:33 +01:00
Bjørn Erik Pedersen
abcc61002a
Simplify baseline benchmark
2023-12-29 15:56:02 +01:00
Joe Mooring
648d00c7d8
resources/images: Create AutoOrient image filter
...
Closes #11717
2023-12-20 14:18:24 +01:00
Bjørn Erik Pedersen
8adba648cc
all: Remove unused code
...
Using x/tools/cmd/deadcode
2023-12-18 19:51:26 +01:00
hugoreleaser
6f13430d4a
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2023-12-08 09:01:24 +00:00
hugoreleaser
00b46fed8e
releaser: Bump versions for release of 0.121.1
...
[ci skip]
2023-12-08 08:47:45 +00:00
Bjørn Erik Pedersen
eb9f1eb657
Upgrade to Go 1.21.5
...
Closes #11786
2023-12-07 12:40:10 +01:00
hugoreleaser
5186e762ac
releaser: Prepare repository for 0.122.0-DEV
...
[ci skip]
2023-12-05 15:36:07 +00:00
hugoreleaser
e321c3502a
releaser: Bump versions for release of 0.121.0
...
[ci skip]
2023-12-05 15:22:31 +00:00
Bjørn Erik Pedersen
255e0a9718
docs: Regen docshelper
2023-12-05 16:19:43 +01:00
dependabot[bot]
558f3258a7
build(deps): bump github.com/alecthomas/chroma/v2 from 2.11.1 to 2.12.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.11.1 to 2.12.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.11.1...v2.12.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-05 09:42:04 +01:00
Joe Mooring
6580cd30ad
docs: Adjust last merge from docs repository
2023-12-04 16:57:15 +01:00
Bjørn Erik Pedersen
7617de86cd
docs: Regen docs helper
2023-12-04 15:24:34 +01:00
Bjørn Erik Pedersen
d19ed4d4e6
Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
2023-12-04 15:24:01 +01:00
Bjørn Erik Pedersen
35dec7c96f
Squashed 'docs/' changes from 4d936aee6..4dd2d6415
...
4dd2d6415 Fix erroridf example
9ae8e9199 Clarify highlight options
f3943f9c8 Fix typo
b57ea5ac8 Add field to glossary of terms
3191e35b4 Clarify comment in the new-in shortcode
870c8d35c Correct description of Ref and RelRef page methods
c9df50e6e Specify encoding in description of crypto functions
749bb37e2 Add Ref, RelRef, and Site shortcode methods
994d4374b Update fmt functions
740f5ef96 Misc additions
77acdcdb6 Remove rssLimit from root config documentation
df84a1795 Document the openapi3.Unmarshal function
24236f57d Miscellaneous edits and corrections
41b54d421 Hide the "new in" button after some period of time
3c1ebac31 Update Ancestors.md
e699eb313 Add new-in tags to select functions and methods
5c41f0bf8 Clarify time.Format method
f7bd43ae1 Add link to built-in render hook for GoAT diagrams
06f9cd4c9 Document the diagrams.Goat function
5e432e12d Adjust quick reference weights
fc915efd6 Update FAQ
5bccf8b19 Use LinkTitle consistently in examples
36f207f3a Add page collection quick reference
699de883d Inlcude example of newScratch.Values
9bb7f8c78 Include RenderString example for emoji shortcodes
783fdd3ac Fix typo
26d5a4399 Fix typo
c7e86f0cf Fix typo
ad2a82fbd Clarify data type returned by partial and partialCached
1de5a52dd Miscellaneous corrections
3509e1b4d Update configuration-markup.md
8c6a9bf02 Clairfy figure shortcode output
c9d0dc8fb Update Markdownify.md
0c4bc1447 Update theme
0f0ab2ade Add methods deprecated in v0.120.0
e1c6ecd0f Miscellaneous edits
ec53b55b9 netlify: Hugo 0.120.4
23a1f3fd5 templates/internal.md: Correct GoogleAnalytics key name
6dcfa9a82 Update troubleshooting section
0c8857e8f Adjust code and code-toggle shortcodes
8820264d3 Reduce number of site audit warnings
526d06b90 Clarify hint option in image processing spec
310849daa Image Processing: Improve sentence and fix code sample
5bb67bfd4 Revert "Image Processing: Improve sentence and fix code sample" (#2318 )
77c926fde Image Processing: Improve sentence and fix code sample
52179fb18 Miscellaneous edits
f4e886715 Revert change to hugo.work
c410fefa8 Update theme
8b72dfedd Rework where function documentation
f35a7126f Minor edits to global page function
903b42ebc Cleanup shortcode calls
c9247e98d Update documentation.md
dff3c4abb Clean up build option descriptions and examples
f46d31308 Use consistent signatures
2af2470b5 Minor correction to resources.GetRemote
45ec53fe0 Remove superfluous shortcode param
2a0544757 Improve deployment documentation
3cf36a7fc Clarify lang keyword
f10d6495d Update front-matter.md
dc94e20be Add Sveltia to CMS list
b15d6d670 Update front-ends.md
bb41588b2 Update FormatCurrency.md
b40fff396 Add showcase for hidden sections without index.html
71316e181 Improve image filter examples
d46f0b1d8 Miscellaneous edits
ad3f9cdb6 Adjust quick reference guides
8657804ba Update theme
d9e981147 Miscellaneous corrections
508666575 Miscellaneous updates
80b2241f9 Miscellaneous updates
723a827fd Namespace functions and methods
40212779a netlify: Hugo 0.120.3
66017c704 Bump GitHub workflows to latest versions
db0f1e682 Update related.md
7e758c23b netlify: Hugo 0.120.2
641ba3976 Update configuration.md
d2a9909d9 Update rss.md
7eb59d7a2 netlify: Hugo 0.120.1
708c351c4 Document debug.Timer
28e2388c2 Add new-in tag to images.Padding
ee24cffb5 Add new-in tags to hugo.IsDevelopment and hugo.IsServer
aa47ca023 netlify: Hugo 0.120.0
9c3e606fc docs: Regen docshelper
159fd971e commands/new: Remove format flag from new content cmd
9f7878092 Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
65b2dd324 docs: Regenerate docshelper
2be620663 resources/images: Create padding image filter
c777d6c5e Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
24f2afeb2 Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
3f947c19a hugolib: Deprecate .Site.DisqusShortname
6bd1af892 hugolib: Deprecate .Site.GoogleAnalytics
78becc6ee tpl/tplimpl: Deprecate .Site.Social usage with internal templates
e3ec2a4f2 common/hugo: Add hugo.IsServer and hugo.IsDevelopment
git-subtree-dir: docs
git-subtree-split: 4dd2d64153
2023-12-04 15:14:18 +01:00
Bjørn Erik Pedersen
9f978d387f
Pull in the latest code from Go's template packages ( #11771 )
...
Fixes #10707
Fixes #11507
2023-12-04 12:07:54 +01:00
Razon Yang
14d85ec136
tpl: Allow using page resources on the images page parameter for opengraph, schema and twitter_cards templates
...
The page images selection order as follows:
1. Page's images parameter, image resources are supported.
2. Page's image resources that naming in *feature*, *cover* or *thumbnail* pattern.
3. If no page images specified, then the first one of site's images will be used as the fallback, supports site resources.
2023-12-04 12:05:41 +01:00
Joe Mooring
171836cdfa
hugolib: Apply titleCaseStyle to automatic section pages
...
Fixes #11547
2023-12-04 11:42:06 +01:00
Joe Mooring
9ea7103db7
tpl/urls: Retain query and fragment with absURL and absLangURL
...
Closes #11772
2023-12-04 11:41:30 +01:00
Joe Mooring
3fc42da3d0
markup: Add Level to Heading struct
...
Closes #10776
2023-12-04 11:41:01 +01:00
Joe Mooring
d24da1712f
tpl/fmt: Print suppression help with erroridf
...
Closes #11506
2023-12-04 11:39:27 +01:00
Joe Mooring
4583b41305
tpl/transform: Display Chroma highlighting errors
...
Closes #9642
2023-12-04 11:38:23 +01:00
dependabot[bot]
507f4e356b
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.8 to 2.20.9
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.8 to 2.20.9.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.8...v2.20.9 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-04 11:36:50 +01:00
dependabot[bot]
a7e721e02d
build(deps): bump github.com/spf13/cast from 1.5.1 to 1.6.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.5.1...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-01 11:04:04 +01:00
dependabot[bot]
2627b91d3a
build(deps): bump github.com/getkin/kin-openapi from 0.121.0 to 0.122.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.121.0 to 0.122.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.121.0...v0.122.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 >
2023-12-01 08:35:21 +01:00
Bjørn Erik Pedersen
6d4b012412
github: Fix CI build on Windows
2023-11-30 19:22:29 +01:00
dependabot[bot]
e536d461a5
build(deps): bump golang.org/x/image from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/image/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 10:55:58 +01:00
Joe Mooring
bfc325f561
deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
...
Closes #5748
2023-11-30 10:13:40 +01:00
dependabot[bot]
36a60f65d0
build(deps): bump github.com/spf13/afero from 1.10.0 to 1.11.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 10:05:41 +01:00
dependabot[bot]
de2fcc5e1d
build(deps): bump github.com/evanw/esbuild from 0.19.7 to 0.19.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.7 to 0.19.8.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.7...v0.19.8 )
---
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 >
2023-11-30 10:04:51 +01:00
Lars Lehtonen
26a8ec207f
Fix handling of dropped error in test
2023-11-29 09:37:26 +01:00
dependabot[bot]
9ca889ba49
build(deps): bump google.golang.org/api from 0.151.0 to 0.152.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.151.0 to 0.152.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.151.0...v0.152.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 16:53:57 +01:00
Bjørn Erik Pedersen
e2a624dd6c
common/para: Skip flaky test on CI
2023-11-28 12:23:38 +01:00
Bjørn Erik Pedersen
4fb40ee873
deps: Upgrade to libwebp 1.3.2
...
Closes #11746
2023-11-28 12:23:38 +01:00
dependabot[bot]
bc93a36133
build(deps): bump github.com/aws/aws-sdk-go from 1.48.4 to 1.48.6
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.48.4 to 1.48.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.4...v1.48.6 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 10:57:53 +01:00
dependabot[bot]
3e5bc6f3b3
build(deps): bump golang.org/x/tools from 0.15.0 to 0.16.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.15.0...v0.16.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 >
2023-11-28 10:57:23 +01:00
dependabot[bot]
7c47036f18
build(deps): bump github.com/getkin/kin-openapi from 0.120.0 to 0.121.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.120.0 to 0.121.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.120.0...v0.121.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 >
2023-11-28 10:57:02 +01:00
dependabot[bot]
4d07e1fe8a
build(deps): bump github.com/bep/logg from 0.3.0 to 0.4.0
...
Bumps [github.com/bep/logg](https://github.com/bep/logg ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/bep/logg/releases )
- [Commits](https://github.com/bep/logg/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/logg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 10:56:09 +01:00
Bjørn Erik Pedersen
1c41232e61
deps: Upgrade to github.com/bep/simplecobra v0.4.0
2023-11-28 09:15:23 +01:00
dependabot[bot]
f11ca0fad4
build(deps): bump github.com/aws/aws-sdk-go from 1.48.2 to 1.48.4
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.48.2 to 1.48.4.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.2...v1.48.4 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 23:38:35 +01:00
Bjørn Erik Pedersen
30a18e8825
watcher: Skip flaky test for now
2023-11-27 17:54:57 +01:00
dependabot[bot]
d7a2f3f980
build(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.14.0...v0.15.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 >
2023-11-27 10:53:02 +01:00
Joe Mooring
b4c5df42ff
tpl/transform: Add transform.XMLEscape template function
...
Fixes #3268
2023-11-27 10:52:33 +01:00
dependabot[bot]
ef12d169c8
build(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.1
...
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 10:48:08 +01:00
dependabot[bot]
a62bbfa9ea
build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-27 10:47:37 +01:00
Joe Mooring
8d32ca223d
tpl/tplimpl: Remove superfluous type attr on script elements
...
Closes #6379
2023-11-27 10:45:53 +01:00
dependabot[bot]
5887230b7d
build(deps): bump golang.org/x/net from 0.17.0 to 0.18.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 11:14:19 +01:00
dependabot[bot]
a4a66b8216
build(deps): bump github.com/evanw/esbuild from 0.19.5 to 0.19.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.5 to 0.19.7.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.5...v0.19.7 )
---
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 >
2023-11-23 11:13:10 +01:00
dependabot[bot]
813390b5a2
build(deps): bump github.com/alecthomas/chroma/v2 from 2.10.0 to 2.11.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.10.0 to 2.11.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.10.0...v2.11.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-23 11:12:18 +01:00
dependabot[bot]
d528bbd6d0
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.5 to 2.20.7
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.5 to 2.20.7.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.5...v2.20.7 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-22 18:56:02 +01:00
dependabot[bot]
af7f6c8b3e
build(deps): bump google.golang.org/api from 0.138.0 to 0.151.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.138.0 to 0.151.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.138.0...v0.151.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-22 12:51:06 +01:00
dependabot[bot]
e70849ea79
build(deps): bump github.com/aws/aws-sdk-go from 1.45.14 to 1.48.2 ( #11724 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.45.14 to 1.48.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.14...v1.48.2 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
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>
Updates #11723
2023-11-22 12:19:01 +01:00
Joe Mooring
dd6cd6268d
resources/resource: Fix GroupByParamDate with raw TOML dates
...
Closes #11563
2023-11-22 12:09:48 +01:00
Bjørn Erik Pedersen
27620daa20
common/para: Skip flaky tests on Windows
2023-11-16 18:24:20 +01:00
Joe Mooring
80d2fdbaa0
navigation: Unexport menu entry methods
...
- MenuEntry.IsEqual
- MenuEntry.IsSameResource
Closes #11670
2023-11-16 18:22:31 +01:00
Joe Mooring
805cc1773b
markup/goldmark: Sync image render hook code with Goldmark
...
Fixes #11681
2023-11-16 18:21:32 +01:00
Joe Mooring
0bde6931ac
helpers: Fix TrimShortHTML used by markdownify and RenderString
...
Closes #11698
2023-11-16 18:21:01 +01:00
hugoreleaser
ac7cffa7e2
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-11-08 11:32:02 +00:00
hugoreleaser
f11bca5fec
releaser: Bump versions for release of 0.120.4
...
[ci skip]
2023-11-08 11:18:07 +00:00
Bjørn Erik Pedersen
9315a2d2c4
Upgrade to go 1.21.4
...
Closes #11685
2023-11-08 11:53:26 +01:00
Bjørn Erik Pedersen
cee3a56a91
Add a new test helper
2023-11-02 09:50:18 +01:00
hugoreleaser
da2a8e6402
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-11-01 18:11:30 +00:00
hugoreleaser
a4892a07b4
releaser: Bump versions for release of 0.120.3
...
[ci skip]
2023-11-01 17:57:00 +00:00
Joe Mooring
cb98e9061b
tpl/tplimpl: Fix deprecation logic in embedded templates
...
Closes #11658
2023-11-01 17:42:45 +01:00
Bjørn Erik Pedersen
5fa97ee964
Remove some old and unused deprecation code
2023-11-01 16:40:26 +01:00
Bjørn Erik Pedersen
4d38f47250
Add a field prefix to the deprecated log statements
...
To make theme easier to spot, esp. on INFO level.
2023-11-01 16:40:26 +01:00
Bjørn Erik Pedersen
80f793c38d
Avoid double printing INFO deprecation messages
...
Fixes #11645
2023-11-01 16:40:26 +01:00
dependabot[bot]
a9079d7a63
build(deps): bump github.com/tdewolff/parse/v2 from 2.7.1 to 2.7.3
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.7.1 to 2.7.3.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.7.1...v2.7.3 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 16:07:37 +01:00
dependabot[bot]
4914b7f18c
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.1 to 2.20.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.1 to 2.20.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.1...v2.20.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 10:32:33 +01:00
hugoreleaser
9e06fd3394
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-31 16:40:29 +00:00
hugoreleaser
9c2b2414d2
releaser: Bump versions for release of 0.120.2
...
[ci skip]
2023-10-31 16:27:18 +00:00
Bjørn Erik Pedersen
ab21433689
Fix deprecation printing on info level
...
Fixes #11638
2023-10-31 10:42:23 +01:00
Joe Mooring
23fcfb7f74
tpl/tplimpl: Fix deprecation logic in RSS template
...
Closes #11639
2023-10-31 08:34:30 +01:00
hugoreleaser
47bf2fcbe2
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-30 16:57:41 +00:00
hugoreleaser
16fb2cae88
releaser: Bump versions for release of 0.120.1
...
[ci skip]
2023-10-30 16:44:31 +00:00
Joe Mooring
2bedcf3d18
deps: Update github.com/tdewolff/minify/v2 v2.20.0 => v2.20.1
...
Fixes #11633
2023-10-30 17:41:33 +01:00
hugoreleaser
935999e2fa
releaser: Prepare repository for 0.121.0-DEV
...
[ci skip]
2023-10-30 14:20:34 +00:00
hugoreleaser
20c3bae2c4
releaser: Bump versions for release of 0.120.0
...
[ci skip]
2023-10-30 14:06:47 +00:00
Bjørn Erik Pedersen
29b6e133a8
docs: Regen docshelper
2023-10-30 15:03:10 +01:00
Bjørn Erik Pedersen
7f8ab74681
Add Solaris build
...
Closes #3500
2023-10-30 12:43:36 +01:00
dependabot[bot]
59bcc098cf
build(deps): bump github.com/fsnotify/fsnotify from 1.6.0 to 1.7.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 12:42:17 +01:00
dependabot[bot]
e26ba752d2
build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 10:31:21 +01:00
dependabot[bot]
bcf07fa639
build(deps): bump github.com/alecthomas/chroma/v2 from 2.9.1 to 2.10.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.9.1...v2.10.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-30 10:28:42 +01:00
Bjørn Erik Pedersen
b6a7568131
Make site.BaseURL and $pager.URL a string
...
Was template.URL.
2023-10-30 10:26:06 +01:00
Joe Mooring
acf01bfb78
create/skeletons: Fix menu template
...
Check identifier existence before calling lang.Translate to prevent
empty warnings when using the --printI18nWarnings flag.
Closes #11519
2023-10-30 09:02:49 +01:00
Joe Mooring
27b22cd87e
commands/new: Remove format flag from new content cmd
...
Fixes #11462
2023-10-30 09:02:26 +01:00
Joe Mooring
a2488b1c95
hugolib: Display correct markup identifier in error message
...
Fixes #11538
2023-10-30 09:01:34 +01:00
Bjørn Erik Pedersen
8f60c0c1ec
livereloadinject: Save some allocations
...
As suggested by @DominoPivot
```
name old time/op new time/op delta
LiveReloadInject-10 1.11µs ± 2% 1.04µs ± 2% -6.45% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
LiveReloadInject-10 1.23kB ± 0% 0.89kB ± 0% -27.69% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
LiveReloadInject-10 12.0 ± 0% 10.0 ± 0% -16.67% (p=0.029 n=4+4)
```
2023-10-29 18:37:05 +01:00
Domino Goupil
9dc608084b
livereloadinject: Use more robust injection method
2023-10-29 18:37:05 +01:00
Joe Mooring
a349aafb7f
tpl/urls: Return strings from URL functions
...
Closes #11511
2023-10-29 18:12:24 +01:00
Bjørn Erik Pedersen
b8fbd4a578
transform/livereloadinject: Add benchmark
2023-10-29 17:50:55 +01:00
dependabot[bot]
e2b2092ce6
build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.13.0...v0.14.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 >
2023-10-29 16:38:06 +01:00
dependabot[bot]
f4df7b88b3
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.9 to 2.20.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.9 to 2.20.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.9...v2.20.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-29 11:36:23 +01:00
dependabot[bot]
3d9bd404ee
build(deps): bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.19 to 0.0.20.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.19...v0.0.20 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-29 11:35:16 +01:00
dependabot[bot]
5f5e55aa8d
build(deps): bump golang.org/x/image from 0.12.0 to 0.13.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/image/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-29 11:34:13 +01:00
Bjørn Erik Pedersen
aaaf1c8df5
Squashed 'docs/' changes from 417593493..4d936aee6
...
4d936aee6 Fix function signatures
8182a27ed Simplify example usage of apply function
git-subtree-dir: docs
git-subtree-split: 4d936aee62
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
0baa4f9837
Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
d3d4ab41a9
docs: Regenerate docshelper
2023-10-29 11:31:51 +01:00
Bjørn Erik Pedersen
28d844642a
Revert "modules: Throttle the "downloading modules …" log entries"
...
This reverts commit 66904097e0 .
2023-10-29 10:57:27 +01:00
Bjørn Erik Pedersen
eb5fd3127f
Revert "modules: Adjust the log throttle logic a little"
...
This reverts commit 3f64b5a3de .
2023-10-29 10:57:25 +01:00
Joe Mooring
3ed28e4bfe
resources/images: Create padding image filter
...
Closes #11599
2023-10-29 10:16:37 +01:00
OMOTO Tsukasa
db14238ba3
markup/goldmark: Update the CJK extension to allow specifying line break styles
...
This commit follows https://github.com/yuin/goldmark/pull/411
2023-10-29 10:13:56 +01:00
Bjørn Erik Pedersen
3f64b5a3de
modules: Adjust the log throttle logic a little
2023-10-28 17:40:07 +02:00
Bjørn Erik Pedersen
66904097e0
modules: Throttle the "downloading modules …" log entries
2023-10-28 17:15:34 +02:00
Bjørn Erik Pedersen
e54139c85b
tpl/collections: Make delimit return a string
...
Closes #10876
Closes #11502
2023-10-28 11:54:23 +02:00
Bjørn Erik Pedersen
3710a5ec7e
Squashed 'docs/' changes from cb18a5183..417593493
...
417593493 Fix broken link
9829e2862 Mention Go variable naming rules
11ce3a59c Fix typo
0d62feed5 Update glossary
5e9ecb217 Prepare for pending deprecations
c5f76c776 Update Twitter Cards URL
git-subtree-dir: docs
git-subtree-split: 4175934933
2023-10-27 10:06:44 +02:00
Bjørn Erik Pedersen
705e3cd5f5
Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
2023-10-27 10:06:44 +02:00
dependabot[bot]
8c61fd2541
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:57:12 +02:00
dependabot[bot]
d3145e4e5d
build(deps): bump github.com/evanw/esbuild from 0.19.3 to 0.19.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.3 to 0.19.5.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.3...v0.19.5 )
---
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 >
2023-10-27 09:56:40 +02:00
dependabot[bot]
743a1da3ef
build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.5 to 1.10.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.5...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:56:05 +02:00
dependabot[bot]
123901b741
build(deps): bump github.com/bep/logg from 0.2.0 to 0.3.0
...
Bumps [github.com/bep/logg](https://github.com/bep/logg ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/bep/logg/releases )
- [Commits](https://github.com/bep/logg/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/logg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-27 09:55:05 +02:00
Bjørn Erik Pedersen
71fd79a3f4
Revise the deprecation logging
...
This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated.
The thresholds are a little arbitrary, but
* We log INFO for 6 releases
* We log WARN for another 6 releases
* THen ERROR (failing the build)
This should give theme authors plenty of time to catch up without having the log filled with warnings.
2023-10-26 20:41:19 +02:00
Bjørn Erik Pedersen
c4a530f104
Remove rest of the now unused emoji code
...
See #11598
2023-10-26 09:20:56 +02:00
Joe Mooring
272484f8bf
markdown: Pass emoji codes to yuin/goldmark-emoji
...
Removes emoji code conversion from the page and shortcode parsers. Emoji
codes in markdown are now passed to Goldmark, where the goldmark-emoji
extension converts them to decimal numeric character references.
This disables emoji rendering for the alternate content formats: html,
asciidoc, org, pandoc, and rst.
Fixes #7332
Fixes #11587
Closes #11598
2023-10-24 12:04:13 +02:00
Razon Yang
de4e466036
Fix so hugo get -u updates transitively
2023-10-22 16:32:01 +02:00
Oleksandr Redko
c23a0c4a0f
watcher/filenotify: Remove redundant duplicated comments
2023-10-21 18:57:35 +02:00
Oleksandr Redko
a95670b981
docs: Remove outdated note from CONTRIBUTING.md
2023-10-21 18:57:01 +02:00
Bjørn Erik Pedersen
46bdc03885
tpl/debug: Add average and median to timer output
2023-10-21 15:41:21 +02:00
Bjørn Erik Pedersen
5160c7efa5
tpl/debug: Add debug.Timer
...
Closes #11580
2023-10-20 09:46:45 +02:00
Bjørn Erik Pedersen
e2dd4cd05f
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
2023-10-20 09:43:56 +02:00
Bjørn Erik Pedersen
e509cac533
Squashed 'docs/' changes from 7ef2dbce4..cb18a5183
...
cb18a5183 Fix broken link
07a0198bf Config: Place Google Analytics tag ID under the services key
4bf0c719f Fix typo
50d8ad1af Fix muiltilingual menu definition instructions
1a32519a9 Fix typos
6f34ca8e0 Explain usage of front matter to target a template
5bd977257 Improve goldmark config docs
447632938 Remove Docker notes from installation instructions
84741d173 Update reference to hugo.work
0338d7c71 Fix menu template
f5d2f5ed4 Fix typos in content/en/functions/fmt
a3a40ff99 Add return type to functions
85ac3e779 Remove outdated feature image
d47d889e4 Fix signatures
7551ba28f Document safe.JSStr function
e77993be0 Document keyVals function
4dba20db3 Update theme
babf91544 Update echoparam
8c8203efa Adjust related functions
4cb1b30fc Fix example
ba95eca64 Improve showcase prose
5d3dcf366 Add Overmind Studios showcase
8d634ac70 Change code blocks from indented to fenced
cfab978e6 Add missing code fences
407dd5c47 Limit related pages for functions to other functions
9fa67d981 Fix .Site.LastChange doc
393aa16d0 netlify: Hugo 0.119.0
f864af97a docs: Even more about images.Process
9d772d5f0 docs: More about images.Process
bc655f869 docs: Regen docshelper
41c3536d1 Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
918ed53f4 Add images.Process filter
573645883 Add $image.Process
a1151b0fd Add images.Opacity filter
git-subtree-dir: docs
git-subtree-split: cb18a5183f
2023-10-20 09:42:39 +02:00
Bjørn Erik Pedersen
fd38171810
Add some convenient integration test helpers
2023-10-18 18:54:15 +02:00
Joe Mooring
2eca1b3cc1
hugolib: Deprecate .Site.DisqusShortname
...
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-18 17:35:54 +02:00
Lars Lehtonen
625162674d
tpl/tplimpl: Fix dropped error
2023-10-18 17:33:00 +02:00
Joe Mooring
a692278bc6
hugolib: Deprecate .Site.GoogleAnalytics
...
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Joe Mooring
d4016dd5cd
tpl/tplimpl: Deprecate .Site.Author usage in RSS template
2023-10-17 20:04:49 +02:00
Joe Mooring
4910312ee7
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
2023-10-17 20:04:24 +02:00
Joe Mooring
1b5f78b6b7
markup/tableofcontents: Return template.HTML from .Fragments.ToHTML
...
Closes #11545
2023-10-09 18:42:03 +02:00
Joe Mooring
d5d0f420d8
deps: Update github.com/tdewolff/minify/v2 v2.12.7 => v2.12.9
...
Fixes #11533
2023-10-06 19:44:25 +02:00
Joe Mooring
5993afa4c5
commands: Update message displayed when running CLI from GUI
...
Fixes #11525
2023-10-06 19:39:35 +02:00
Joe Mooring
d1b4458536
common/hugo: Add hugo.IsServer and hugo.IsDevelopment
...
And deprecate site.IsServer.
Closes #11510
2023-10-06 16:26:51 +02:00
Oleksandr Redko
274852bcf2
all: Format files with gofmt
2023-10-05 14:45:55 +02:00
abdullah-alaadine
37a2d5eb4e
magefile: Update isGoLatest to check for Go 1.21
2023-10-04 16:07:40 +02:00
Joe Mooring
4c95389c25
resources/integrity: Return string instead of template.HTMLAttr
...
Closes #11513
2023-10-02 20:14:50 +02:00
Bjørn Erik Pedersen
3af8bded26
Update README.md
2023-09-27 19:32:41 +02:00
Joe Mooring
46da0b7aaa
tpl/lang: Formally deprecate lang.NumFmt
...
Use lang.FormatNumberCustom instead.
2023-09-27 17:34:45 +02:00
Joe Mooring
75f56b4ce6
tpl/collections: Fix and deprecate echoParams
...
Fixes #11498
2023-09-27 17:34:13 +02:00
hugoreleaser
d234a963eb
releaser: Prepare repository for 0.120.0-DEV
...
[ci skip]
2023-09-24 15:32:33 +00:00
hugoreleaser
b84644c008
releaser: Bump versions for release of 0.119.0
...
[ci skip]
2023-09-24 15:20:17 +00:00
Bjørn Erik Pedersen
a9d19dbdd6
docs: Even more about images.Process
2023-09-24 12:26:00 +02:00
Bjørn Erik Pedersen
12d713176f
docs: More about images.Process
2023-09-24 12:11:03 +02:00
Oleksandr Redko
6b65b2fae6
common: Remove unused constants
2023-09-24 11:59:49 +02:00
Bjørn Erik Pedersen
1768684d8b
docs: Regen docshelper
2023-09-24 11:56:43 +02:00
Bjørn Erik Pedersen
9aec42c545
Squashed 'docs/' changes from 686c7b6eb..7ef2dbce4
...
7ef2dbce4 Cleanup RSS templates page
0e23d5e1a Fix multilingual permalinks example
b3c342b07 Update faq.md
f73109ae2 Regen CLI docs
ac6ee2027 Fix minor nitpicks (#2233 )
f24fcffe1 Mention the Giscus comments system (#2234 )
418fa981e Remove reference to Ghost migration tool
94a76df29 Adjust table layout
e263ad6b9 content: Fix typos
fd1eb26b5 Update featured image in digital.gov showcase
d3d946555 Correct directory description
bbe1dff56 Use sentence case for heading
acfa0be54 Add hosting provider fetch depth to GitInfo variables page
d78c427e6 Fix typo
751517fea Fix spelling mistake
cdd77aa9a Update content for v0.118.0
c77d09b1c Format netlify.toml
d5a6c4f51 netlify: Hugo 0.118.1
8c717301a Revert "netlify: Hugo 0.118.0"
a9b2ef5c2 netlify: Hugo 0.118.0
61959591c Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'
95f2029a1 docs: Regen docs helper
fd57ba960 markup/goldmark: Add CJK extension
2bfb3bf4c docshelper: Improve template lookup order descriptions
b0baa890e cache: Hide IsResourceDir from the exported config
b4b071ea0 docs: Replace docs.json with docs.yaml
git-subtree-dir: docs
git-subtree-split: 7ef2dbce4a
2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen
eb0ed33dfd
Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen
6a246d1152
Add images.Process filter
...
This allows for constructs like:
```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg q30 resize 200x") }}
{{ $img = $img | images.Filter $filters }}
```
Note that the `action` option in `images.Process` is optional (`resize` in the example above), so you can use the above to just set the target format, e.g.:
```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg") }}
{{ $img = $img | images.Filter $filters }}
```
Fixes #8439
2023-09-24 11:54:29 +02:00
Bjørn Erik Pedersen
ef0e7149d6
Add $image.Process
...
Which supports all the existing actions: resize, crop, fit, fill.
But it also allows plain format conversions:
```
{{ $img = $img.Process "webp" }}
```
Which will be a simple re-encoding of the source image.
Fixes #11483
2023-09-24 11:54:29 +02:00
Carl Johnson
c32094ace1
google_analytics_async.html: Add deprecation warning
2023-09-23 18:57:19 +02:00
dependabot[bot]
a262fd4ddb
build(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.12.0...v0.13.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 >
2023-09-22 16:34:14 +02:00
dependabot[bot]
f0d32455d2
build(deps): bump github.com/alecthomas/chroma/v2 from 2.8.0 to 2.9.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.8.0...v2.9.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-22 16:33:44 +02:00
dependabot[bot]
e8bc8e6d02
build(deps): bump github.com/evanw/esbuild from 0.19.2 to 0.19.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.2 to 0.19.3.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.2...v0.19.3 )
---
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 >
2023-09-22 16:32:39 +02:00
Bjørn Erik Pedersen
f9b3c0f486
Add images.Opacity filter
...
Fixes #11471
2023-09-22 15:03:16 +02:00
dependabot[bot]
11fcda971c
build(deps): bump github.com/aws/aws-sdk-go from 1.44.314 to 1.45.14
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.314 to 1.45.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.314...v1.45.14 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 21:42:32 +02:00
dependabot[bot]
f31375d4cc
build(deps): bump github.com/getkin/kin-openapi from 0.118.0 to 0.120.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.118.0 to 0.120.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.118.0...v0.120.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 >
2023-09-21 21:41:30 +02:00
dependabot[bot]
6415b599be
build(deps): bump golang.org/x/image from 0.11.0 to 0.12.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/image/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 21:40:20 +02:00
Bjørn Erik Pedersen
1e9b87f760
Upgrade to Go 1.21.1
...
See https://github.com/golang/go/issues?q=milestone%3AGo1.21.1+label%3ACherryPickApproved
Fixes #11474
Fixes #11414
2023-09-21 21:38:41 +02:00
Bjørn Erik Pedersen
275c0acbf6
commands: Update CLI docs with the important -u flag in hugo mod get
2023-09-20 18:01:52 +02:00
Joe Mooring
f9163155d3
create/skeletons: Improve viewport meta tag
...
Remove initial-scale=1.0 (this is the browser default)
Remove minimum-scale=1.0 (opinionated, can throw WCAG warning)
2023-09-19 11:46:05 +02:00
Bjørn Erik Pedersen
79a17d9e55
Fix tests for Go 1.21.1
...
Fixes #11450
2023-09-14 13:09:45 +02:00
Joe Mooring
75c0f88289
commands/gen: Remove default highlight style
...
Fixes #11445
2023-09-14 12:08:52 +02:00
Bjørn Erik Pedersen
18ce854626
Fix recently broken benchmark
2023-09-12 11:50:31 +02:00
Bjørn Erik Pedersen
69f5bad40f
Adjust baseline benchmarks
2023-09-12 10:48:04 +02:00
ilmari-lauhakangas
525bed9919
commands: Print language code after web server address info
2023-09-11 11:38:24 +02:00
hugoreleaser
2ae4786ca1
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 11:35:48 +00:00
hugoreleaser
da7983ac4b
releaser: Bump versions for release of 0.118.2
...
[ci skip]
2023-08-31 11:23:51 +00:00
Bjørn Erik Pedersen
df5d76fed9
release: Revert to building with Go 1.20
...
We need to investigate these issues, but that needs to wait.
Updates #11414
2023-08-31 13:20:35 +02:00
hugoreleaser
7362ba2204
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 09:56:08 +00:00
hugoreleaser
0eb480aa1d
releaser: Bump versions for release of 0.118.1
...
[ci skip]
2023-08-31 09:42:31 +00:00
Bjørn Erik Pedersen
7e9092eeeb
Revert to bullseye as the release build image
...
This was not available when I upgraded to Go 1.21, but is now, for some odd reason.
See https://github.com/bep/dockerfiles/commit/7761572995bed74c71ead9f3c3a71f624a4900ee
Fixes #11414
2023-08-31 11:37:36 +02:00
hugoreleaser
0200eaf58f
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 07:49:58 +00:00
hugoreleaser
28b640a220
releaser: Bump versions for release of 0.118.0
...
[ci skip]
2023-08-31 07:36:55 +00:00
Bjørn Erik Pedersen
db45dbbee8
Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'
2023-08-30 19:24:34 +02:00
Bjørn Erik Pedersen
77b976dd92
Squashed 'docs/' changes from a7e1e9be8..686c7b6eb
...
686c7b6eb ci(Netlify): specify `HUGO_VERSION` environment variable once
da99a356f fix: change heading level
e57da3f00 Update taxonomy methods
746172490 Update description of rendered breadcrumb navigation
6bc52fd40 Clarify term
dab07dcb0 Fix typo
e50fa452a Fix typo
6c1ea83c2 Update template overview page
a5dc97845 Clarify the append function
a135e52a0 Update GitHub hosting instructions
a51bf9f4f Update sections page
ed35fc6c4 Update archetypes and glossary
1a4522b3e Format examples
a70f20094 Use "hugo new content" to create content
673846ff9 Remove comment
b7febf0c5 Fix link
6f6fe2133 Miscellaneous edits
99227dd18 Remove lookup order table from output formats page
bc8870657 tools/editors: Add Prettier Plugin for Go Templates
157b169eb Update docs.yaml
1c8f514e0 Update cond function
e5f1f8113 Add assumptions to taxonomy and term template lookup order examples
475b406e2 Update postprocess
2d6cb8dfc glossary: Update content type
03b514bac Add descriptions to template lookup order example sections
06678f919 glossary: Fix broken link
4cd505612 Simplify news listing
fadb980db Update glossary of terms
491bacd78 Change order of example sections for template lookup order
04b8f39ec Create glossary of terms
12e896bc0 Remove reference to asciidoctor-rouge extension
055f7bb37 Insert missing words
8cd6ac387 Miscellaneous edits
2cbe17f41 Update configuration.md
529615373 Update data-templates.md
853154e65 Update theme
45f08627a resources.getRemote: Fix definition list
29a51dac1 Update docshelper
3bdfe88c6 Remove link to gitter from site footer
cacd0e461 Use "map" instead of "dictionary"
704dd5da6 Document the transform.Remarshal template function
e8d744951 Populate news section via GitHub releases API
3ff1118c7 Replace docs.json with docs.yaml
7726bbcac Use docs.json to generate default config throughout the site
57dca93df Use docs.json to generate default config for related content
74d5082c7 Add some .RenderShortcodes docs
cf5ab5062 netlify: Hugo 0.117.0
420f7aa69 Add all config to docshelper.json
git-subtree-dir: docs
git-subtree-split: 686c7b6eb1
2023-08-30 19:23:47 +02:00
Bjørn Erik Pedersen
e847a98db6
docs: Regen docs helper
2023-08-30 19:23:34 +02:00
Bjørn Erik Pedersen
45c9bbc6ca
Don't use the OS environment when creating config for docs
2023-08-30 19:22:44 +02:00
Bjørn Erik Pedersen
94fbab2a88
Delay the creation of cache directories until they're used
...
Fixes #11390
2023-08-30 16:39:06 +03:00
Matt Brown
c3f273b2d7
deploy: Create AWS session for CloudFront invalidation via Go CDK
...
This allows the AWS credentials to be picked up from the configured
target URL (like blob does) rather than the current behaviour of only
relying on the defaults.
Relying on the defaults here means having to specify credentials twice
(once in the URL for the blob, once in the environment for this code
path) when non-default AWS credentials are in used (e.g. via a profile).
2023-08-30 16:38:20 +03:00
OMOTO Tsukasa
d7dcc76d27
markup/goldmark: Add CJK extension
...
Fixes #10472
2023-08-30 13:08:45 +02:00
dependabot[bot]
9bf76fd7e8
build(deps): bump google.golang.org/api from 0.134.0 to 0.138.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.134.0 to 0.138.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.134.0...v0.138.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 13:44:19 +03:00
Bjørn Erik Pedersen
15d3e48cec
Fix RegularPagesRecursive for the home page
...
Fixes #11396
2023-08-30 13:44:04 +03:00
dependabot[bot]
b2a02c3c5a
build(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.11.1...v0.12.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 >
2023-08-30 12:17:42 +03:00
dependabot[bot]
6821d6f159
build(deps): bump gocloud.dev from 0.33.0 to 0.34.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.33.0...v0.34.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 >
2023-08-30 12:17:10 +03:00
dependabot[bot]
93c7ad12ec
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.9 to 2.1.0.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.9...v2.1.0 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 12:16:46 +03:00
Bjørn Erik Pedersen
d2ae9e1363
testscripts: Move hugo new tests to where they belong
2023-08-30 10:31:08 +02:00
Bjørn Erik Pedersen
3a8aad6b19
Fix .RawContent for empty content pages ( #11407 )
...
Fixes #11406
2023-08-30 10:11:20 +02:00
Lars Lehtonen
a7b93e6564
hugolib: Handle dropped error
2023-08-24 19:57:44 +03:00
Oleksandr Redko
65871d5cf4
common/loggers: Fix typo in option name
2023-08-23 22:52:37 +02:00
Joe Mooring
2e4bf89ec7
misc: Change dart-sass labels in workflows and snapcraft
2023-08-23 22:51:46 +02:00
Bjørn Erik Pedersen
ebaa733d45
Make sure resources directory isn't created in hugo new theme
...
Fixes #11382
2023-08-23 22:50:35 +02:00
Bjørn Erik Pedersen
24b1be45c1
Go 1.21 Upgrade
...
Fixes #11351
2023-08-23 21:49:27 +02:00
Bjørn Erik Pedersen
111f02db2a
testscripts: Make mod vendor test stable
2023-08-23 20:52:09 +02:00
michalbiesek
8a08f91d5b
dockerfile: Update Docker images
...
- `golang:1.21-alpine`
- `alpine:3.18`
2023-08-23 18:06:52 +02:00
Bjørn Erik Pedersen
dcf425c846
Fix it so disable a module does not disable transitive dependency required by others
...
The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`.
Fixes #11376
2023-08-23 18:05:18 +02:00
Joe Mooring
9a8c84d600
create/skeletons: Move theme's site config to top level
...
Closes #11380
2023-08-23 18:05:00 +02:00
dependabot[bot]
a19d03b0e6
build(deps): bump github.com/yuin/goldmark from 1.5.5 to 1.5.6
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.5.5 to 1.5.6.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.5.5...v1.5.6 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-23 13:19:49 +02:00
Joe Mooring
cdf0b3b7a6
modules: Make new cache directories read/write
...
Leave newly-created directories in the module cache read-write instead
of making them read-only.
Closes #11369
2023-08-22 08:47:02 +02:00
Oleksandr Redko
d979831dbd
deploy: Update InvalidateCloudFront to use Go CDK helper
2023-08-21 16:57:41 +02:00
Bjørn Erik Pedersen
bcf7421ea5
Avoid escaping HTML chars inside hugo_stats.json
...
Fixes #11371
2023-08-21 13:17:21 +02:00
Joe Mooring
b6538532f4
commands/new: Embed site and theme skeletons
...
The skeletons are used when creating new sites and themes with the CLI.
Closes #11358
2023-08-21 10:38:22 +02:00
Joe Mooring
90944aa261
docshelper: Improve template lookup order descriptions
...
- Always include example for "with layout/type set"
- Use lowercase for "set to" examples (lookup is case sensitive)
- Consistent use of taxonomy and term
Fixes gohugoio/hugoDocs#1734
2023-08-15 12:53:18 +02:00
dependabot[bot]
db7bc49690
build(deps): bump github.com/evanw/esbuild from 0.18.17 to 0.19.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.17 to 0.19.2.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.17...v0.19.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-14 11:46:23 +02:00
Bjørn Erik Pedersen
a2f6400d65
cache: Hide IsResourceDir from the exported config
2023-08-09 23:49:08 +02:00
Bjørn Erik Pedersen
7d74cd0cc8
commands: Handle floats without decimals in hugo config
...
Updates #11345
2023-08-08 09:13:17 +02:00
Bjørn Erik Pedersen
d139f30234
docs: Replace docs.json with docs.yaml
...
Updates #11345
2023-08-08 09:13:17 +02:00
Bjørn Erik Pedersen
b1b6912412
config: Add a type value for the tags related config entry
...
Which doesn't have any practical difference, but it looks cleaner in the generated docs.
2023-08-07 18:01:46 +02:00
dependabot[bot]
0de81c6430
build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 14:20:55 +02:00
Bjørn Erik Pedersen
851bf3515e
Add all config to docshelper.json
...
Also consolidate so the mediaTypes and outputFormats are listed once only.
Fixes #11328
2023-08-07 13:42:54 +02:00
dependabot[bot]
d4a6c16c17
build(deps): bump golang.org/x/image from 0.10.0 to 0.11.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/image/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 12:18:03 +02:00
Bjørn Erik Pedersen
5d5fb22ead
Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'
2023-08-07 10:38:12 +02:00
Bjørn Erik Pedersen
7c62d6ef16
Squashed 'docs/' changes from c43daf45f..a7e1e9be8
...
a7e1e9be8 Clarify front matter date fields
69df4fc22 Clarify how to determine if .Inner is populated
9046bf424 Document strings.ContainsNonSpace
8dbe5df90 Fix indentation and broken image
48ad4124e Typo: functions/after.md
d4c01b57b Link to detailed descriptions of canonfiyURLs and relativeURLs
4d9597302 Explain behaviour when appending to a slice containing other slices
69e24e44e Standardize right arrow usage
01b378726 Remove references to Google's Universal Analytics and the async template
d415bae24 Use shared file to describe regex syntax
e75dee6b8 snap: How to enable or revoke access to SSH keys
feed2d1c0 Remove hasPrefix and hasSuffix in favor of namespaced versions
3c6d2cfe5 security: Use default execution settings
461b5fcaf netlify: Hugo 0.116.1
95fac27a5 configuration: correct cacheDir description
cd9f1f929 configuration: Fix broken link
605394de4 netlify: Upgrade to Hugo 0.116.0
baf2a0f7b Merge branch 'tempv0.116.0'
ee51a9323 Update requirements for building from source
40189956d Editor tools: Remove duplicate sentence
fb0ff2621 docs: Regenerate CLI docs
e8a5665c4 Update where.md
7bc5cf15d Update hosting instructions
018a04314 docs: Update where
d33ae91cf docs: Update where function operators
9a108a664 docs: Rework the cacheDir documentation
git-subtree-dir: docs
git-subtree-split: a7e1e9be85
2023-08-07 10:35:12 +02:00
Bjørn Erik Pedersen
641390f8f5
Try to make test more stable
2023-08-05 11:40:18 +02:00
Bjørn Erik Pedersen
2e6191b2e0
deps: Sync go-i18n with upstream
...
Closes #11336
2023-08-05 11:37:04 +02:00
Bjørn Erik Pedersen
22861cb4dc
Return original error on resources.GetRemote retry timeouts
...
See #11327
2023-08-04 21:12:04 +02:00
Bjørn Erik Pedersen
16da1ade70
testing: Write test caches to /tmp
...
Fixes #11327
2023-08-04 18:46:43 +02:00
Bjørn Erik Pedersen
a3d42a277d
Add retry in resources.GetRemote for temporary HTTP errors
...
Fixes #11312
2023-08-04 17:16:52 +02:00
dependabot[bot]
2c20fd557a
build(deps): bump gocloud.dev from 0.24.0 to 0.33.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.33.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.33.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 >
2023-08-04 14:54:26 +02:00
dependabot[bot]
243736e751
build(deps): bump golang.org/x/net from 0.11.0 to 0.13.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.11.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 14:53:33 +02:00
dependabot[bot]
bf891c2259
build(deps): bump github.com/marekm4/color-extractor from 1.2.0 to 1.2.1
...
Bumps [github.com/marekm4/color-extractor](https://github.com/marekm4/color-extractor ) from 1.2.0 to 1.2.1.
- [Commits](https://github.com/marekm4/color-extractor/compare/v1.2.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: github.com/marekm4/color-extractor
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 12:37:05 +02:00
dependabot[bot]
da0df0ada3
build(deps): bump github.com/frankban/quicktest from 1.14.5 to 1.14.6
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.5 to 1.14.6.
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.5...v1.14.6 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 12:36:48 +02:00
dependabot[bot]
0885f8ec2b
build(deps): bump golang.org/x/image from 0.9.0 to 0.10.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 12:36:29 +02:00
dependabot[bot]
61be050a95
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.7 to 2.7.0
...
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj ) from 2.5.7 to 2.7.0.
- [Release notes](https://github.com/clbanning/mxj/releases )
- [Commits](https://github.com/clbanning/mxj/compare/2.5.7...v2.7 )
---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:54:06 +02:00
dependabot[bot]
65af75fb00
build(deps): bump golang.org/x/tools from 0.9.3 to 0.11.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.9.3 to 0.11.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.9.3...v0.11.1 )
---
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 >
2023-08-04 09:53:24 +02:00
dependabot[bot]
2d75f74b86
build(deps): bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3
...
Bumps [go.uber.org/automaxprocs](https://github.com/uber-go/automaxprocs ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/uber-go/automaxprocs/releases )
- [Changelog](https://github.com/uber-go/automaxprocs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/automaxprocs/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: go.uber.org/automaxprocs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:52:50 +02:00
dependabot[bot]
2ac3d61604
build(deps): bump github.com/hairyhenderson/go-codeowners
...
Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases )
- [Commits](https://github.com/hairyhenderson/go-codeowners/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:52:33 +02:00
Bjørn Erik Pedersen
ade7ec8187
Add Page.RenderShortcodes
...
A layouts/shortcodes/include.html shortcode may look like this:
```html
{{ $p := site.GetPage (.Get 0) }}
{{ $p.RenderShortcodes }}
```
Fixes #7297
2023-08-03 20:00:57 +02:00
Joe Mooring
8fa8ce3e48
Update GitHub issue template
2023-08-02 18:07:31 +02:00
dependabot[bot]
9dce45c25d
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.8 to 2.0.9.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.8...v2.0.9 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 11:23:57 +02:00
hugoreleaser
239f2e2c99
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-08-01 07:36:32 +00:00
hugoreleaser
3e1ea030a5
releaser: Bump versions for release of 0.116.1
...
[ci skip]
2023-08-01 07:24:54 +00:00
Bjørn Erik Pedersen
30885a6c5f
Fix module config watch regression
...
Fixes #11313
2023-08-01 09:05:53 +02:00
Joe Mooring
58da8554cb
deps: Fix Chroma dependency version
...
Fixes #11311
2023-07-31 21:01:43 +02:00
hugoreleaser
92c1594372
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-07-31 10:40:27 +00:00
hugoreleaser
5a7e0da84e
releaser: Bump versions for release of 0.116.0
...
[ci skip]
2023-07-31 10:28:28 +00:00
dependabot[bot]
d7db096a9d
build(deps): bump github.com/evanw/esbuild from 0.18.11 to 0.18.17
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.11 to 0.18.17.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.11...v0.18.17 )
---
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 >
2023-07-31 11:30:01 +02:00
Bjørn Erik Pedersen
c1df5b1b0b
config: Do not fail on unknown config keys
...
Make it a warning.
One such example I found in an old site is `blackfriday`. These should be fixed/removed, but it's not important enough
to fail the build.
2023-07-31 11:20:37 +02:00
Bjørn Erik Pedersen
be8e2de597
resources: Fix spelling in method name
2023-07-30 21:12:33 +02:00
Bjørn Erik Pedersen
d297c8e1b5
docs: Regenerate CLI docs
2023-07-30 18:54:08 +02:00
Bjørn Erik Pedersen
fbb8eb39ec
Fix so temporary images do not get published
...
Fixes #10255
2023-07-30 18:52:34 +02:00
Sojon
87d9bffe74
readme: Fix link
2023-07-30 11:06:31 +02:00
Joe Mooring
d9fdcbe939
commands: Update cacheDir description
2023-07-29 22:09:55 +02:00
Bjørn Erik Pedersen
295d733883
Update where.md
2023-07-29 22:06:22 +02:00
Bjørn Erik Pedersen
d5247788ee
docs: Update where
...
Go doesn't use the RE2 (C++) library, it's a pure Go implementation.
2023-07-29 19:27:30 +02:00
Joe Mooring
036e260d8d
docs: Update where function operators
...
Related to #11281
2023-07-29 16:11:53 +02:00
Bjørn Erik Pedersen
a50356b9a2
docs: Rework the cacheDir documentation
2023-07-29 11:59:37 +02:00
Bjørn Erik Pedersen
8859be1c01
Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'
2023-07-29 11:17:28 +02:00
Bjørn Erik Pedersen
87de22d746
Squashed 'docs/' changes from 85befbb4d..c43daf45f
...
c43daf45f Update build-options.md
3ebbfedd4 Build options: Improve readability
5091bf6a0 Improve safeHTMLAttr explanation
b64cbce2e Fix description of collections.Apply
6ea264b9c netlify: Hugo 0.115.4
b42e7c542 Revert "config: Remove disableLiveReload"
35ce2290e Remove excess spaces in configuration docs
2edf761de Update listed titleCaseStyle default value
887f6fb97 config: Remove disableLiveReload
c9f49fb26 Fix typo
37d8569ac Remove tools associated with Atom
871d11b72 Fix URL in postprocess docs
bbb17d29f Update GitLab workflow
bc53ea5ce Use sentence-style capitalization for headings
7ca578786 netlify: Hugo 0.115.3
c5e010bd0 Merge branch 'tempv0.115.3'
c885604bf Remove starter kits page
4c0fe269e Update mention of Netlify CMS to Decap CMS
05067175c Consistently use file name instead of filename
763dd6404 Improve multilingual config example and descriptions
e5aa61ec5 Use lowercase when referring to front matter (#2132 )
7ba3d0c72 docs: Refresh docs.json
de8bddedf Update description of timeout configuration value
e1245d9f8 netify: Hugo 0.115.2
153a36bdf Merge branch 'tempv0.115.2'
707cec754 Fix typo in figure example in shortcodes.md
128cbe1e5 Improve taxonomy template examples
4e743ec36 Improve highlight function example
f96fa6805 transpile sass: Fixes typo
e4a8a21f7 Compile Sass to CSS, not SCSS
c1538bd00 docs: Regenerate CLI docs
bd4e33436 Add titleCaseStyle none and firstupper
6ff93d478 Update quick-start.md
5c6653cb1 Update build config examples and explanation
1458d9a43 Remove the `url` parameter
6a1e92044 netlify: Hugo 0.115.1
a9d5d6f2f Merge branch 'tempv0.115.1'
4c4882384 docs: Regen docs helper
d1aa1c1f5 Add link to PowerShell vs Windows PowerShell documentation
6e3b70c21 Fix link to Git installation instructions
4f8a9ca38 Clarify resources.Copy arguments
ee86dd121 Update theme
dc7c305cf Update theme
60c23920b Clarify caching for resources.FromString (#2120 )
5bf2fef6d netlify: Hugo 0.115.0
46bde87c5 Merge branch 'tempv0.115.0'
42cc48c16 Specify target path caching for resources.ExecuteAsTemplate (#2027 )
a54bf4cd0 Correct the sample code of mermaid (#2119 )
8c49b06fc docs: Update permalinks documentation
a4818d99b Page bundles: link to info about single vs. list page templates (#2116 )
3fc7744d7 snap: Document removable media access
dbd08f58a Update theme
df5b88633 netlify: Hugo 0.114.1
6b859834a Fix typo
9ec92cf68 Improve Dart Sass example for Netlify
2d294ece9 Add Dart Sass installation and usage documentation
4c6b77d6c Fix placement of curly braces
897812a50 Update template-debugging.md to include a jsonify example
22bca519b Update GitHub Pages hosting instructions (#2109 )
a964d93ce Document math functions new in v0.114.0 (#2108 )
9f4cb040e netlify: Hugo 0.114.0
55b4d9221 Merge branch 'tempv0.114.0'
93c4dcf93 docs: Regen docshelper
96f03c77f docs: Regen CLI docs
8e22a228a Clarify resource media type variables (#2106 )
2652da8d4 Update transform.Unmarshal.md (#2105 )
92657177a Update theme
4601c1d65 Update theme
a216f3145 Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
eed8794f5 cache: Set default cache path based on $USER
git-subtree-dir: docs
git-subtree-split: c43daf45fd
2023-07-29 11:15:54 +02:00
Bjørn Erik Pedersen
bec9b80d95
Deprecate taxonomyTerm
...
In favour of 'taxonomy'
Closes #11256
2023-07-28 15:14:24 +02:00
Bjørn Erik Pedersen
1c97095ac0
Warn about unknown kinds in disableKinds
...
See #11256
2023-07-28 15:14:23 +02:00
Bjørn Erik Pedersen
b3cb6788b2
Move all Kind constants to its own package
...
See #11256
2023-07-28 15:14:23 +02:00
dependabot[bot]
5542f02fbc
build(deps): bump github.com/rogpeppe/go-internal
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.10.1-0.20230508101108-a4f6fabd84c5 to 1.11.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/commits/v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
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>
2023-07-28 14:50:56 +02:00
dependabot[bot]
0bc7ed9a17
build(deps): bump golang.org/x/image from 0.8.0 to 0.9.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/image/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-28 14:49:34 +02:00
Bjørn Erik Pedersen
36b5126050
Remove unused autogenerated method
2023-07-28 10:31:37 +02:00
Oleksandr Redko
2589b1295c
commands: Replace deprecated ioutil with os
2023-07-28 10:23:20 +02:00
Bjørn Erik Pedersen
ef6e813ca8
tpl/collections: Add BenchmarkWhereOps
...
```
BenchmarkWhereOps/eq-10 8702 120410 ns/op 52280 B/op 2515 allocs/op
BenchmarkWhereOps/ne-10 9829 120759 ns/op 52280 B/op 2515 allocs/op
BenchmarkWhereOps/like-10 6754 176377 ns/op 52917 B/op 2515 allocs/op
```
2023-07-28 10:08:13 +02:00
Joe Mooring
f4598a0986
tpl/collections: Add like operator to where function
...
Closes #11279
2023-07-28 09:53:00 +02:00
Joe Mooring
dc2a544fac
tpl/collections: Fix description of apply function
...
The collections.Apply template function cannot be used with maps.
2023-07-28 09:51:01 +02:00
Joe Mooring
916397320b
snap: Set cache location to $HOME/.cache/hugo_cache
2023-07-27 12:43:52 -07:00
Bjørn Erik Pedersen
b3f10556f0
Use os.UserCacheDir as first fallback if cacheDir is not set
...
We will now try
1. cacheDir (or, commonly set in environment as `HUGO_CACHEDIR`)
2. if on Netlify we use `/opt/build/cache/hugo_cache/`
3. os.UserCacheDir
4. A temp dir
Storing the cache, especially the module cache, in a temporary idea has had lots of hard to debug issues, especially on MacOS,
which this commit tries to fix.
This should also make it easier to locate the Hugo cache:
>UserCacheDir returns the default root directory to use for user-specific cached data. Users should create their own
application-specific subdirectory within this one and use that.
>
>On Unix systems, it returns $XDG_CACHE_HOME as specified by
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.cache. On Darwin, it
returns $HOME/Library/Caches. On Windows, it returns %LocalAppData%. On Plan 9, it returns $home/lib/cache.
>
>If the location cannot be determined (for example, $HOME is not defined), then it will return an error.
Fixes #11286
Fixes #11291
2023-07-27 20:59:47 +02:00
Bjørn Erik Pedersen
4d7af757c9
Add a common regexp cache
...
```
BenchmarkGetOrCompileRegexp-10 73959368 13.71 ns/op 0 B/op 0 allocs/op
BenchmarkCompileRegexp-10 3143529 380.1 ns/op 872 B/op 10 allocs/op
```
2023-07-27 19:23:12 +02:00
Bjørn Erik Pedersen
7f058b8bab
Fix multiple languages in HUGO_DISABLELANGUAGES
...
Fixes #11278
2023-07-27 15:51:25 +02:00
Joe Mooring
575d7f8068
snap: Allow access to SSH keys and $HOME/.config/hugo
...
Closes #11288
2023-07-26 22:15:21 -07:00
Joe Mooring
739d10e8bd
deps: Upgrade github.com/yuin/goldmark v1.5.4 => v1.5.5
2023-07-26 21:05:02 +02:00
hugoreleaser
0dbe0f1a07
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-20 07:02:18 +00:00
hugoreleaser
dc95245212
releaser: Bump versions for release of 0.115.4
...
[ci skip]
2023-07-20 06:49:57 +00:00
Bjørn Erik Pedersen
d70b6c7d01
Fix broken handling of legacy taxonomyTerm in disableKinds
...
Fixes #11257
2023-07-19 19:59:17 +02:00
Bjørn Erik Pedersen
d947db3713
commands: Move testscript into its correct place
2023-07-19 19:54:36 +02:00
Bjørn Erik Pedersen
d8c94c354a
publisher: Improve class collector for dynamic classes
...
E.g.
* AlpinesJS' :class="isTrue 'class1' : 'class2'"
* And dynamic classes with colon in them, e.g. `hover:bg-white`
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
6bbec90014
Fix cache busting setup
...
By correctly capturing the target variable when compiling the cache buster.
Fixes #11268
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
5bd22ba85f
commands: Delay server builds after the watcher is set up
...
See #11264
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
7ae62f4aa3
Create hugo_stats.json if it's mounted but does not exists
...
A common pattern for Tailwind 3 is to mount that file to get it on the server watch list.
A common pattern is also to add hugo_stats.json to .gitignore.
This has meant that the first time you start the server (no hugo_stats.json), it just doesn't work as expected.
Fixes #11264
2023-07-19 19:50:37 +02:00
Bjørn Erik Pedersen
f1a061e9ed
Re-instate disableLiveReload as a config option (and not just a flag)
...
Closes #11259
2023-07-19 19:50:37 +02:00
Joe Mooring
2f11e673c5
common/htime: Fix localization of abbreviated month names
...
Fixes #11267
2023-07-19 19:00:18 +02:00
Bjørn Erik Pedersen
387c5f60f9
Improve error messages for PostCSS etc.
...
Fixes #9730
2023-07-17 20:42:32 +02:00
Bjørn Erik Pedersen
c406fd3a0e
Fix setting config from env with complex (e.g. YAML) strings
...
So you can do
```
HUGO_OUTPUTS="home: [rss]" hugo
```
And similar.
Fixes #11249
2023-07-16 18:08:23 +02:00
David Karlsson
286821e360
Fix for data mounts in sub folders
...
Before this change, data files from Hugo modules were always mounted at the
root of the `data` directory. The File and FileMetaInfo structs for modules
are different from 'native' data directories.
This changes how the keyParts for data files are generated so that data
from modules or native directories are treated the same.
2023-07-15 11:13:08 +02:00
hugoreleaser
79f15be5b0
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-13 16:23:50 +00:00
hugoreleaser
5c2e014a51
releaser: Bump versions for release of 0.115.3
...
[ci skip]
2023-07-13 16:11:34 +00:00
Bjørn Erik Pedersen
cc44583cc3
Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled
...
1 .Create sitemapindex in root of publishDir (will contain link to sitemap.xml in defaultContentLanguage site)
2. Create index.html in root of publishDir (will redirect to defaultContentLanguage site)
Fixes #11229
2023-07-13 18:06:36 +02:00
Bjørn Erik Pedersen
4da672af88
Return error when .Render is invoked without arg
...
Fixes #11243
2023-07-13 18:06:36 +02:00
Joe Mooring
f1886f8c37
js: Pass tsconfig.json to esBuild
...
Note that esBuild only inspects/honors certain fields.
See https://esbuild.github.io/content-types/#tsconfig-json .
Fixes #11232
2023-07-13 15:19:04 +02:00
Bjørn Erik Pedersen
5bec50838c
tpl/collections: Fix WordCount (etc.) regression in Where, Sort, Delimit
...
Fixes #11234
2023-07-11 12:11:39 +02:00
Joe Mooring
f650e4d751
config/allconfig: Update timeout description
2023-07-08 23:22:26 +02:00
Joe Mooring
c934a45069
docs: Refresh docs.json
2023-07-08 23:20:11 +02:00
hugoreleaser
91b02091a5
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-08 17:19:03 +00:00
hugoreleaser
8966424e0e
releaser: Bump versions for release of 0.115.2
...
[ci skip]
2023-07-08 17:06:56 +00:00
Joe Mooring
72510969a6
snap: Allow access to AWS, Azure, and GCS config/credentials
...
Fixes #11122
2023-07-08 09:43:04 -07:00
Joe Mooring
70c5e485bb
snap: Update metadata and security.exec.osEnv
...
See #11217
2023-07-08 09:43:04 -07:00
Bjørn Erik Pedersen
a78b17d7f1
Make imageConfig work with modules
...
Fixes #11205
2023-07-08 17:20:18 +02:00
Bjørn Erik Pedersen
a481942532
Restore language.disabled config
...
Fixes #11219
2023-07-08 16:51:48 +02:00
Bjørn Erik Pedersen
0f921ace6f
Fix hugo mod vendor for modules with hugo.toml
...
Fixes #11221
2023-07-08 16:08:46 +02:00
Bjørn Erik Pedersen
6019953769
Fix static content files multilingual root regression
...
Fixes #11223
2023-07-08 16:08:46 +02:00
Bjørn Erik Pedersen
92e86702ea
Fix defaultContentLanguageInSubdir with only 1 language
...
Fixes #10064
2023-07-08 16:08:46 +02:00
David Karlsson
6c9ea022a9
config: Expand default security.exec.osEnv policy
...
To better support private Hugo modules and automatically
launching a text editor on content creation, this change
adds the following environment variables to the default
security policy:
- HOME
- XDG_CONFIG_HOME
- USERPROFILE
- SSH_AUTH_SOCK
- DISPLAY
- LANG
Fixes #9333
2023-07-07 13:54:06 +02:00
Bjørn Erik Pedersen
12d3469dd1
Add titleCaseStyle none and firstupper
...
Fixes #11204
2023-07-05 20:35:20 +02:00
Anthony Fok
bf7ee8a91a
Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0
2023-07-04 09:14:48 +02:00
hugoreleaser
d912491f2d
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-03 17:39:56 +00:00
hugoreleaser
857374e693
releaser: Bump versions for release of 0.115.1
...
[ci skip]
2023-07-03 17:28:25 +00:00
Bjørn Erik Pedersen
c27639b9a0
docs: Regen docs helper
2023-07-03 19:25:27 +02:00
Bjørn Erik Pedersen
ceb486f98c
Fix buildStats when tags and classes are disabled
...
Fixes #11202
2023-07-03 09:58:33 +02:00
Bjørn Erik Pedersen
5afc89f2bf
Rework the build.writeStats struct
...
Mostly to make it easier to toggle on/off this feature from the env.
See #11191
2023-07-02 13:04:11 +02:00
Joe Mooring
c1eac616d5
snap: Explicitly set security.exec.osenv during build
...
Fixes #11199
2023-07-01 17:55:23 -07:00
Joe Mooring
3c8256a137
snap: Restore security.exec.osenv whitelist
...
Fixes #11195
2023-07-01 14:55:57 -07:00
Bjørn Erik Pedersen
19d76ae96b
github: Build for Dragonfly in CI build
...
To discover upstream issues before we release.
2023-07-01 18:53:48 +02:00
Bjørn Erik Pedersen
11ecea6106
Make build.writeStats a struct
...
So you can do
```toml
[build.writeStats]
tags = true
classes = true
ids = false
```
Fixes #11191
2023-07-01 15:38:32 +02:00
dependabot[bot]
da98724bc8
build(deps): bump github.com/evanw/esbuild from 0.18.10 to 0.18.11
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.10 to 0.18.11.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.10...v0.18.11 )
---
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 >
2023-07-01 15:33:24 +02:00
dependabot[bot]
4d470bb732
build(deps): bump github.com/alecthomas/chroma/v2 from 2.7.0 to 2.8.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.7.0...v2.8.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-01 10:33:49 +02:00
Bjørn Erik Pedersen
0ff8e13c1c
commands: Fix index out of range in hugo mod get
...
Fixes #11190
2023-06-30 15:57:46 +02:00
Bjørn Erik Pedersen
ffd37d4f75
Only print the path warnings once
...
We could reset and rerun it on server rebuilds, but that report needs a full build to make sense.
Also clean up the config vs flags in this area: Make all config settings match the flags e.g. `printPathWarnings`, but set up aliases for the
old.
Fixes #11187
2023-06-30 10:24:28 +02:00
Bjørn Erik Pedersen
b4b65245b2
Update README.md
2023-06-30 08:01:25 +02:00
hugoreleaser
87886f40d1
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-06-29 16:09:06 +00:00
hugoreleaser
67caf50698
releaser: Bump versions for release of 0.115.0
...
[ci skip]
2023-06-29 15:56:39 +00:00
Bjørn Erik Pedersen
7917961d59
Misc permalinks adjustments
...
* Move config loading to the page package
* Fix a lower bound panic for the `:sections` slice syntax.
* Always return the `:title`
* Add some permalinks integration tests
* Also see issues below
Fixes #9448
Fixes #11184
See #8523
2023-06-29 10:14:19 +02:00
Bjørn Erik Pedersen
80ecb95895
commands: Handle hugo mod get --help
...
Fixes #11141
2023-06-29 08:53:50 +02:00
Joe Mooring
58e09cc6c7
Update README.md
2023-06-28 20:14:41 +02:00
Andreas Deininger
635cc346ce
commands: Fix panic when running hugo new theme without theme name
...
Closes #11162 .
2023-06-28 16:20:54 +02:00
Mos Roshanavand
12646750aa
Print help message when triggered with no flags
2023-06-28 14:58:36 +02:00
Bjørn Erik Pedersen
79639c981c
Fix output formats and media type per language config regression
...
Fixes #11159
2023-06-28 12:33:33 +02:00
dependabot[bot]
9b313cec1b
build(deps): bump github.com/evanw/esbuild from 0.18.5 to 0.18.10
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.5 to 0.18.10.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.5...v0.18.10 )
---
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 >
2023-06-28 10:22:19 +02:00
khayyam
b74b8d6478
common/collections: Fix append regression to allow appending nil
...
Closes #11180
2023-06-28 09:41:36 +02:00
Andreas Deininger
793e38f5ce
commands: Fix help message for hugo new theme
...
Closes #11161 .
2023-06-28 09:30:27 +02:00
Bjørn Erik Pedersen
7f698c8934
Don't panic on invalid security whitelist regexp
...
Fixes #11176
2023-06-28 08:57:28 +02:00
Bjørn Erik Pedersen
fa0e16f4c7
Fix false path warnings with resources.PostProcess
...
Fixes #7735
2023-06-27 21:55:35 +02:00
Joe Mooring
12e4c4d5dc
docs: Update permalinks documentation
...
See #8523
See #10847
2023-06-27 11:04:49 +02:00
Bjørn Erik Pedersen
bac03f4076
Merge branch 'master' of github.com:gohugoio/hugo
2023-06-26 20:48:44 +02:00
Mai-Lapyst
cc14c6a52c
resources/page: Allow section and taxonomy pages to have a permalink configuration
...
Allows using permalink configuration for sections (branch bundles) and
also for taxonomy pages. Extends the current permalink configuration to
be able to specified per page kind while also staying backward compatible:
all permalink patterns not dedicated to a certain kind, get automatically
added for both normal pages and term pages.
Fixes #8523
2023-06-26 15:31:01 +02:00
Oleksandr Redko
e3308a0bbc
tpl/tplimpl: Fix typo in global variable name
2023-06-26 15:12:21 +02:00
Joe Mooring
019299b0b0
commands: Enable format flag with hugo new site
...
Fixes #11155
2023-06-24 20:26:54 +02:00
Bjørn Erik Pedersen
23ed087c4e
Update README.md
2023-06-24 11:28:29 +02:00
Bjørn Erik Pedersen
a018259bcf
Merge branch 'release-0.114.1'
2023-06-23 13:18:21 +02:00
hugoreleaser
ad5e04daa4
releaser: Prepare repository for 0.115.0-DEV
...
[ci skip]
2023-06-23 11:14:00 +00:00
hugoreleaser
e9b716ad98
releaser: Bump versions for release of 0.114.1
...
[ci skip]
2023-06-23 11:02:58 +00:00
Bjørn Erik Pedersen
ae31dbdd1e
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.30.0"
...
This reverts commit 941818295d .
2023-06-23 13:01:09 +02:00
Bjørn Erik Pedersen
5b4bfc2db7
Fix broken nodeploy setup
...
Fixes #11149
2023-06-23 12:40:43 +02:00
dependabot[bot]
92f55f1121
build(deps): bump github.com/niklasfasching/go-org from 1.6.6 to 1.7.0
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.6.6 to 1.7.0.
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.6.6...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-23 12:17:35 +02:00
Bjørn Erik Pedersen
078226dd66
Fix broken nodeploy setup
...
Fixes #11149
2023-06-23 12:11:45 +02:00
Joe Mooring
06d228aad1
snap: Switch from Embedded Dart Sass to Dart Sass ( #11146 )
...
- Continues to get latest version of Dart Sass during each build
- Removes superfluous BUILD_TAGS logic (we only build extended)
2023-06-21 15:39:02 -07:00
Bjørn Erik Pedersen
b1016d2e26
commands: Make hugo env respect --logLevel
...
Fixes #11145
2023-06-21 23:18:38 +02:00
Brian Knight
49336bfc58
commands: Update Jekyll post-import output
...
Update CLI output after a successful Jekyll import to
suggest a maintained theme and include clearer steps
to running a server locally.
Fixes #10715
Co-authored-by: Joe Mooring <joe@mooring.com >
2023-06-21 20:38:54 +02:00
dependabot[bot]
941818295d
build(deps): bump gocloud.dev from 0.24.0 to 0.30.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.30.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.30.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 >
2023-06-20 14:25:37 +02:00
dependabot[bot]
5491e55477
build(deps): bump github.com/evanw/esbuild from 0.18.4 to 0.18.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.4 to 0.18.5.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.4...v0.18.5 )
---
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 >
2023-06-20 09:57:34 +02:00
Joe Mooring
bf7af9043d
deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.7
...
Fixes #11132
2023-06-20 09:18:18 +02:00
hugoreleaser
5e12bf7dc3
releaser: Prepare repository for 0.115.0-DEV
...
[ci skip]
2023-06-19 17:12:27 +00:00
hugoreleaser
9df2ec7988
releaser: Bump versions for release of 0.114.0
...
[ci skip]
2023-06-19 17:01:43 +00:00
Bjørn Erik Pedersen
59300faae4
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0"
...
This reverts commit 7bed16c30f .
Again ...
It doesn't build on Dragonfly:
```
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:273:15: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:279:65: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:281:22: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:287:39: undefined: mmb
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:293:18: undefined: newMMB
../gomodcache/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.0.0/blockblob/chunkwriting.go:303:37: undefined: mmb
• core: Total in 123.22s …
error running command: exit status 1
Exited with code exit status 1
```
2023-06-19 18:56:31 +02:00
Bjørn Erik Pedersen
9f98b3e718
docs: Regen docshelper
2023-06-19 17:52:52 +02:00
Bjørn Erik Pedersen
3ab84651c6
Add empty Environ when loading test config
...
To prevent OS environment vars confusing the tests.
2023-06-19 17:49:45 +02:00
Bjørn Erik Pedersen
7241b5fd51
docs: Regen CLI docs
2023-06-19 17:40:17 +02:00
Bjørn Erik Pedersen
6dfbd24797
common/loggers: Drop the bold INFO etc. prefixes
...
That looked a little too much.
2023-06-19 17:35:43 +02:00
Bjørn Erik Pedersen
f59c3c0214
loggers: Avoid using Logf for the LevelLoggerToWriter
...
To prevent issues with percentage chars.
2023-06-19 15:56:44 +02:00
Bjørn Erik Pedersen
3ca29b1563
tocss/dartsas: Avoid using Logf for the internal Dart Sass logging
...
As that does not work when percentages are used in the log messages.
2023-06-19 13:27:03 +02:00
Bjørn Erik Pedersen
fdb0b7fb19
helpers: Remove superflous formatting flag in deprecation warnings
2023-06-19 13:02:47 +02:00
Bjørn Erik Pedersen
49dd53a405
Revert "deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6"
...
This reverts commit 409c6c3fcd .
See #11132
2023-06-19 12:54:15 +02:00
Andreas Deininger
68d9d3ebd7
all: Fix some typos
2023-06-19 09:28:10 +02:00
Oleksandr Redko
9009c8cdca
all: Fix typos in function names and comments
2023-06-19 09:26:29 +02:00
Bjørn Erik Pedersen
12dc9a6e4a
deploy: Fix deploy defaults for non-zero flag values (e.g. maxDeletes, invalidateCDN)
...
This was broken in the config rewrite in Hugo 0.112.0.
The workaround is to be explicit about setting these flag values (even if just using the defaults), e.g.:
```
hugo deploy --invalidateCDN --maxDeletes 256
```
Fixes #11127
2023-06-18 19:38:34 +02:00
Bjørn Erik Pedersen
1b85303ac2
common/loggers: Re-add trailing newline in logger.Printf
...
Fixes #11130
2023-06-18 18:56:45 +02:00
dependabot[bot]
8a04d47ab7
build(deps): bump github.com/evanw/esbuild from 0.18.3 to 0.18.4
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.3 to 0.18.4.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.3...v0.18.4 )
---
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 >
2023-06-18 13:43:00 +02:00
Bjørn Erik Pedersen
7c9fada778
Replace the old log setup, with structured logging etc.
...
Fixes #11124
2023-06-18 13:03:04 +02:00
Joe Mooring
0e79446586
Revert "snap: Transition base snap from core20 to core22 ( #11101 )" ( #11125 )
...
Closes #11116
2023-06-17 08:41:15 -07:00
dependabot[bot]
aaf2e9693a
build(deps): bump github.com/evanw/esbuild from 0.18.2 to 0.18.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.18.2 to 0.18.3.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.2...v0.18.3 )
---
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 >
2023-06-16 07:42:25 +02:00
Bjørn Erik Pedersen
ee359df172
Fix upstream Go templates bug with reversed key/value assignment
...
The template packages are based on go1.20.5 with the patch in befec5ddbbfbd81ec84e74e15a38044d67f8785b added.
This also includes a security fix that now disallows Go template actions in JS literals (inside backticks).
This will throw an error saying "... appears in a JS template literal".
If you're really sure this isn't a security risk in your case, you can revert to the old behaviour:
```toml
[security]
[security.gotemplates]
allowActionJSTmpl = true
```
See https://github.com/golang/go/issues/59234
Fixes #11112
2023-06-15 23:04:33 +02:00
dependabot[bot]
0f989d5e21
build(deps): bump golang.org/x/sync from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/sync](https://github.com/golang/sync ) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/golang/sync/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sync
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-15 19:52:14 +02:00
Bjørn Erik Pedersen
f73c567534
common/collections: Always make a copy of the input slice in Append
...
Fixes #10458 .
2023-06-14 20:18:54 +02:00
Bjørn Erik Pedersen
d178fe94fe
tpl/collections: Fix append when appending a slice to a slice of slices
...
Fixes #11093
2023-06-14 20:18:54 +02:00
dependabot[bot]
732dcb848f
build(deps): bump google.golang.org/api from 0.123.0 to 0.127.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.123.0 to 0.127.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.123.0...v0.127.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 18:59:07 +02:00
dependabot[bot]
944859f1ad
build(deps): bump golang.org/x/tools from 0.9.1 to 0.9.3
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 14:43:15 +02:00
Bjørn Erik Pedersen
90b2674ddc
Re-add site.RSSLink (and deprecate it)
...
Fixes #11110
2023-06-14 12:18:11 +02:00
dependabot[bot]
bb9377b5e5
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.11 to 2.2.12
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.11 to 2.2.12.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.11...v2.2.12 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 12:06:11 +02:00
dependabot[bot]
e88f1b80b8
build(deps): bump github.com/getkin/kin-openapi from 0.117.0 to 0.118.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.117.0 to 0.118.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.117.0...v0.118.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 >
2023-06-14 12:05:47 +02:00
dependabot[bot]
516f0cb6ce
build(deps): bump golang.org/x/net from 0.10.0 to 0.11.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-14 11:58:31 +02:00
Bjørn Erik Pedersen
21d17566a3
Fix .Width and .Height for animated gifs
...
Fixes #11079
2023-06-14 09:21:22 +02:00
Joe Mooring
35e9b3ed1e
snap: Transition base snap from core20 to core22 ( #11101 )
...
- Syntax changes
- Bump Go from 1.19 to 1.20
- Remove unused build tag logic (we only build the extended version)
2023-06-13 14:52:19 -07:00
Bjørn Erik Pedersen
3c1deaf201
Squashed 'docs/' changes from 1d5548d73..85befbb4d
...
85befbb4d Update plainify.md
56e137043 Update comparison operators (#2104 )
4241135e0 Front matter docu: improve link to TOML spec (#2102 )
5115de3c0 netlify: Hugo 0.113.0
99b74a053 Merge branch 'temp01130'
1622d5d1a docs: Regenerate CLI docs
adb4297eb netlify: Hugo 0.112.7
cd6813309 Update editors.md to include vim-hugo (#2098 )
f7c2406dd netlify: Hugo 0.112.6
b891028c3 docs: Regenerate CLI docs
git-subtree-dir: docs
git-subtree-split: 85befbb4dc
2023-06-13 20:43:03 +02:00
Bjørn Erik Pedersen
a0009e070a
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
2023-06-13 20:43:03 +02:00
dependabot[bot]
7bed16c30f
build(deps): bump gocloud.dev from 0.24.0 to 0.29.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.29.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 >
2023-06-13 20:42:04 +02:00
Bjørn Erik Pedersen
2ba2271e4a
tpl/math: Allow variadic math functions to take slice args, add math.Product, math.Sum
...
* Update math.Min and math.Max to allow 1 or more args, either scalar or slice, or combination of the two
* Add math.Sum (allow 1 or more args, either scalar or slice, or combination of the two)
* Add math.Product (allow 1 or more args, either scalar or slice, or combination of the two)
Fixes #11030
2023-06-13 20:00:00 +02:00
Bjørn Erik Pedersen
60a2cdf72d
Fix config merge regression with root slices (e.g. disableKinds)
...
Fixes #11089
2023-06-13 18:01:23 +02:00
dependabot[bot]
e08cfc8ca0
build(deps): bump golang.org/x/image from 0.7.0 to 0.8.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/image/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 17:55:34 +02:00
Bjørn Erik Pedersen
ef147f4e87
commands: Remove flags log, verboseLog, add flag logLevel, deprecate flags verbose and debug
...
Fixes #9648
Fixes #11071
2023-06-13 17:49:38 +02:00
dependabot[bot]
489519566e
build(deps): bump github.com/magefile/mage from 1.14.0 to 1.15.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/magefile/mage/releases )
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml )
- [Commits](https://github.com/magefile/mage/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 12:59:49 +02:00
dependabot[bot]
91c0b0f76b
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.8
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 12:58:44 +02:00
dependabot[bot]
baef235d50
build(deps): bump github.com/evanw/esbuild from 0.17.19 to 0.18.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.17.19 to 0.18.2.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.19...v0.18.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-13 12:57:46 +02:00
Bjørn Erik Pedersen
0541a1b57d
Fix handling of aliases (e.g. hugo serve)
...
Fixes #11090
2023-06-13 10:47:51 +02:00
Erica Mays
258884f44f
cache: Set default cache path based on $USER
...
Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so
that multi-user systems do not have caches that interfere with each
other. The other cache-choosing logic (e.g. Netlify exceptions,
configuration options) are not affected.
Fixes #7391
2023-06-12 21:33:35 +02:00
dependabot[bot]
254c2b323c
build(deps): bump go.uber.org/atomic from 1.10.0 to 1.11.0
...
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/uber-go/atomic/releases )
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/atomic/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/atomic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 21:02:49 +02:00
dependabot[bot]
84f71ba8ff
build(deps): bump github.com/hairyhenderson/go-codeowners
...
Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners ) from 0.2.3-0.20201026200250-cdc7c0759690 to 0.3.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases )
- [Commits](https://github.com/hairyhenderson/go-codeowners/commits/v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 18:00:11 +02:00
Bjørn Erik Pedersen
69f0e88a4a
resources: Remove failing and superflous test assertion
2023-06-12 17:57:18 +02:00
dependabot[bot]
82adc972e8
build(deps): bump github.com/frankban/quicktest from 1.14.4 to 1.14.5
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.4 to 1.14.5.
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.4...v1.14.5 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 17:57:18 +02:00
dependabot[bot]
60533fdc06
build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.19
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.17 to 0.0.19.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.19 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 17:03:22 +02:00
dependabot[bot]
261143bbbc
build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.3 to 1.9.5.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.3...v1.9.5 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-12 17:03:04 +02:00
Oleksandr Redko
b8526f32fa
commands,config: Fix typo in log and error messages
2023-06-12 16:45:20 +02:00
Bjørn Erik Pedersen
ed7e250068
helpers: Avoid url.Parse in RelURL and AbsURL if we can
...
```
RelURL-10 159ns ± 5% 18ns ± 4% -88.89% (p=0.029 n=4+4)
AbsURL/relurl-10 532ns ± 0% 537ns ± 0% +1.09% (p=0.029 n=4+4)
AbsURL/absurl-10 142ns ± 0% 4ns ± 3% -96.91% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelURL-10 144B ± 0% 0B -100.00% (p=0.029 n=4+4)
AbsURL/relurl-10 544B ± 0% 544B ± 0% ~ (all equal)
AbsURL/absurl-10 144B ± 0% 0B -100.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
RelURL-10 1.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
AbsURL/relurl-10 10.0 ± 0% 10.0 ± 0% ~ (all equal)
AbsURL/absurl-10 1.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
```
2023-06-12 16:15:59 +02:00
Bjørn Erik Pedersen
6a09e7f28e
Adjust benchmarks
2023-06-12 16:06:11 +02:00
Bjørn Erik Pedersen
29e5cbb699
Adjust benchmark
2023-06-12 15:18:41 +02:00
Bjørn Erik Pedersen
ded6866001
Add BenchmarkAbsURL
2023-06-12 15:15:28 +02:00
Joe Mooring
e1d43021ca
helpers: Improve schema detection when creating relative URLs
...
Fixes #11080
2023-06-12 15:01:30 +02:00
Bjørn Erik Pedersen
5db215d4d6
helpers: Add a basic benchmark for RelURL
2023-06-12 14:44:07 +02:00
Bjørn Erik Pedersen
b7dc93ca11
config: Remove unexpected _merge keys introduced in author and social maps
...
Fixes #11083
2023-06-12 14:30:43 +02:00
Bjørn Erik Pedersen
f210188da3
Upgrade to v2 of the Dart Sass Embedded Protocol
...
Fixes #11059
2023-06-12 13:47:38 +02:00
Bjørn Erik Pedersen
c782ebd89c
Fix indented SASS imports for Dart Sass
...
Fixes #11074
2023-06-12 13:47:38 +02:00
hugoreleaser
73779707a2
releaser: Prepare repository for 0.114.0-DEV
...
[ci skip]
2023-06-05 15:16:33 +00:00
hugoreleaser
085c1b3d61
releaser: Bump versions for release of 0.113.0
...
[ci skip]
2023-06-05 15:04:51 +00:00
Bjørn Erik Pedersen
6c955cc3df
docs: Regenerate CLI docs
2023-06-05 11:54:57 +02:00
Bjørn Erik Pedersen
5446900dee
commands: Update CLI docs vs server and production
...
Fixes #11067
2023-06-05 11:53:14 +02:00
Bjørn Erik Pedersen
cf38c73f53
commands: Add TLS/HTTPS support to hugo server
...
* commands: Add TLS/HTTPS support to hugo server
The "auto cert" handling in this PR is backed by mkcert (see link below).
To get this up and running on a new PC, you can:
```
hugo server trust
hugo server --tlsAuto
```
When `--tlsAuto` (or `--tlsCertFile` and `--tlsKeyFile`) is set and no `--baseURL` is provided as a flag, the server is
started with TLS and `https` as the protocol.
Note that you only need to run `hugo server trust` once per PC.
If you already have the key and the cert file (e.g. by using mkcert directly), you can do:
```
hugo server --tlsCertFile mycert.pem --tlsKeyFile mykey.pem
```
See https://github.com/FiloSottile/mkcert
Fixes #11064
2023-06-05 09:53:53 +02:00
hugoreleaser
536bf71abe
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-02 07:19:22 +00:00
hugoreleaser
ea3c95a7b0
releaser: Bump versions for release of 0.112.7
...
[ci skip]
2023-06-02 07:07:11 +00:00
Bjørn Erik Pedersen
5e5ce00d41
Fix menuItem.URL when pageRef is not set
...
Fixes #11062
2023-06-02 09:04:00 +02:00
Bjørn Erik Pedersen
a191b38ac8
Don't inject livereload script on hugo -w
...
Fixes #11061
2023-06-02 09:04:00 +02:00
Oleksandr Redko
382c726e63
markup: Fix typo in function and struct names
2023-06-01 17:59:44 +02:00
Oleksandr Redko
4c46f9400b
all: Replace deprecated ioutil with io and os
2023-06-01 17:52:21 +02:00
hugoreleaser
8c7a4e995b
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-01 09:15:08 +00:00
hugoreleaser
2ca0fcc448
releaser: Bump versions for release of 0.112.6
...
[ci skip]
2023-06-01 09:03:29 +00:00
Bjørn Erik Pedersen
a6d774e809
docs: Regenerate CLI docs
2023-06-01 10:51:41 +02:00
Bjørn Erik Pedersen
dfb1895e4b
Squashed 'docs/' changes from 1798dc0d5..1d5548d73
...
1d5548d73 build.cachebusters
3c966904d netlify: Hugo 0.112.5
b32c3a811 Bump min Go version to 1.19 when building from source (#2095 )
9dea2d2f9 netlify: Hugo 0.112.4
b3fb4a1bc docs: Regenerate CLI docs
291ecd301 docs: Regen CLI docs
c886958e2 Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
git-subtree-dir: docs
git-subtree-split: 1d5548d735
2023-06-01 10:51:24 +02:00
Bjørn Erik Pedersen
9e4072ac23
Merge commit 'dfb1895e4b82b2249d9baaed37ac7ae5e855a126'
2023-06-01 10:51:24 +02:00
Bjørn Erik Pedersen
0ef2952846
commands: Add --lang to hugo config
...
Fixes #11057
2023-06-01 10:49:21 +02:00
Bjørn Erik Pedersen
e3ae8f025d
Make sure any default mounts show up in "hugo config"
...
Fixes #11040
2023-06-01 10:49:21 +02:00
Bjørn Erik Pedersen
06faee5beb
github: Fix Windows build
...
Also update some Actions to get rid of some warnings.
Fixes #11052
2023-06-01 09:54:40 +02:00
Joe Mooring
409c6c3fcd
deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6
2023-05-31 08:08:26 +02:00
Joe Mooring
ff77a927f9
tpl/tplimpl: Use .Language.LanguageCode in built-in templates
2023-05-30 20:10:16 +02:00
Bjørn Erik Pedersen
9cdca1f958
Fail on invalid defaultContentLanguage
...
Fixes #11044
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
6462eecfbd
Avoid panic in invalid language config
...
Fixes #11046
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
a7d6b1413f
Don't panic on empty yaml config params
...
Fixes #11047
2023-05-30 15:59:43 +02:00
Bjørn Erik Pedersen
3f497d496f
Prevent double escaping of image alt-text in Goldmar typographer
...
Fixes #11045
2023-05-30 15:03:54 +02:00
Bjørn Erik Pedersen
32585696be
Fix potential deadlock in ByParam
...
Fixes #11039
2023-05-29 14:01:07 +02:00
hugoreleaser
d47225ce9e
releaser: Bump versions for release of 0.112.5
...
[ci skip]
2023-05-29 06:43:02 +00:00
Bjørn Erik Pedersen
e3dfc76fa8
Fix it so languageCode on top level config still works
...
This is common for monolingual sites, and we broke this in Hugo 0.112.4.
Fixes #11037
2023-05-28 18:42:10 +02:00
hugoreleaser
cd59216de4
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-28 13:15:07 +00:00
hugoreleaser
e285153d7f
releaser: Bump versions for release of 0.112.4
...
[ci skip]
2023-05-28 13:04:00 +00:00
Bjørn Erik Pedersen
20ea2e0c65
docs: Regenerate CLI docs
2023-05-28 13:07:47 +02:00
Bjørn Erik Pedersen
51d0a0ab01
commands: Add the common build flags to the config commands
...
Which allows to see the config with `--theme` applied.
Updates #11018
2023-05-28 13:06:26 +02:00
Bjørn Erik Pedersen
fd099331ec
Fix Processed images count regression for multiple languages
...
Fixes #11002
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
43f1282e73
commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod
...
Fixes #11018
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
e96cdfe966
Don't create the public folder unless needed
...
Fixes #11031
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
ffdbce5787
docs: Regen CLI docs
2023-05-27 17:03:14 +02:00
Bjørn Erik Pedersen
a838a27e4c
Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
2023-05-27 17:02:23 +02:00
Bjørn Erik Pedersen
d3927310d5
Squashed 'docs/' changes from 39af43ef1..1798dc0d5
...
1798dc0d5 Update theme
403fa716e Update CLI documentation (#2092 )
aade5a09e Correct media subtype example
53cd9dea6 netlify: Hugo 0.112.3
b78b86cb1 Add source/target warning to resources.Copy (#2091 )
50c299729 netlify: Hugo 0.112.2
73197046f Change config.xxx to hugo.xxx throughout the documentation (#2090 )
d489d4c6f Add hugo.WorkingDir to docs (#2089 )
7487df809 Fix typos (#2088 )
6d0572cd6 netlify: Hugo 0.112.1
6838600b2 netlify: Hugo 0.112.0
513e7a80f Merge branch 'tempv0.112.0'
91eb44275 Some more about 0.112.0
bd3b33a27 docs: Regen docshelper
fb3027daf docs: Regen CLI docs
8e7b8e987 Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
a942ceef4 tpl/tplimpl: Add img loading attribute to figure shortcode (#10927 )
0e0c7b25e tpl/urls: Return empty string when JoinPath has zero args
310ce949a tpl/urls: Add JoinPath template function
ae435ca77 tpl: Add math.Abs
f340139f8 Revert "Update syntax-highlighting.md (#10929 )" (#10930 )
917a0e24d Update syntax-highlighting.md (#10929 )
git-subtree-dir: docs
git-subtree-split: 1798dc0d54
2023-05-27 16:59:59 +02:00
Bjørn Erik Pedersen
273d9f69a6
commands: Fail the build when no config file or config dir
...
Fixes #11019
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
a6257d8a44
langs: Remove the Language.Params deprecation message for now
...
Closes #11025
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
6c2db0dfb0
Add language.LanguageCode
...
But keep an alias at Site
Closes #11027
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
8f293a1855
Fix --renderStaticToDisk regression
...
Fixes #11026
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
901cd970db
commands: Re-introduce the -f shorthand for hugo new site
...
Fixes #11015
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
f86b5f70a6
commands: Move the --format flag to only the commands that support it
...
Fixes #11022
2023-05-27 16:56:54 +02:00
hugoreleaser
3297b395d8
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 14:54:43 +00:00
hugoreleaser
ba6f74e404
releaser: Bump versions for release of 0.112.3
...
[ci skip]
2023-05-24 14:42:50 +00:00
Bjørn Erik Pedersen
231374a1fa
Fix regression when loading config -e is empty or HUGO_ENV or HUGO_ENVIRONMENT is set
...
Fixes #11013
2023-05-24 16:39:31 +02:00
hugoreleaser
5adc837904
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 10:57:20 +00:00
hugoreleaser
f89108f2b1
releaser: Bump versions for release of 0.112.2
...
[ci skip]
2023-05-24 10:45:31 +00:00
Bjørn Erik Pedersen
dd67922013
minifiers: Make sure JS.Version always has a value
...
Fixes #11012
2023-05-24 12:42:56 +02:00
Bjørn Erik Pedersen
9a235d0afc
Fix regression with site.IsServer when not running a server
...
Fixes #11006
2023-05-24 12:42:56 +02:00
hugoreleaser
99407c39ba
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 17:38:44 +00:00
hugoreleaser
7c90c19d28
releaser: Bump versions for release of 0.112.1
...
[ci skip]
2023-05-23 17:26:16 +00:00
Bjørn Erik Pedersen
ed906a86e2
Fix regression when config for OutputFormat.BaseName is an empty string
...
Fixes #11000
2023-05-23 19:23:39 +02:00
hugoreleaser
d666edad71
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 08:25:56 +00:00
hugoreleaser
0a95d6704a
releaser: Bump versions for release of 0.112.0
...
[ci skip]
2023-05-23 08:14:20 +00:00
Bjørn Erik Pedersen
70b2aaf873
circleci: Add github.com to known hosts
2023-05-23 10:12:16 +02:00
Bjørn Erik Pedersen
f014921159
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0"
...
This reverts commit baa5569042 .
See #10993
2023-05-23 09:24:58 +02:00
Bjørn Erik Pedersen
bd38e35f97
Revert "postcss: Improve validation of option 'config'"
...
This reverts commit 9a0370e8eb .
Closes #10990
2023-05-22 20:31:59 +02:00
Bjørn Erik Pedersen
85b13c105a
Add --format to hugo config
...
Now default to TOML.
2023-05-22 20:26:02 +02:00
Bjørn Erik Pedersen
b6e6438f7f
docs: Regen docshelper
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
943ff7f7ce
commands: Add missing gen docshelper command
...
Updates #10953
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
288be1976d
Fix "unknown command" message when no suggestion
...
Updates #10953
2023-05-22 18:54:34 +02:00
Andreas Deininger
9a0370e8eb
postcss: Improve validation of option 'config'
2023-05-22 18:14:10 +02:00
Bjørn Erik Pedersen
10d0fcc01f
docs: Regen CLI docs
2023-05-22 16:48:58 +02:00
Bjørn Erik Pedersen
b95e156940
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
2023-05-22 16:47:07 +02:00
Bjørn Erik Pedersen
f96384a3b5
Squashed 'docs/' changes from 6e32d0591..39af43ef1
...
39af43ef1 Update postprocess.md
3ec192d08 Update multilingual.md
7fc7bf862 Add a note about some changes in 0.112.0
742510ae8 Fix ordinal abbrev example
fe557031a Correct spelling for 'GitHub' and 'GitLab' (#2082 )
84a059b9a Fix typo in hosting-on-azure.md (#2080 )
3383786fe Add i18n to list of directories affected by ignoreFiles
5bfb95234 Update 404.md (#2076 )
87545a4fd Update hosting-on-cloudflare-pages.md (#2078 )
aa5952c28 Add default module mount to example (#2075 )
ced5292c8 Align permalinks examples (#2073 )
77b5009fd Fix typo
c79319a6a Clarify description of baseURL
e93a9807b Fix typo in frontmatter description (#2071 )
05fe9163a Remove erroneous statement
aa59ef383 docs: Remove note about hugo server not using 404 (#2068 )
4a387a6b8 Clarify findRESubmatch (#2065 )
47a9181b5 Clarify findRE, replaceRE, and findRESubmatch (#2064 )
e5eedbb5e Update theme
5d392c3d4 Clarify pageRef menu property (#2059 )
a557b0ebf Fix typos on Configure Hugo page (#2058 )
17ef283e6 Clarify module.replacements wording (#2052 )
5db4aa421 Fixing broken links (#2057 )
9afa0c2fa Fix broken links (#2055 )
49b981b1f Correct repo URL for migration tool (contentful.com) (#2056 )
969c24c16 Remove duplicate content
0b91e7676 Revert "Delete duplicate content"
3229e79f2 Delete duplicate content
ec4eddb98 Fix typo
6509159d5 Describe snap package strict confinement (#2050 )
1589bcdb7 Remove hugo.Generator admonition (#2048 )
7e553d11b Add example
48bec0335 Replace blockquotes with admonitions where appropriate (#2043 )
98226fe61 Remove orphaned param fron admonition calls (#2042 )
2a37a1d21 Clarify cast functions (#2041 )
03fd1d404 Fix typo
1898013ef Fix typos
944e27430 Replace output shortcode calls
0c66fb055 Add example of shortcode calls within sample code
f25a79c69 Replace tip and warning shortcode calls
3afac22fc Refactor code shortcode
ad65d2931 Clarify seq function
59f8a1f48 Clarify title function
47535dc87 Cleanup hasPrefix hasSuffix
7bee3e4c1 Cleanup action delimiters
cc96070f0 Correct functions archetype
ffe5d39b9 Remove duplicate shortcodes
075c9f3fe Remove old todos
bc3ec033c Front matter cleanup (#2039 )
928b94505 Add code fence types (#2038 )
856fa293c Document .File.Filename (#2037 )
0988c4a42 Update output-formats.md (#2036 )
289da5658 Change findRe to findRE
1e50f0583 Update theme
f90fb1bf5 Improve type formatting (#2032 )
7785fa7d9 Use code-toggle shortcode where appropriate
f11cabf37 Add space after and before action delimiters
ac333c795 Replace erroneous use of nocopy shortcode param
064896c06 Use bool param when calling code-toggle
fb33bf59b Update code-toggle shortcode
6ddeab4f8 Add missing go-html-template code fence type (#2030 )
1bba4cefb Fix links (#2029 )
77f4d6c32 Link destination cleanup (#2028 )
fc0ecc027 Improve breadcrumb example (#2026 )
6148be2de Update the breadcrumb navigation example (#2025 )
6ebb37b1b Clarify sort function (#2024 )
31269bad9 Add Winget installation method (#1988 )
d6c5f940e Resource methods: add signatures, minor improvements (#2017 )
d2e594cbc Modify inner variable shortcode-template explanation (#1985 )
a54927a7f Update GitHub Pages starter workflow (#2023 )
2964c2d44 Remove orphaned static files (#2022 )
97e5567cc Complete documentation on '.Scratch' and '.Store' (#2016 )
fa7b2e299 Fix typo
bdce77c57 Remove literal from example menu template
c0f23b216 Correct and improve menu documentation (#2010 )
464368fd9 Document .Page.Store (#2011 )
a3d7c4a3a Improve urls.Parse function (#2012 )
d2cec3776 Clarify postcss config option (#2013 )
eb3003fef Fixed typo (#2007 )
90c82d7ea Clarify mermaid markdown example (#2004 )
1b11dcd5c docs(Diagrams): Update mermaid import mechanism (#1967 )
4aceb6855 Fingerprinting, asset management: minor improvements (#2003 )
bcbc519bb resources.GetRemote: minor improvement (#2002 )
d54185bef Clarify markdownify behavior (#1999 )
afb582a80 Clarify usage of slug in front matter (#1998 )
f71985315 Update hasSuffix.md
29ad622a3 netlify: Hugo 0.111.3
adf223ecc Merge branch 'tempv0.111.3'
06858c646 docs: Improve examples of variadic math functions
8b656994e tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2a38c4046 tpl: Add hasSuffix alias
4e0b98d54 switch transfers to workers
11651ac0f customize parallel transfer count
142f5da81 Update GitHub hosting instructions (#1991 )
ad7901d2f netlify: Hugo 0.111.2
0651a76e0 add headings to distinguish render hook context params
d96d75be4 netlify: Hugo 0.111.1
226cb9e3a Add a paragraph about the new page template function
4c0157a49 Add .Fragments docs
6c78c0679 netlify: Bump to Hugo 0.111.0
7b11c24cf Merge branch 'feat/related-fragments'
615d18ef8 Add Related fragments config
a36449b0c cods: Regen docs helper
0272fa45f Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'
c5a962b93 related: Add config option cardinalityThreshold
f91677377 docs: Another fix related docs example
17aa939ea docs: Fix related docs example
12c449150 Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
cb998b3d6 Add page fragments support to Related
git-subtree-dir: docs
git-subtree-split: 39af43ef11
2023-05-22 16:43:12 +02:00
Bjørn Erik Pedersen
4cac5f5e30
Avoid writing to hugo_stats.json when there are no changes
...
Fixes #10985
2023-05-22 16:27:19 +02:00
Bjørn Erik Pedersen
2c3d4dfb74
Add cache busting config to support Tailwind 3
...
Fixes #10974
2023-05-22 14:14:35 +02:00
dependabot[bot]
1292d5a26a
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.5 to 2.6.6
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.5 to 2.6.6.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.5...v2.6.6 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 13:58:40 +02:00
dependabot[bot]
baa5569042
build(deps): bump gocloud.dev from 0.24.0 to 0.29.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.24.0...v0.29.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 >
2023-05-22 13:58:15 +02:00
dependabot[bot]
a5413c1f89
build(deps): bump github.com/gobuffalo/flect from 0.3.0 to 1.0.2
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.3.0 to 1.0.2.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.3.0...v1.0.2 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 12:28:49 +02:00
dependabot[bot]
9cea58a8a6
build(deps): bump golang.org/x/image from 0.5.0 to 0.7.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.5.0 to 0.7.0.
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 12:28:08 +02:00
dependabot[bot]
1a5dce4cc5
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.4 to 2.12.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.4...v2.12.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-22 12:27:50 +02:00
Bjørn Erik Pedersen
6ca8a40f25
commands: Make all list commands list what 'all' did before
...
Also, always include the CSV header.
Updates #10953
2023-05-22 12:27:19 +02:00
InLaw
2db7ec622f
tpl/tplimpl: Add img loading attribute to figure shortcode ( #10927 )
2023-05-21 12:28:45 -07:00
Bjørn Erik Pedersen
e6dc8053bf
commands: Fix build logic when listing expired/future draft content
...
Fixes #10972
2023-05-21 10:16:25 +02:00
Bjørn Erik Pedersen
2637b4ef4d
Allow whitelisting mediaTypes used in resources.GetRemote
...
Fixes #10286
2023-05-20 20:16:45 +02:00
Bjørn Erik Pedersen
7c7baa6183
Add hugo.WorkingDir
...
Fixes #10969
2023-05-20 17:45:56 +02:00
Bjørn Erik Pedersen
4f085e80da
Make language merging of markup etc. config without values in the root
...
Updates #10953
2023-05-20 12:40:32 +02:00
Joe Mooring
150d190ff0
tpl/urls: Return empty string when JoinPath has zero args
2023-05-20 11:14:18 +02:00
dependabot[bot]
065ae003a5
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
...
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases )
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 20:04:32 +02:00
dependabot[bot]
1a7d57c0b6
build(deps): bump google.golang.org/api from 0.76.0 to 0.123.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.76.0 to 0.123.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.76.0...v0.123.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 20:03:46 +02:00
dependabot[bot]
bba54e6949
build(deps): bump golang.org/x/tools from 0.4.0 to 0.9.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.4.0 to 0.9.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.9.1 )
---
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 >
2023-05-19 18:00:58 +02:00
dependabot[bot]
737054311a
build(deps): bump github.com/cli/safeexec from 1.0.0 to 1.0.1
...
Bumps [github.com/cli/safeexec](https://github.com/cli/safeexec ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cli/safeexec/releases )
- [Commits](https://github.com/cli/safeexec/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/cli/safeexec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-19 18:00:42 +02:00
dependabot[bot]
f6269ee928
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.117.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.117.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.117.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 >
2023-05-19 18:00:28 +02:00
Bjørn Erik Pedersen
715d484045
deps: Update github.com/evanw/esbuild v0.17.0 => v0.17.19
2023-05-19 18:00:04 +02:00
Bjørn Erik Pedersen
0a51dfac9e
commands: Fix data race
...
By wrapping all use of the shared config in a lock.
Updates #10953
2023-05-19 16:34:22 +02:00
Bjørn Erik Pedersen
c371171ab8
deps: Update github.com/alecthomas/chroma/v2 v2.7.0
2023-05-19 12:35:05 +02:00
Bjørn Erik Pedersen
d6197a41fa
Re-add --printUnusedTemplates and --printPathWarnings
...
And now with tests.
Updates #10953
2023-05-19 11:37:05 +02:00
Bjørn Erik Pedersen
e4e0313c80
tpl/urls: Fix build broken by a merge
2023-05-19 10:57:03 +02:00
Joe Mooring
5b3e165bad
tpl/urls: Add JoinPath template function
...
See https://pkg.go.dev/net/url#JoinPath
Closes #9694
2023-05-19 10:31:17 +02:00
Bjørn Erik Pedersen
03cb38e6c6
Allow legacy taxonomyTerm in disableKinds
...
Updates #10953
2023-05-19 09:17:55 +02:00
Andreas Deininger
ad4bc969da
Fix warn message about custom params on the language top level
2023-05-19 08:43:02 +02:00
cui fliter
4003c7903f
Fix some spelling mistakes
2023-05-19 08:40:08 +02:00
Oleksandr Redko
610cedaa61
all: Fix comments for exported functions and packages
2023-05-18 21:25:27 +02:00
Bjørn Erik Pedersen
24e7d0c174
deps: Update github.com/bep/golibsass v1.1.0 => v1.1.1
...
Fixes #10629
Fixes #10491
2023-05-18 21:24:33 +02:00
Benjamin Elder
008170c8a9
Make GOMAXPROCS to be CPU limit aware
...
Fixes #10950
2023-05-18 19:32:49 +02:00
Bjørn Erik Pedersen
7c647bcaeb
Allow empty params.mainSections
...
Updates #10953
2023-05-18 17:55:29 +02:00
Oleksandr Redko
95818e27dc
modules: Fix format flag in error
2023-05-18 16:26:20 +02:00
Bjørn Erik Pedersen
3f00f47535
commands: Load config before creating the filesystem
...
To allow publishDir to be set in config file.
2023-05-18 15:38:25 +02:00
Bjørn Erik Pedersen
834b3d7e41
Fix some recently introduced error handling issues
...
Updates #10953
2023-05-18 12:47:23 +02:00
Joe Mooring
1155bbca9d
tpl/lang: document delimiter option for FormatNumberCustom
...
Closes gohugoio/hugoDocs#1760
2023-05-17 23:35:43 +02:00
Bjørn Erik Pedersen
86b2a27438
Re-add site.LanguagePrefix
...
Updates #10947
2023-05-17 23:27:40 +02:00
Bjørn Erik Pedersen
35955f50e6
github: Trim the test flow a little
...
We now have much improved end to end tests, so cut the building of the docs site to save some time of the PR builds.
2023-05-17 22:14:15 +02:00
Bjørn Erik Pedersen
8a69ccbb00
commands: Improve the common build flag handling
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
7ce033a89d
Support, but warn, about top level language custom params
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
05542130ba
Handle transient errors in config loading etc.
...
As in: Get the Kubernetes site to build with the new Hugo version.
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5251f015bf
Re-establish all the server flags
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5d857165fe
Deprecate site.Language.Params and some other fixes
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
0106cf1a6d
Revert "Make GOMAXPROCS CPU limit aware"
...
I shouldn't have merged this without running the tests.
This libray logs to stderr on init, which is a no go for us.
Re. test failure:
```
[stderr]
2023/05/17 18:21:04 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
```
This reverts commit 59050f97f6 .
2023-05-17 21:01:52 +02:00
Benjamin Elder
59050f97f6
Make GOMAXPROCS CPU limit aware
...
Fixes #10950
2023-05-17 20:17:22 +02:00
Bjørn Erik Pedersen
faa6998f26
Add Sections to Site interface
...
See https://github.com/gohugoio/hugo/issues/10947#issuecomment-1550012671
Updates #10947
2023-05-16 18:53:34 +02:00
Oleksandr Redko
3d90871e9e
helpers: simplify path tests with T.TempDir
2023-05-16 18:35:19 +02:00
Oleksandr Redko
bda082c98c
tpl: Add math.Abs
...
Fixes #10941 .
2023-05-16 18:32:07 +02:00
Bjørn Erik Pedersen
241b21b0fd
Create a struct with all of Hugo's config options
...
Primary motivation is documentation, but it will also hopefully simplify the code.
Also,
* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.
Closes #10896
Closes #10620
2023-05-16 18:01:29 +02:00
Bjørn Erik Pedersen
6aededf6b4
Improve date parsing performance for the common case
...
```
name old time/op new time/op delta
Baseline/skiprender-10 24.5ms ±10% 22.3ms ± 4% -8.93% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline/skiprender-10 30.0MB ± 0% 26.2MB ± 0% -12.74% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
Baseline/skiprender-10 373k ± 0% 279k ± 0% -25.07% (p=0.029 n=4+4)
```
Fixes #10942
2023-05-15 11:25:24 +02:00
Bjørn Erik Pedersen
0988b76a78
Add a counter helper
2023-05-15 09:23:26 +02:00
Bjørn Erik Pedersen
e0e19a934f
Expand the baseline benchmark a little
2023-05-15 08:39:52 +02:00
Joe Mooring
bcd7ac7704
Revert "Update syntax-highlighting.md ( #10929 )" ( #10930 )
...
This reverts commit a4fb8dc6bc .
2023-05-06 09:36:29 -07:00
Kirill Bobyrev
a4fb8dc6bc
Update syntax-highlighting.md ( #10929 )
2023-05-06 07:00:37 -07:00
Bjørn Erik Pedersen
4f341fa1af
Update README.md
2023-05-04 23:56:57 +02:00
Joe Mooring
5c7b79cf7f
tpl/strings: Clarify findRESubmatch description
2023-04-27 22:02:41 +02:00
Joe Mooring
0cb6ca5906
langs/i18n: Fallback to defaultContentLanguage instead of English
...
Co-authored-by: 641bill <wo23636@126.com >
Fixes #9216
2023-04-24 21:20:09 +02:00
Bjørn Erik Pedersen
f1062519ae
tpl/debug: Add VisualizeSpaces
2023-04-20 11:27:55 +02:00
Bjørn Erik Pedersen
46a3cf6186
Update README.md
2023-04-18 08:35:37 +02:00
Bjørn Erik Pedersen
9906c1ae52
Prevent the global error collector to panic when sending on closed channel
2023-04-13 11:44:22 +02:00
Bjørn Erik Pedersen
5596dc24a0
markup/goldmark: Add config options for the typographer extension
...
Note that the config per language part of this will be handled in #10602 .
Updates #9772
2023-04-12 14:41:32 +02:00
Kiril Isakov
d01731d53c
readme: Fix build command
2023-04-09 11:59:46 +02:00
Bjørn Erik Pedersen
f1e8f010f5
Update README.md
2023-03-30 10:19:35 +02:00
Bjørn Erik Pedersen
5748133d50
Add test for ToC vs include
...
See #10866
2023-03-29 17:49:01 +02:00
Andreas Deininger
05c095a0e6
resources.functions: improve validation
2023-03-20 14:53:57 +01:00
Oleksandr Redko
891b2918d2
resources: Fix typos in error message and variables
2023-03-20 14:52:59 +01:00
Bjørn Erik Pedersen
b0b1b76dc9
markup/goldmark: Fail on invalid Markdown attributes
2023-03-15 08:54:34 +01:00
Bjørn Erik Pedersen
0fbab7cbc5
commands: Fix data race in test
...
Note that this is a test fix only.
2023-03-14 12:18:42 +01:00
septs
f5eddf89bf
tpl/math: Return error if less than 2 input numbers
...
Fixes #10827
2023-03-14 09:28:38 +01:00
hugoreleaser
0e8ab20a84
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-12 11:51:49 +00:00
hugoreleaser
5d4eb5154e
releaser: Bump versions for release of 0.111.3
...
[ci skip]
2023-03-12 11:40:50 +00:00
Niklas Fasching
1c841ec914
deps: Update go-org to v1.6.6
...
among other things, fixes a race condition in html writer and bug preventing
explicit line breaks immediately following emphasis
2023-03-12 12:38:12 +01:00
Bjørn Erik Pedersen
e7148f335f
Fix "unknown shortcode token" when calling shortcode within fenced code block
...
Fixes #10819
2023-03-12 11:39:38 +01:00
Andreas Deininger
d55af2abf0
Run gofmt -s on source files
2023-03-12 10:32:29 +01:00
Joe Mooring
b6f44aaf1a
docs: Improve examples of variadic math functions
2023-03-12 10:32:01 +01:00
septs
84201e8d5d
tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2023-03-11 11:21:08 +01:00
Andreas Deininger
04b9811643
readme: Update dependency list
2023-03-11 10:15:16 +01:00
Andreas Deininger
9818724b5b
Improve error message for unclosed shortcode with inner content
2023-03-10 18:41:17 +01:00
Bjørn Erik Pedersen
34a86e13f6
Don't fail when calling Paginate with an empty pages.PagesGroup
...
Fixes #10802
2023-03-10 16:34:17 +01:00
Oleksandr Redko
0f01bd4637
server: Replace golang.org/x/net/context with context
2023-03-08 10:19:25 +01:00
Jonathan Fisher
d171d1543d
tpl: Add hasSuffix alias
...
strings.HasPrefix already has an alias of hasPrefix
but strings.HasSuffix has no such alias.
This PR adds a hasSuffix alias to the tpl function with corresponding
function documentation.
It also adds a Minor update to the hasPrefix function documentation
re: keywords and relatedfuncs.
Completes https://github.com/gohugoio/hugo/issues/10474
2023-03-08 10:18:34 +01:00
Oleksandr Redko
02ab77da3e
watcher: use time.NewTicker to prevent leaks
...
Replace time.Tick with time.NewTicker.
2023-03-08 10:16:34 +01:00
davidejones
873be9f90a
ensure we default to 10 correctly
2023-03-07 15:38:26 +01:00
davidejones
bebb2b8d0a
switch transfers to workers
2023-03-07 15:38:26 +01:00
davidejones
e6f029bdee
customize parallel transfer count
2023-03-07 15:38:26 +01:00
johannesengl
bdbfacb868
metadecoders: Add support for native org dates in frontmatter
...
PR #7433 added support for Org timestamps for the DATE header. This PR widens the support with additional front matter headers LASTMOD, PUBLISHDATE and EXPIRYDATE.
Fixes #8536
2023-03-06 20:37:31 +01:00
hugoreleaser
32ea40aa82
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-05 12:43:18 +00:00
hugoreleaser
4164f8fef9
releaser: Bump versions for release of 0.111.2
...
[ci skip]
2023-03-05 12:32:20 +00:00
Bjørn Erik Pedersen
b83050cb40
Fix .Fragments when called cross sites on uninitialized output format
...
Fixes #10794
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
df5608f8a0
Allow page.TableOfContents on self in shortcode
...
Fixes #10791
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
f56ce01ae1
tpl/partial: Consolidate GoDoc
2023-03-04 22:04:01 +01:00
Bjørn Erik Pedersen
3bbeb5688c
Fix "context canceled" with partial
...
Make sure the context used for timeouts isn't created based on the incoming
context, as we have cases where this can cancel the context prematurely.
Fixes #10789
2023-03-04 21:29:05 +01:00
Oleksandr Redko
184a67ac47
cache: Fix --gc failure on Windows
...
Fixes "Error: failed to prune cache" on Windows and removes
work around from ec1c97e7e9 .
Follows #10781 .
2023-03-04 18:47:43 +01:00
Bjørn Erik Pedersen
6c798eba60
Page context handling in i18n
...
This is a workaround. We need to improve on this, but not today.
Fixes #10782
2023-03-04 17:19:14 +01:00
Bjørn Erik Pedersen
ec1c97e7e9
Work around --gc failure on Windows <= 10
...
This applies two related fixes/improvements:
* The --gc now keeps empty `_resources/_gen/images` etc folders, even if empty. This should have been the behaviour
from the start.
* Also, if removal of an empty dir on Windows fails with the "used by another process" error, just ignore it for now.
Fixes #10781
2023-03-04 13:40:55 +01:00
Bjørn Erik Pedersen
f10009e7f1
Update to Go 1.20.1
...
Fixes #10785
2023-03-04 10:36:59 +01:00
Joe Mooring
a950950f1b
snap: Fix dart-sass-embedded installation
...
Closes #10783
2023-03-04 10:15:03 +01:00
Oleksandr Redko
36ce3a4a9d
Correct typos in Go comments
2023-03-02 16:32:32 +01:00
hugoreleaser
17e60b77e1
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-02 10:19:25 +00:00
hugoreleaser
39a4a3cf67
releaser: Bump versions for release of 0.111.1
...
[ci skip]
2023-03-02 10:08:26 +00:00
Bjørn Erik Pedersen
52f339dada
Merge branch 'release-0.111.0'
2023-03-02 11:05:24 +01:00
Bjørn Erik Pedersen
eef23a7f27
Fix "page" not defined
...
Fixes #10774
2023-03-02 10:39:44 +01:00
hugoreleaser
18cf75805c
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-01 21:08:27 +00:00
hugoreleaser
3fa8bb8318
releaser: Bump versions for release of 0.111.0
...
[ci skip]
2023-03-01 20:57:44 +00:00
Bjørn Erik Pedersen
db9f74d24d
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )"
...
This reverts commit c3a59a7d5a .
See #10770
2023-03-01 21:55:47 +01:00
Bjørn Erik Pedersen
60e6fa798f
build: Bump build images
...
To fix changed Shuffle behaviour on Go 1.20.
2023-03-01 21:32:12 +01:00
Bjørn Erik Pedersen
7e51ba03ca
build: Update Linux ARM build image
2023-03-01 18:55:22 +01:00
Joe Mooring
66f94b4945
tpl/tplimpl: Remove the Google News internal template
...
This was deprecated, with a warning message, on 21 Nov 2021.
Reference #9190
2023-03-01 18:11:44 +01:00
Khayyam Saleem
c0d15a2897
strings: fix Truncate behavior for formatted html
...
Before this fix, strings.Truncate would erroneously re-include
attributes from the opening tag in the closing tag when closing
formatted html, due to a bug in how tagnames were extracted from the
regex capture group for html tags used in `truncate.go`. This change
ensures that only the tagname is retained and all attributes are discarded
when storing the tags for closing them later.
Fixes #10399
2023-03-01 17:59:50 +01:00
Bjørn Erik Pedersen
2a61910e82
tpl/strings: Adjust benchmark
2023-03-01 17:59:02 +01:00
Bjørn Erik Pedersen
079d1b6540
tpl/strings: Add BenchmarkTruncate
2023-03-01 17:51:09 +01:00
Bjørn Erik Pedersen
a56b9071db
cods: Regen docs helper
2023-03-01 16:35:23 +01:00
Bjørn Erik Pedersen
5c317c55e7
Move the Related doc counter to prevent a race
...
Closes #10768
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
a669467d98
Misc ioutil deprecation adjustments
...
To make the tests pass.
* Replace io => os.ReadFile in magefile.go
* Adjust failing image test vs fs.DirEntry
* Adjust poller test
See #10732
2023-03-01 16:28:43 +01:00
Oleksandr Redko
d453c12742
Replace deprecated ioutil with io and os
...
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
336622d5e7
Squashed 'docs/' changes from 36dd5483f..6e32d0591
...
6e32d0591 Update quick-start.md (#1984 )
eddd25ff4 Mermaid: reflect latest docs specifications
b2a23b6f5 Mermaid: switch to ESM import
43d83c131 Update index.md
git-subtree-dir: docs
git-subtree-split: 6e32d05910
2023-03-01 11:56:07 +01:00
Bjørn Erik Pedersen
97b010f521
Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'
2023-03-01 11:56:07 +01:00
dependabot[bot]
4d36b99a4e
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.4 to 2.6.5
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.4 to 2.6.5.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.4...v2.6.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-01 09:28:29 +01:00
dependabot[bot]
807237bc0e
build(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-27 11:56:40 +01:00
dependabot[bot]
79b03b3f79
build(deps): bump golang.org/x/image
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.0.0-20211028202545-6944b10bf410 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases )
- [Commits](https://github.com/golang/image/commits/v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-27 11:56:09 +01:00
Oleksandr Redko
e31441031d
Remove unused temp directory
2023-02-27 09:21:16 +01:00
WaltCuller
39cc3a2a7e
exif: Return the proper exposure time value in some special cases
...
Return value in float64 if exposure time is int or greater than 1, otherwise return in fraction.
Fixes #10738
2023-02-26 11:19:49 +01:00
Bjørn Erik Pedersen
ce524d0b5e
Add a page template func
...
Fixes #9339
2023-02-25 19:53:18 +01:00
Joe Mooring
2662faf61f
dartsass: Import CSS without extension at compile time
...
Applicable to Dart Sass only:
- Sass imports with the .css extension indicate a plain CSS @import.
- Sass imports without the .css extension are imported at compile time.
Fixes #10592
2023-02-24 15:19:21 +01:00
Bjørn Erik Pedersen
271318ad78
Split parse and render for Goldmark
...
This also speeds up situations where you only need the fragments/toc and not the rendered content, e.g. Related
with fragments type indexing:
```bash
name old time/op new time/op delta
RelatedSite-10 12.3ms ± 2% 10.7ms ± 1% -12.95% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelatedSite-10 38.6MB ± 0% 38.2MB ± 0% -1.08% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
RelatedSite-10 117k ± 0% 115k ± 0% -1.36% (p=0.029 n=4+4)
```
Fixes #10750
2023-02-24 10:40:06 +01:00
Bjørn Erik Pedersen
e442a63bb7
related: Add config option cardinalityThreshold
...
Fixes #10744
2023-02-23 17:06:22 +01:00
Bjørn Erik Pedersen
d5601e8391
docs: Another fix related docs example
2023-02-23 11:09:55 +01:00
Bjørn Erik Pedersen
cedd04db31
docs: Fix related docs example
2023-02-23 10:54:30 +01:00
dependabot[bot]
4bf91b9759
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-23 09:58:21 +01:00
Bjørn Erik Pedersen
ae48507d66
Fix shortcode error when closing without .Inner
...
Fixes #10672
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
7d78a498e1
Throw an error when shortcode is expected to be closed
...
Fixes #10675
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
0dbeac80cd
Add some shortcode testcases
...
Closes #10671
2023-02-23 09:36:14 +01:00
Bjørn Erik Pedersen
b99d073caf
sass: Remove some unused leftover code
2023-02-23 07:57:53 +01:00
Joe Mooring
e965cb679c
resources/sass: Remove debug statements
...
Closes #10470
2023-02-23 07:53:46 +01:00
Bjørn Erik Pedersen
cf591b7c0c
Squashed 'docs/' changes from 1214f6ffb..36dd5483f
...
36dd5483f Clarify placement of 404 template
6f0a5f3f0 Update urls.Parse.md
c8070e578 Remove reference to Internet Explorer conditional comments (#1975 )
3e3458f09 Describe default source map behavior for js.build (#1974 )
08c9ed09a Simplify ordinal abbreviation example... (#1970 )
b5aa8d598 docs(markdownify): mention a context limitation (#1968 )
596af47f5 Fixing typo in configuration.md doc (#1966 )
c47cadfcb Fix `hardWraps` config spelling (#1964 )
5739a174e Add detail to tabWidth highlighting option
73a4bcd1f doc: Add hugo-lyra search engine (#1959 )
6cc9ebdfd Update uniq function example (#1963 )
686a65cf6 Update uniq.md
096f794d0 Update uniq.md
914ca0c38 remove `version` from SVG example (#1957 )
58347d41f Update theme
7c806371f Fix 404 error for CloudCannon community learn docs (#1955 )
58e42b03d Update theme
fd0385ee2 Update theme
513b7a43a Update findRe.md
4d39137ef Update configuration.md
b1c3b58a7 Update configuration.md
f827cce8d Update configuration.md
3d72ed8fb netlify: Hugo 0.110.0
e6f969c87 Merge branch 'feat/config-rename'
4c0b5a0b5 dos: Regen CLI docs
05d9db705 docs: Regen docshelper
f73bdb6e5 Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
e83141f88 Format config
4cadf795e Rename config.toml -> hugo.toml
c8aa8617f Move config/_default/config.toml -> config.toml
2943c031a Add fill HTTP Response info into .Data in resources.GetRemote
git-subtree-dir: docs
git-subtree-split: 36dd5483fb
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
7e539cb398
Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
586fea0de6
page: Move the cache double check right after the lock
2023-02-22 21:24:41 +01:00
Bjørn Erik Pedersen
fa2d7adf10
page: Add some concurrency to the building of the related page index
...
But only in the case where we know that we will need to access the Page fragments/tableofcontents.
In normal situations this will spread naturally across the CPU cores, but not in the situation where
`site.RegularPages.Related` gets called as part of e.g. the single template.
```bash
name old time/op new time/op delta
RelatedSite-10 18.0ms ± 2% 11.9ms ± 1% -34.17% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
RelatedSite-10 38.6MB ± 0% 38.6MB ± 0% ~ (p=0.114 n=4+4)
name old allocs/op new allocs/op delta
RelatedSite-10 117k ± 0% 117k ± 0% +0.23% (p=0.029 n=4+4)
```
See #10711
2023-02-22 20:37:41 +01:00
Bjørn Erik Pedersen
4346987faf
related: Adjust benchmark
2023-02-22 19:17:22 +01:00
Aaron Hooper
2dad13c0e4
create: Fix typo in error message
2023-02-22 14:14:49 +01:00
Bjørn Erik Pedersen
ecf3cd514f
tocss: Simplify the hugo:vars type handling
...
Instead of maintaing a list of all CSS units and functions this commit:
* Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types.
* These regexps may have some false positives -- e.g. strings that needs to be quoted.
* For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted`
* For the opposite case: `"32" | css.Unquoted`
Updates #10632
2023-02-22 13:26:10 +01:00
AcClassic
a1a9c08b5f
resource_transformers/tocss: Fixed hugo:vars casting
...
Variables passed via the hugo:vars function where passed as type string.
This caused problems when using the variables in sass functions because
these expect a specific type. Now we check if the passed variables have
to be quoted and therefore are of type string or if they should not be
quoted and let the type interpretation up to the sass compiler.
Fixes #10632
2023-02-22 13:26:10 +01:00
Bjørn Erik Pedersen
6abd15e781
Adjust tests for GO 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
094135ff96
tpl/internal: Sync Go template src to Go 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
4801e2e8ee
build: Update to Go 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
90da7664bf
Add page fragments support to Related
...
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.
You can do this by:
* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.
It's also possible to use type `fragments` indices in shortcode, e.g.:
```
{{ $related := site.RegularPages.Related .Page }}
```
But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.
This commit also:
* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339 .
Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
Bjørn Erik Pedersen
0afec0a9f4
related: Adjust benchmark
...
To make it easier to compare.
2023-02-21 11:06:29 +01:00
Bjørn Erik Pedersen
28540ed131
related: Add benchmark
2023-02-21 11:00:43 +01:00
Bjørn Erik Pedersen
9af78d1100
tpl/collections: Improve error message in Index
2023-02-08 10:22:20 +01:00
Bjørn Erik Pedersen
d33a7ebcc1
Make the HTML collector parsing more robust
...
Most notably better handling self-closing elements
Closes #10698
2023-02-07 09:11:02 +01:00
Bjørn Erik Pedersen
2a364cca64
Revert "build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0"
...
This reverts commit 87c78bd3e9 .
There seem to be some breaking changes in the above that needs to be looked into.
2023-02-05 20:34:35 +01:00
Joe Mooring
3fb2417cb7
deps: Upgrade github.com/yuin/goldmark v1.5.3 => v1.5.4
...
Closes #10661
2023-02-05 20:09:06 +01:00
Bjørn Erik Pedersen
fce0890484
tpl/strings: Add strings.ContainsNonSpace
2023-02-05 20:08:44 +01:00
dependabot[bot]
87c78bd3e9
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.114.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.114.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 >
2023-02-05 20:07:15 +01:00
Joe Mooring
69c369e114
deps: Upgrade github.com/alecthomas/chroma v2.4.0 => v2.5.0
...
Fixes #9890
Fixes #10692
2023-02-05 20:06:51 +01:00
Khayyam Saleem
73ece30d84
markup: Fix linenos codeblock hl option case regression
...
This fixes a regression introduced in v0.93.0 where previously, a
mixed-case key for lineNos would be successfully parsed. This change
moves the configuration key lowercasing step into the configuration
normalization stage, which is called whether the highlighting config
is being parsed from a `string` or a `map`.
Fixes #10682
2023-02-05 20:06:25 +01:00
Bjørn Erik Pedersen
f9fc0e045b
Fix slow HTML elements collector for the pre case
...
```
name old time/op new time/op delta
ElementsCollectorWriterPre-10 25.2µs ± 1% 3.4µs ± 0% -86.54% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
ElementsCollectorWriterPre-10 624B ± 0% 142B ± 0% -77.18% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
ElementsCollectorWriterPre-10 16.0 ± 0% 6.0 ± 0% -62.50% (p=0.029 n=4+4)
```
Fixes #10698
2023-02-05 20:01:39 +01:00
Bjørn Erik Pedersen
4f4a1c00bf
publisher: Add benchmark
2023-02-05 16:39:31 +01:00
Anthony Fok
76c6140c52
snap: Install dart-sass-embedded for 32-bit ARM (armhf) too
...
See https://github.com/sass/dart-sass-embedded/releases/tag/1.54.7
which "Add[ed] support for 32-bit ARM releases on Linux" on 2022-08-30.
2023-02-03 14:58:11 +01:00
Anthony Fok
d4482e8bf4
snap: Add read access for ~/.gitconfig.local and ~/.config/git/* too
...
in hugo:gitconfig plug (personal-files interface) in case end users need
the flexibility of using additional custom git config files.
Fixes #10337
2023-02-03 14:57:53 +01:00
Bjørn Erik Pedersen
1477d0ba90
commands: Fix server url rewrites (http status 200)
...
Broken by me in Hugo 0.103.0 it seems. A little bit mysterious as it has worked for me after that, but started to fail just
recently.
Closes #10668
2023-01-31 12:42:31 +01:00
dependabot[bot]
dd37163f5a
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.10 to 2.2.11
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.10 to 2.2.11.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.10...v2.2.11 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 09:41:13 +01:00
dependabot[bot]
c3a59a7d5a
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
2023-01-31 09:40:39 +01:00
Joe Mooring
4ccc8cfb4c
Fix description of collections.Uniq
2023-01-31 08:12:45 +01:00
Bjørn Erik Pedersen
e2cfc3d5a2
Update CONTRIBUTING.md
2023-01-31 08:08:52 +01:00
Bjørn Erik Pedersen
168858331f
Fix shortcode detection in RenderString
...
Fixes #10654
2023-01-26 11:41:07 +01:00
Bjørn Erik Pedersen
4ef9baf5bd
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
2023-01-25 17:35:23 +01:00
Bjørn Erik Pedersen
93ed6e447a
Update README.md
2023-01-24 15:04:06 +01:00
hugoreleaser
0d1161b263
releaser: Prepare repository for 0.111.0-DEV
...
[ci skip]
2023-01-17 12:28:17 +00:00
hugoreleaser
e32a493b78
releaser: Bump versions for release of 0.110.0
...
[ci skip]
2023-01-17 12:16:09 +00:00
Bjørn Erik Pedersen
19e9605629
dos: Regen CLI docs
2023-01-17 12:52:53 +01:00
Bjørn Erik Pedersen
80e8bd3b72
docs: Regen docshelper
2023-01-17 12:52:08 +01:00
Bjørn Erik Pedersen
b661132e0a
Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen
ef6f101e75
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: 1214f6ffbf
2023-01-17 12:51:01 +01:00
Bjørn Erik Pedersen
d595419031
related: Handly []any
...
See #10624
2023-01-17 12:50:26 +01:00
Bjørn Erik Pedersen
671f64b2eb
Fix permalinks issue with repeated sections
...
Fixes #10377
2023-01-17 12:49:16 +01:00
Bjørn Erik Pedersen
2fb40ece5d
tpl/strings: Add findRESubmatch
...
Fixes #10594
2023-01-17 12:14:11 +01:00
Bjørn Erik Pedersen
c6b3887696
config/security: Add O\w+ (e.g. GOROOT) to the default allowed list
...
Fixes #10429
2023-01-17 10:52:51 +01:00
Bjørn Erik Pedersen
21af5b359f
Preserve front matter slice value types (e.g. int)
...
Fixes #10624
2023-01-17 08:58:05 +01:00
Bjørn Erik Pedersen
f38a2fbd2e
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
2023-01-16 15:34:16 +01:00
Bjørn Erik Pedersen
6a579ebac3
Add fill HTTP Response info into .Data in resources.GetRemote
...
See #10604
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
f13531e608
Fix HEAD method in resources.GetRemote
...
Fixes #10604
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
b5d485060f
Fix order when reading custom headers in resources.GetRemote
...
Fixes #10616
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
6e9fa9e0fd
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
2023-01-16 14:41:13 +01:00
Bjørn Erik Pedersen
c4f3a46ce6
Update README.md
2023-01-09 14:13:30 +01:00
Bjørn Erik Pedersen
fbc3e08c64
resource: Fix Go Doc vs .Data.Integrity
2023-01-07 10:58:34 +01:00
Bjørn Erik Pedersen
e402d91ee1
Misc doc, code refactoring to improve documentation
2023-01-04 18:01:26 +01:00
Bjørn Erik Pedersen
3c51625c71
Make readFile return nil when file not found (note)
...
Fixes #9620
2023-01-04 18:01:26 +01:00
Omar Kohl
dd6d0a6de1
Remove reference to Goreleaser in code comment
...
Hugo no longer uses the Goreleaser tool.
2023-01-03 20:25:44 +01:00
acclassic
f95fd57aac
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
2023-01-02 17:35:08 +01:00
Bjørn Erik Pedersen
e754d5cb3e
tpl/diagrams: Move Goat to its own file
2022-12-25 14:02:22 +01:00
Bjørn Erik Pedersen
002cd52807
Update CONTRIBUTING.md
2022-12-24 15:53:27 +01:00
Bjørn Erik Pedersen
a76c405d40
Update CONTRIBUTING.md
2022-12-24 15:49:00 +01:00
Bjørn Erik Pedersen
c0a03a2a39
Update README.md
2022-12-24 15:48:45 +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
10bb29d7f3
docs: Regen docs helper JSON
2022-12-23 10:15:48 +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
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
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
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
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
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
Bjørn Erik Pedersen
17055d1fa7
parser/metadecoders: Remove superflous cast in test
2022-12-14 20:10:17 +01:00
Bjørn Erik Pedersen
2a81a49499
parser/metadecoders: Simplify nil check in Unmarshal
2022-12-14 18:03:47 +01:00
AcClassic
e30d711c29
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
2022-12-14 18:03:47 +01:00
Bjørn Erik Pedersen
ad2059878a
Also consider wrapped errors when checking for file IsNotExist errors
...
Fixes #10534
2022-12-14 13:51:06 +01:00
Bjørn Erik Pedersen
87e898a17a
tpl/openapi3: Wrap *kopenapi3.T
...
To make it easier to document.
2022-12-14 12:29:40 +01:00
Bjørn Erik Pedersen
b54de1bd9b
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
2022-12-13 18:58:17 +01:00
Bjørn Erik Pedersen
c9354d5463
github: Update to Dart Sass 1.56.2
2022-12-13 16:58:33 +01:00
Bjørn Erik Pedersen
d894269855
github: Use ruby/setup-ruby
...
Closes #10517
2022-12-11 19:43:46 +01:00
Joe Mooring
3fd0b78498
tpl/tplimpl: Use https in sitemap templates
...
Closes #10515
2022-12-11 18:53:30 +01:00
Francesco La Camera
e0e63f35e4
parser/metadecoders: Fix spelling
2022-12-10 19:37:47 +01:00
hugoreleaser
cc574ef120
releaser: Prepare repository for 0.109.0-DEV
...
[ci skip]
2022-12-06 13:50:51 +00:00
hugoreleaser
a0d64a46e3
releaser: Bump versions for release of 0.108.0
...
[ci skip]
2022-12-06 13:37:56 +00:00
Bjørn Erik Pedersen
f97544a830
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"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
d8efe085ca
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"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
f5b5b71c60
deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0
2022-12-06 13:37:08 +01:00
Razon Yang
b82b547acb
tpl/embedded: Make Open Graph's series optional
2022-12-06 10:48:34 +01:00
Bjørn Erik Pedersen
da670c38ee
Squashed 'docs/' changes from 4c1309cdf..2201ac0e5
...
2201ac0e5 Update theme
git-subtree-dir: docs
git-subtree-split: 2201ac0e5f
2022-12-06 10:42:36 +01:00
Bjørn Erik Pedersen
c9f2fa2663
Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
2022-12-06 10:42:36 +01:00
Bjørn Erik Pedersen
5067775a6f
common/hugio: Fix multiWriteCloser.Close
...
Fixes #10505
2022-12-06 10:32:33 +01:00
dependabot[bot]
50549c867c
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 >
2022-12-06 10:22:14 +01:00
Bjørn Erik Pedersen
de9c5542ca
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
...
See #10492
2022-12-05 16:50:47 +01:00
Bjørn Erik Pedersen
e93138dfdb
dartsass: Add sourceMapIncludeSources option
2022-12-05 16:36:45 +01:00
Bjørn Erik Pedersen
7d16c3c0c1
github: Update Dart Sass Embedded to 1.56.1
2022-12-05 16:36:45 +01:00
Bjørn Erik Pedersen
63126c6359
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
2022-12-05 15:00:47 +01:00
dependabot[bot]
535ea8cc9b
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 >
2022-12-05 10:35:54 +01:00
dependabot[bot]
8bbec426cd
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 >
2022-12-05 10:34:54 +01:00
dependabot[bot]
0bfa293dcd
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 >
2022-12-04 15:04:05 +01:00
Joe Mooring
0b976d2b40
tpl/tplimpl: Allow alternate comment syntax
...
Allow alternate comment syntax before block definitions:
{{/* foo */}}
{{- /* foo */}}
{{- /* foo */ -}}
Fixes #10495
2022-12-04 09:25:51 +01:00
Anton Sattarov
a49e51fd0b
resources: Increase timeout for http.Client
...
Increase timeout for http.Client in resources.GetRemote from 10 second to 1 minute
Fixes #10478
2022-12-03 15:47:47 +01:00
Bjørn Erik Pedersen
d373774cbe
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
2022-12-03 11:54:33 +01:00
Bjørn Erik Pedersen
7d5e3ab8a8
tpl: Misco GoDoc improvements
2022-12-03 11:54:33 +01:00
septs
dc44bca963
config/security: Add CI env var to whitelist
2022-12-02 12:13:34 +01:00
Bjørn Erik Pedersen
da16527896
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: 4c1309cdfe
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
ef518485ce
Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
83080df611
deps: Upgrade github.com/bep/godartsass v0.14.0 => v0.15.0
2022-12-02 09:08:22 +01:00
Joe Mooring
b8d5c378ba
tpl: Use consistent delimiter spacing in examples
2022-11-25 09:54:35 +01:00
Bjørn Erik Pedersen
75f782a5a7
docs: Regen docs helper
2022-11-24 15:17:22 +01:00
hugoreleaser
2221b5b30a
releaser: Bump versions for release of 0.107.0
...
[ci skip]
2022-11-24 13:59:45 +00:00
dependabot[bot]
6a004b8d94
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 >
2022-11-24 13:21:23 +01:00
dependabot[bot]
0923622421
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 >
2022-11-24 13:20:50 +01:00
Bjørn Erik Pedersen
7855b47f07
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)
```
2022-11-24 13:18:33 +01:00
Bjørn Erik Pedersen
34d1150d92
markup/goldmark: Improve benchmark
2022-11-24 12:04:44 +01:00
Joe Mooring
85e2ac1a44
commands: Create assets directory with new site
...
Closes #10460
2022-11-21 09:42:40 +01:00
dependabot[bot]
74776726df
build(deps): bump github.com/frankban/quicktest from 1.14.3 to 1.14.4
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.3 to 1.14.4.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.3...v1.14.4 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-19 17:19:15 +01:00
dependabot[bot]
63f7f0ff5a
build(deps): bump golang.org/x/tools from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.2.0...v0.3.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-11-19 16:33:23 +01:00
Bjørn Erik Pedersen
bcb62d8911
deps: Upgrade github.com/alecthomas/chroma/v2 v2.4.0
2022-11-19 11:55:30 +01:00
Joe Mooring
00fe7e0408
hugo/parser: Fix shortcode boolean param parsing
...
Fixes #10451
2022-11-18 09:34:10 +01:00
hugoreleaser
df85cb9ae2
releaser: Prepare repository for 0.107.0-DEV
...
[ci skip]
2022-11-17 18:46:38 +00:00
hugoreleaser
e08ce30fe4
releaser: Bump versions for release of 0.106.0
...
[ci skip]
2022-11-17 18:33:40 +00:00
Bjørn Erik Pedersen
a99fed4852
resources/tpl: Add a test for resources.Get
...
Updates #10101
2022-11-17 18:09:54 +01:00
shifterbit
db945a6ed2
tlp/resources: resources.Get returns nil when given empty string
2022-11-17 18:09:54 +01:00
dependabot[bot]
bafb389b38
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.4 to 2.0.6
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.4...v2.0.6 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-17 17:07:40 +01:00
Bjørn Erik Pedersen
0a019a1a59
docs: Regen CLI docs
2022-11-17 16:19:22 +01:00
Bjørn Erik Pedersen
9f7fb0a73b
docs: Regenerate docs helper
2022-11-17 16:16:53 +01:00
Bjørn Erik Pedersen
f04cc581e1
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
2022-11-17 16:16:19 +01:00
Bjørn Erik Pedersen
00c4484c70
Squashed 'docs/' changes from 392668f4f..32cb8785e
...
32cb8785e Fix page weights in content management section (#1896 )
11977b96f Make relURL and related functions consistent (#1895 )
f12180207 Clarify github deployment (#1894 )
958877789 Remove remaining references to Highlight.js (#1893 )
fc487d263 Minor edit to taxonomy page
3b6a224b2 Update theme
b28553b62 Change "flavor" to "edition" when referring to builds (#1892 )
660e7581c Replaced sudo in OpenBSD with doas (#1891 )
e3fcdea10 fix a few minor grammatical issues on Firebase docs (#1889 )
e4c8b30eb update Static Web Apps docs (#1890 )
da2197c9e Update hosting-on-firebase.md (#1347 )
5f2a0c271 Adding deployment guide for Azure Static Web Apps (#1456 )
5aaf570cd add Azure Static Web App config to 404 template
35fc54362 add Azure Static Web App config to 404 template
d48f67ba1 Update 01-flavors.md
11debae8d Cleaned Use of ref and relref section, added refs of index.md and _in… (#1744 )
b77604078 docs: Add link to menu entry variables (#1827 )
0fa8a6bf0 Misc copy edits (#1887 )
c27b545ac Improve explanation of safeHTMLAttr's function (#1503 )
b04a4b32e Make CLI command summaries meaningful (#1886 )
dbf00a81f Fix a typo in diagrams documentation (#1885 )
11f884327 docs: Clarify how to remove draft/future/expired content (#1831 )
6dc9e9860 Improve complement function (#1884 )
56448a51a Remove erroneous sourcemap desc (#1883 )
a0d0d2829 Merge branch 'divinerites-patch-1'
10f20cb5e Add a plausible-hugo theme component
9f1413eb5 Minor edits to showcase example
7d78420db fix broken link to Isso Comments
925cb291f Make directory tree consistent with other examples
300fff092 Add link to security policy from getenv.md (#1746 )
7b4c517a6 Fix docs menu weights
ce35775e0 Update faq.md (#1763 )
f3fb791a4 Remove dated new-in flags (#1879 )
b6c634629 Remove deprecated templating langs (#1880 )
1b25ca34f Update the findRE and replaceRE functions (#1881 )
28757ec73 Add Alora Labs website to showcase (#1494 )
e3c4bc4e7 Remove unimplemented "ugly" property
86afd84ff Update editors.md (#1878 )
44c093911 Add urlquery function docs (#1633 )
16a8c3548 Update links to installation page (#1876 )
9e357f078 Add missing sections to BSD installation page (#1875 )
1b1291634 Promote "Installation" to a section
9dd51235b Add detail to description of .Plain page variable (#1870 )
d333d0287 Minor markdown linting fix and URL updates (#1873 )
d57c8aa50 Remove extraneous apostrophe (#1871 )
8c25cfc5c Update index.md
09fea41e0 Add lang to fenced code block
35b904798 Add small documentation about .Site.Social.twitter variable (#1854 )
672042f89 Consolidate site configuration
dfd4dd873 Add help.ampio.com showcase. (#1863 )
e8d0e7bdf Include link to internal templates code (#1794 )
7db6f0c01 Add example to split function (#1867 )
be87dba80 Clarify split function docs (#1792 )
a079193f1 Fix typo on data templates page
b234c70ee Fix data templates page (#1855 )
074232b45 Update front-matter.md (#1856 )
711c8fa80 Added missing default value (#1862 )
034762882 Fixed some grammar issues and typos (#1865 )
764574a4d Fix spelling error
2698f2d44 update URLs to prevent redirects (#1864 )
68f05fdc8 Fenced code blocks should have a language specified (#1861 )
24393315b GitHub Workflows security hardening (#1859 )
3eeee13bf Markdown formatting: Add Fenced code block languages (#1858 )
e152cdf1f netlify: Hugo 0.105.0
4c7fc9f7e Merge branch 'tempv0.105.0'
d16710afc Change anchor reference to use relref function calls (#1853 )
f52af8e4a tpl/encoding: Add noHTMLEscape option to jsonify
eca0046c4 Update hosting-on-keycdn docs (#1852 )
ffbe17a48 Add note for rsync deploy command (#1415 )
c482133f1 docs: Update quick start to clarify the need of extended version (#1828 )
1e3b33804 use correct URL for Google Search console verification (#1851 )
dac034f63 Markdown and formatting fixes (#1850 )
43f177e3c Fix LiveReload in quick-start (#1739 )
f78deaa5f Add link for ''Hugo Shortcode Syntax Highlighting' VS Code extension (#1765 )
08087ecd7 Remove some hidden pages (#1848 )
b6cb5ae48 Markdown linting fixes (#1846 )
527ec5941 Update hugo.md (#1742 )
83e8f2168 Clarify that a shortcode with .Inner must be closed (#1785 )
4193f4445 Add Super Linter GitHub Action (#1845 )
fd91bfe1a Formatting and grammar fixes (#1844 )
ab5a49c49 Create codeql-analysis GitHub Action (#1812 )
63b3e082e Add tutorial on using fusejs to search examples (#1756 )
54c253ab0 Note that Google Universal Analytics are deprecated (#1770 )
385fa77c6 Update articles.toml (#1840 )
5e336bd26 Replace awkward wording (ESL?) (#1842 )
2446ad349 Added Introduction to Hugo tutorial/video series (#1736 )
7b21b2e76 Don't use self-closing generator tag
ef73712ff Image processing. available methods: add method 'Colors' (#1837 )
018f83bbe [comment platform] - add new alternative (#1751 )
5636c208b Grammar and spelling fixes (#1836 )
3f2e26f77 Change link of repojacking vulnerable link - JekyllToHugo (#1834 )
301379fc3 fix: use shorter image URL to make it easier to read (#1835 )
de5fa7b30 Update search.md to include Pagefind (#1826 )
e9d72bcda Breadcrumb example: add basic accessibility (#1832 )
6cffff87a netlify: Hugo 0.104.3
892360f61 Update output-formats.md
09a7a46ae Remove my defunct and little used migrator (#1824 )
347434cca netlify: Hugo 0.104.2
f8c721162 Update postcss.md
c2baf7155 netlify: Hugo 0.104.1
05d1192cd Update diagrams.md (#1823 )
3c43a8bbe netlify: Hugo 0.104.0
57973b334 Merge branch 'tempv0.104.0'
da775a36d docs: Regen docs helper
ae48b5901 docs: Regenerate CLI docs
af4a823b1 resources/images: Add $image.Colors
8e3f9ca64 Remove outdated IE conditional comments example (#1821 )
d1a84701b fix typo in template introduction (#1820 )
c0c7339e0 Update internal.md
17aefc515 Remove the recommendation about where to put the GA tempalte
263297236 Adjust GA template instructions
1cc265d99 Update the GA template usage section
e11968338 config/security: Allow proxy variables in subcommands
9218ab993 netlify: Hugo 0.103.1
0b0e890d1 Update markdownify and RenderString documentation (#1818 )
50f5d4776 Fix internal link (#1817 )
6beb443c5 netlify: Hugo 0.103.0
14b5af248 Merge branch 'tempv0.103.0'
548e7aa62 server: Add 404 support
3a20aa0ba Update theme
git-subtree-dir: docs
git-subtree-split: 32cb8785ea
2022-11-17 16:14:29 +01:00
dependabot[bot]
cdd83bf3c8
build(deps): bump github.com/evanw/esbuild from 0.15.13 to 0.15.14
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.13 to 0.15.14.
- [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.13...v0.15.14 )
---
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 >
2022-11-16 19:15:58 +01:00
Bjørn Erik Pedersen
e00220a06a
deps: Update the libweb version string
2022-11-15 18:21:08 +01:00
Bjørn Erik Pedersen
a662ddae13
deps: Upgrade github.com/bep/gowebp v0.1.0 => v0.2.0
2022-11-15 18:19:35 +01:00
Vignesh Mani
13adf3e028
readme: Update ToC
2022-11-15 18:19:16 +01:00
dependabot[bot]
fe08d35f24
build(deps): bump github.com/yuin/goldmark from 1.5.2 to 1.5.3
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-15 11:48:20 +01:00
dependabot[bot]
4b675ddd4a
build(deps): bump github.com/spf13/afero from 1.9.2 to 1.9.3
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.2...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-15 10:01:23 +01:00
dependabot[bot]
24eaa290cf
build(deps): bump github.com/getkin/kin-openapi from 0.107.0 to 0.108.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.107.0 to 0.108.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.107.0...v0.108.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 >
2022-11-15 10:00:57 +01:00
Bjørn Erik Pedersen
f6ab9553f4
tpl/internal: Sync go_templates
...
Closes #10411
2022-11-14 22:31:50 +01:00
dependabot[bot]
58a98c7758
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.6 to 2.5.7
...
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj ) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/clbanning/mxj/releases )
- [Commits](https://github.com/clbanning/mxj/compare/v2.5.6...2.5.7 )
---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 22:20:38 +01:00
dependabot[bot]
900904fd11
build(deps): bump golang.org/x/net from 0.1.0 to 0.2.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.2.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 19:08:03 +01:00
dependabot[bot]
24eca0cbe9
build(deps): bump github.com/evanw/esbuild from 0.15.12 to 0.15.13
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.12 to 0.15.13.
- [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.12...v0.15.13 )
---
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 >
2022-11-14 19:07:26 +01:00
Vignesh Mani
60e0e2c1d9
Add Go 1.16+ install method to README
...
Changed installation method to reflect Go 1.16+, as cloning the repo and doing a go install achieves the same process.
Also changed "Advanced Installation" to "Using the Go toolchain"
2022-11-10 17:36:31 +01:00
Bjørn Erik Pedersen
52ea07d2eb
Fix taxonomy weight sort regression
...
Fixes #10406
2022-11-01 18:45:34 +01:00
hugoreleaser
77fc74a5b2
releaser: Prepare repository for 0.106.0-DEV
...
[ci skip]
2022-10-28 12:41:15 +00:00
hugoreleaser
0e3b42b4a9
releaser: Bump versions for release of 0.105.0
...
[ci skip]
2022-10-28 12:29:05 +00:00
dependabot[bot]
f50585442d
build(deps): bump golang.org/x/tools from 0.1.12 to 0.2.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.12 to 0.2.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.12...v0.2.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-10-28 14:10:21 +02:00
dependabot[bot]
2aedccc9a9
build(deps): bump github.com/getkin/kin-openapi from 0.106.0 to 0.107.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.106.0 to 0.107.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.106.0...v0.107.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 >
2022-10-28 14:09:21 +02:00
dependabot[bot]
c10931404f
build(deps): bump golang.org/x/text from 0.3.7 to 0.4.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.7 to 0.4.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.4.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 >
2022-10-27 12:28:57 +02:00
dependabot[bot]
4732c47d1d
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-27 12:28:37 +02:00
dependabot[bot]
62780ec8dd
build(deps): bump github.com/getkin/kin-openapi from 0.103.0 to 0.106.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.103.0 to 0.106.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.103.0...v0.106.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 >
2022-10-27 12:28:21 +02:00
dependabot[bot]
351d6b062b
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.1 to 2.12.4
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.1 to 2.12.4.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.1...v2.12.4 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-26 13:02:40 +02:00
Bjørn Erik Pedersen
631d768be9
Revise the fix for shortcode vs output format nilpointer
...
We do lazy initialization and (potentially) reuse of an output format's rendered content. We do this evaluation when we
start a new rendering a new output format. There are, however, situation where these borders gets crossed (e.g.
accessing content from another output format). We have a check for this in place for most cases, but not the content
rendering of inner markdown blocks inside shortcodes. This patch applies that same logic to the newly introduced
RenderContent method (which is not available from the templates).
Fixes #10391
2022-10-26 13:00:21 +02:00
davidejones
e5d2a8f6a3
Avoid nilpointer when shortcode page content output nil
...
Updates #10391
2022-10-26 13:00:21 +02:00
Bjørn Erik Pedersen
00ff161b67
livereload: Use text/javascript here, too
2022-10-26 12:54:50 +02:00
Bjørn Erik Pedersen
588710a7ac
media: Rename application/javascript, application/typescript to text/javascript etc.
...
The former is deprecated.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813
2022-10-26 10:38:27 +02:00
dependabot[bot]
ed930db2f0
build(deps): bump github.com/yuin/goldmark from 1.4.15 to 1.5.2
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.15 to 1.5.2.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.15...v1.5.2 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-26 10:34:24 +02:00
dependabot[bot]
05df964816
build(deps): bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.4...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-26 10:25:34 +02:00
Bjørn Erik Pedersen
20ef6dcf95
Skip flakey server tests on GitHub Action on Windows
2022-10-26 09:29:55 +02:00
dependabot[bot]
9860e0e186
build(deps): bump github.com/magefile/mage from 1.13.0 to 1.14.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/magefile/mage/releases )
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml )
- [Commits](https://github.com/magefile/mage/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 16:13:08 +02:00
Bjørn Erik Pedersen
d1cd1db0e7
github: Avoid duplicate test runs
2022-10-25 16:08:41 +02:00
Bjørn Erik Pedersen
09e10110a3
tpl/encoding: Add noHTMLEscape option to jsonify
2022-10-24 17:21:42 +02:00
dependabot[bot]
2ef60dbd2d
build(deps): bump github.com/evanw/esbuild from 0.15.9 to 0.15.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.9 to 0.15.12.
- [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.9...v0.15.12 )
---
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 >
2022-10-24 17:19:54 +02:00
Steffen Windoffer
6275aad9e2
Update Go and Alpine version in Dockerfile
2022-10-19 19:58:25 +02:00
JB
01ebb6e304
Don't use self-closing generator tag
2022-10-14 12:16:53 +02:00
Bjørn Erik Pedersen
a066e98851
build: Update to Go 1.19.2
2022-10-11 09:26:31 +02:00
Bjørn Erik Pedersen
1fd3320dcf
github: Use SHA versions
2022-10-05 16:37:37 +02:00
jongwooo
0fb2b3d143
Resolve dependency-path not found error in workflow
2022-10-05 20:39:45 +09:00
jongwooo
db05232d56
Use setup-go action to cache dependencies
2022-10-05 10:20:22 +02:00
hugoreleaser
2734f956c3
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-10-04 14:39:43 +00:00
hugoreleaser
58b8245813
releaser: Bump versions for release of 0.104.3
...
[ci skip]
2022-10-04 14:25:23 +00:00
Bjørn Erik Pedersen
ec57cf2c30
resources: Update golden image dithering exception list
2022-10-04 16:19:52 +02:00
Bjørn Erik Pedersen
3a9cb7b0fb
resources/images: Fix 2 animated GIF resize issues
...
* Fix resize of animated GIF when target != GIF
* Avoid processing all GIF frames if targetFormat != GIF
Fixes #10354
2022-10-04 15:38:12 +02:00
Anthony Fok
0addb302ac
server: Fix flaky TestServerPathEncodingIssues tests
...
Set getNumHomes: 1 to enable 567 ms or 2 s of wait for the server
to be ready in TestServerPathEncodingIssues/Unicode_paths and
TestServerPathEncodingIssues/Windows_multilingual_404.
Fixes #10332
2022-10-04 14:48:29 +02:00
Joe Mooring
b002d47953
commands: Remove extraneous newline from result of convert toTOML
...
Fixes #10351
2022-10-04 09:28:34 +02:00
Ricardo N Feliciano
e3f31352d4
config/security: Fix filename
2022-10-02 12:52:04 +02:00
hugoreleaser
ec02c537ed
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-29 10:47:15 +00:00
hugoreleaser
84cbe72498
releaser: Bump versions for release of 0.104.2
...
[ci skip]
2022-09-29 10:31:09 +00:00
Bjørn Erik Pedersen
4611b6920b
Fix htimes /: operation not permitted error on config changes
...
Regression introduced in v0.104.1.
2022-09-29 12:27:25 +02:00
Bjørn Erik Pedersen
2171e3c9a5
Revert "Adjust a test"
...
Committed by mistake.
This reverts commit cac773aeff .
2022-09-27 11:42:25 +02:00
Bjørn Erik Pedersen
cac773aeff
Adjust a test
2022-09-27 11:41:15 +02:00
hugoreleaser
51010a69bc
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-26 17:17:27 +00:00
hugoreleaser
8958b8741f
releaser: Bump versions for release of 0.104.1
...
[ci skip]
2022-09-26 17:05:45 +00:00
Bjørn Erik Pedersen
29ccb36069
Fix /static performance regression from Hugo 0.103.0
...
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing.
This fixes that by:
* Making sure that the /static syncer always gets its own file system without any checks for the post process token.
* For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images)
Fixes #10328
2022-09-26 19:02:25 +02:00
hugoreleaser
d8aba18e05
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-23 14:44:31 +00:00
hugoreleaser
c744dbd6ed
releaser: Bump versions for release of 0.104.0
...
[ci skip]
2022-09-23 14:32:56 +00:00
Bjørn Erik Pedersen
5c41653364
Consolidate the glob case logic
...
Looking at the code as a whole, we ended up with a little to much "buttons". It turns out that doing case insensitive matching (lower both pattern and strings to match) performs just fine. Or at least, it
gives the penalty to the people who uses mixed case filenames.
```
GetGlob/Default_cache-10 10.6ns ± 2% 10.6ns ± 1% ~ (p=0.657 n=4+4)
GetGlob/Filenames_cache,_lowercase_searchs-10 10.6ns ± 2% 10.6ns ± 0% ~ (p=1.000 n=4+4)
GetGlob/Filenames_cache,_mixed_case_searchs-10 29.7ns ± 1% 29.6ns ± 1% ~ (p=0.886 n=4+4)
GetGlob/GetGlob-10 13.7ns ± 1% 13.7ns ± 0% ~ (p=0.429 n=4+4)
name old alloc/op new alloc/op delta
GetGlob/Default_cache-10 0.00B 0.00B ~ (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10 0.00B 0.00B ~ (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10 5.00B ± 0% 5.00B ± 0% ~ (all equal)
GetGlob/GetGlob-10 0.00B 0.00B ~ (all equal)
name old allocs/op new allocs/op delta
GetGlob/Default_cache-10 0.00 0.00 ~ (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10 0.00 0.00 ~ (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10 1.00 ± 0% 1.00 ± 0% ~ (all equal)
GetGlob/GetGlob-10
```
2022-09-23 16:19:21 +02:00
satotake
281554ee97
hugofs: Fix glob case-sensitivity bug
...
On Linux, `hugofs.Glob` does not hit any directories which includes
uppercase letters. (This does not happen on macOS.)
Since `resources.GetMatch/Match` uses `Glob`,
```
{{ resources.GetMatch "Foo/bar.css" }}
```
this does not match `assets/Foo/bar.css` .
On the other hand, you can get it with
```
{{ resources.Get "Foo/bar.css" }}
```
2022-09-23 13:12:57 +02:00
Bjørn Erik Pedersen
f3560aa0e1
server: Fix 404 redirects on Windows
...
Fixes #10314
2022-09-23 13:07:56 +02:00
dependabot[bot]
edf9038a92
build(deps): bump github.com/evanw/esbuild from 0.15.8 to 0.15.9
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.8 to 0.15.9.
- [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.8...v0.15.9 )
---
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 >
2022-09-23 10:56:45 +02:00
dependabot[bot]
78f49b4c0d
build(deps): bump github.com/yuin/goldmark from 1.4.14 to 1.4.15
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.14 to 1.4.15.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.14...v1.4.15 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 19:25:55 +02:00
dependabot[bot]
fa4b77e7ed
build(deps): bump github.com/getkin/kin-openapi from 0.100.0 to 0.103.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.100.0 to 0.103.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.100.0...v0.103.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 >
2022-09-22 19:05:44 +02:00
Bjørn Erik Pedersen
8377c3cea1
docs: Regen docs helper
2022-09-22 18:55:00 +02:00
dependabot[bot]
4d909d4768
build(deps): bump github.com/alecthomas/chroma/v2 from 2.2.0 to 2.3.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-22 18:54:27 +02:00
dependabot[bot]
4eb6d97404
build(deps): bump github.com/evanw/esbuild from 0.15.7 to 0.15.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.7 to 0.15.8.
- [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.7...v0.15.8 )
---
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 >
2022-09-22 18:53:12 +02:00
Bjørn Erik Pedersen
4f9cb4f344
docs: Regenerate CLI docs
2022-09-22 17:57:13 +02:00
Bjørn Erik Pedersen
0171fb2010
Run go mod tidy
2022-09-22 17:42:48 +02:00
Bjørn Erik Pedersen
a4028112e3
resources/images: Add $image.Colors
...
Which returns the most dominant colors of an image using a simple histogram method.
Fixes #10307
2022-09-22 15:57:35 +02:00
Bjørn Erik Pedersen
08f0984f91
commands: Skip flaky test on CI
2022-09-22 11:24:42 +02:00
Mathieu Parent
86653fa38e
config/security: Allow proxy variables in subcommands
...
In particular for go get
2022-09-19 12:37:35 +02:00
hugoreleaser
c46d104985
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-18 13:31:21 +00:00
hugoreleaser
b665f1e8f1
releaser: Bump versions for release of 0.103.1
...
[ci skip]
2022-09-18 13:19:01 +00:00
Bjørn Erik Pedersen
6be6752c8a
server: Fix redirects when file path contains bytes > 0x80
...
Fixes #10287
2022-09-18 15:16:11 +02:00
Bjørn Erik Pedersen
8e9dce1092
Merge branch 'release-0.103.0'
2022-09-15 18:47:37 +02:00
hugoreleaser
00b71668b2
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-15 16:35:38 +00:00
hugoreleaser
beebf2afb0
releaser: Bump versions for release of 0.103.0
...
[ci skip]
2022-09-15 16:23:56 +00:00
Bjørn Erik Pedersen
3f0b40f674
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 18:22:35 +02:00
Bjørn Erik Pedersen
0bd79d30c1
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 12:26:22 +02:00
Bjørn Erik Pedersen
8e77bcc930
Filter out any duplicate files to post process
...
Updates #10269
2022-09-14 19:42:55 +02:00
Bjørn Erik Pedersen
74daca6b30
Support PostProcess for all file types
...
Not just HTML.
Fixes #10269
2022-09-14 19:09:20 +02:00
dependabot[bot]
1fd4c562af
build(deps): bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.5...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 18:12:47 +02:00
Bjørn Erik Pedersen
a5cda5ca4d
server: Add 404 support
2022-09-14 14:25:33 +02:00
dependabot[bot]
5e2b28d6e6
build(deps): bump github.com/getkin/kin-openapi from 0.98.0 to 0.100.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.98.0 to 0.100.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.98.0...v0.100.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 >
2022-09-14 11:21:14 +02:00
dependabot[bot]
f2019f0a23
build(deps): bump github.com/evanw/esbuild from 0.15.5 to 0.15.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.5 to 0.15.7.
- [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.5...v0.15.7 )
---
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 >
2022-09-14 10:58:32 +02:00
dependabot[bot]
475638fe02
build(deps): bump github.com/yuin/goldmark from 1.4.13 to 1.4.14
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.13 to 1.4.14.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.13...v1.4.14 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-14 10:58:12 +02:00
Bjørn Erik Pedersen
203cc54578
Feat/sponsors in readme ( #10273 )
...
* Update README.md
* Update README.md
2022-09-14 10:20:57 +02:00
Bjørn Erik Pedersen
90ad804505
Squashed 'docs/' changes from e5aa641a6..392668f4f
...
392668f4f Update theme
65d82c845 fix versions in GitHub Pages docs (#1815 )
4e078a306 Create hosting-on-azure-static-web-apps.md (#1738 )
e24e25052 fix requirement typo (#1814 )
0790eb173 fix broken link (#1813 )
f4a1b38c7 📄 Add more clarity on merging of config files (#1493 )
2e82efff0 Install on Windows: Correct + augment (#1520 )
4bffd076e Update frontends to add CloudCannon's CMS (#1509 )
17eea3133 Update index.md to add resource (#1508 )
5a5ac1d2f Add documentation for babel sourceMap (#1492 )
899b7117c Update menu-templates.md
284dc4266 Include flexible translation in i18n.md
f03421274 docs: Escaping Hugo/GO template code
4f0755683 Improve the documentation of imageConfig and the image resource
89aa723cc Clarify leaf bundle explanation and related FAQ
0c6b32bb9 Update starter-kits.md
a68151b1b Update starter-kits.md
91b145384 Update starter-kits.md
c8104b422 Update hosting-on-21yunbox.md
51ee7603b Update hosting-on-21yunbox.md
d88314499 docs(en): add hosting on 21YunBox
aab04f269 Update shortcode-templates.md to correct an error.
ed48563aa Misc improvements
87dd24e1d Fix merge failure
0bcc6dca8 js.Build: Update docs to not allow boolean inputs for sourceMap
e50a28fbc js.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap
9695093a1 Fix Arch Linux installation command
3de773d7a Please remove hugo-elasticsearch plugin.
6510f0a5a release: Add some more ignore expressions to release notes config
dc90b7517 typoe > typo (!)
3427c7436 Add hugoreleaser config
5a1f2d0dd Improves formatting of resources, assets sections (#1804 )
03ba56fdd Remove Flesland Flis from Showcases
9f61dac7a Update slice.md
533e4e0cd Update theme
85e50325c Simplify writing
9b30e81b9 Typo fix and remove passive form
8974b6c53 dynamic-menu-configuration
1c5467329 netlify: Hugo 0.102.3
610a937b0 Remove Over from Showcase
99f5585bc netlify: Hugo v0.102.2
9f230ac1f netlify: Hugo v0.102.1
a6fc3f864 netlify: Bump to Hugo v0.102.0
3e9bc1a62 Merge branch 'tempv0.102.0'
c08d6d898 Update en/templates/404.md with Firebase Hosting (#1796 )
322b75f40 Update configuration.md
2fa6f0b94 404 template example: remove slash relURL arg
1195f168a Remove broken link (#1767 )
e0838e574 Update RenderString.md
bee6adf71 Update page-resources.md
24e142f22 Remove duplicate word from cascade description
879fc3983 docs: Update the description of PostCSS config
2ffe539e3 fix: Use `=` instead of `:=` for variable reassignments (#1771 )
7496b8f87 update 404 error for digitalocean docs
c85caca4a Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
c3888b63a docs: Regen docshelper
8a5942555 Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
282007217 common: Add hugo.GoVersion
00b4b46da resources/page: Add :slugorfilename attribute
git-subtree-dir: docs
git-subtree-split: 392668f4f4
2022-09-13 20:34:24 +02:00
Bjørn Erik Pedersen
af23cdca9c
Merge commit '90ad8045056167004d27857a95542936657b8a16'
2022-09-13 20:34:24 +02:00
satotake
ab5ce59894
Fix usage description
2022-09-08 15:35:11 +02:00
satotake
7d40da876c
Add --force to hugo new
...
Closes #9243
2022-09-08 15:35:11 +02:00
Jenny Rakoczy
02c89a446d
scss: Handle single-file sourcemaps correctly
...
Simple sites may only have one css file. Update the replace directive to
correctly match single-file sourcemaps and multi-file sourcemaps.
Verified locally with and without SASS and CSS imports.
Fixes #8174
2022-09-06 10:52:28 +02:00
Bjørn Erik Pedersen
06c3ac6741
release: Bump Hugoreleaser version
2022-09-03 11:38:03 +02:00
Alex
5e03de0ddb
Update stale.yml
...
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com >
2022-09-02 20:13:02 +02:00
hugoreleaser
bef31b58aa
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-09-01 10:34:57 +00:00
hugoreleaser
b76146b129
releaser: Bump versions for release of 0.102.3
...
[ci skip]
2022-09-01 10:16:19 +00:00
Bjørn Erik Pedersen
8e5044d7f5
Fix shortcode parser regression with quoted param values
...
This issue was introduced in `v0.102.0`.
In 223bf28004 we removed the byte source from the parsed page result, which
meant we had to preserve exact positioning for all elements. This introduced some new `TypeIgnore` tokens
which we, wrongly, assumed didn't matter where we put in the result slice (they should be ignored anyway).
But it seems that this broke the logic where we determine if it's positional or named params in the case
where the paramater value contains escaped quoutes.
This commit makes sure that these ignore tokens (the back slashes) are never sent back to the client, which is how it was before `v0.102.0`.
This commit also fixes some lost error information in that same commit.
Fixes #10236
2022-09-01 12:13:23 +02:00
Joe Mooring
5046a6c7ca
deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1
...
Fixes #10230
2022-08-31 09:02:50 +02:00
Anthony Fok
160a067c81
snap: Use "snapcraftctl set-grade"
...
This, together with 'snapcraftctl set-version", negates the need to
modify snap/snapcraft.yaml upon each release, so the corresponding code
is removed from releaser/releaser.go.
Also, vendorInfo is extended to include the snap version number.
See #10225
2022-08-30 05:23:18 -06:00
Anthony Fok
e0ba1a805a
snap: Use "snapcraftctl set-version"
...
This allows the use of "git describe --tags" to recognize lightweight
version tags, and the removal of initial "v" in the hugo snap version.
See #10225
2022-08-29 23:14:22 -06:00
Anthony Fok
7b49c56a6a
snap: Make external dependencies actually work
...
Git:
- Set GIT_EXEC_PATH and include usr/lib/git-core so that git can find the
git-remote-https helper (needed by e.g. "go mod download").
Go:
- Put Go in its own snap part, and use stage-snaps instead of build-snaps
so that it is included in the final snap.
- Set GOCACHE to a writable directory. (In a previous commit,
HOME is set to $SNAP_REAL_HOME which is unwritable.)
Hugo:
- Patch config/security/securityConfig.go "[security.exec] osEnv" whitelist
(during snap build) so that external dependencies can use the required
environment variables to run properly from within the snap.
Asciidoctor:
- Replace shebang line in asciidoctor so it can find the ruby executable.
- Set RUBYLIB so that Ruby can find its libraries.
Caveat/TODO: The Ruby version is hardcoded in our custom RUBYLIB.
Embedded Dart Sass:
- Download from GitHub and install it, for amd64 and arm64 only.
Node.js:
- Remove my incomplete include list so that npx is actually installed.
- Set npm_config_{cache,init_module,userconfig} to writable locations.
Pandoc:
- Set pandoc_datadir so that Pandoc can find its data files.
rst2html:
- Install python3-docutils package for rst2html, rst2html5, etc.
- Set PYTHONHOME so that Python can find its libraries.
Note that asciidoctor, pandoc and rst2html are not in Hugo’s default
"[security.exec] allow" whitelist, and the snap package does not change
that default, so they still needed to be whitelisted manually in
config.toml if necessary by the end user.
Special thanks to Joe Mooring (@jmooring) for meticulously diagnosing
the issue and providing a comprehensive test repository at
https://github.com/jmooring/hugo-snap-test without which I would not
have been able to understand and resolve the issue.
Fixes #9078
2022-08-29 12:24:58 -06:00
Bjørn Erik Pedersen
dffca57883
release: Add the releaser commits to the ignore list
2022-08-29 16:29:45 +02:00
Bjørn Erik Pedersen
79932e7225
release: Fix the Deb archives
...
Fixes #10220
2022-08-29 14:56:15 +02:00
hugoreleaser
9eb9b70a29
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-08-28 16:41:06 +00:00
hugoreleaser
0ff4a9326f
releaser: Bump versions for release of 0.102.0
...
[ci skip]
2022-08-28 16:29:34 +00:00
Bjørn Erik Pedersen
45e1084ff2
Add linux/arm64 extended to release setup
...
Fixes #8257
2022-08-28 18:23:01 +02:00
Bjørn Erik Pedersen
c98348416c
license: Add copyright info
...
Closes #10218
2022-08-28 12:55:47 +02:00
dependabot[bot]
2de393c791
build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0
...
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/uber-go/atomic/releases )
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/atomic/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/atomic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-28 12:02:17 +02:00
dependabot[bot]
7efb35680f
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-26 18:50:51 +02:00
dependabot[bot]
ddbcc67122
build(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.97.0 to 0.98.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.97.0...v0.98.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 >
2022-08-26 18:48:56 +02:00
Bjørn Erik Pedersen
fd75f129b2
deps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4
...
Closes #10210
2022-08-26 18:30:46 +02:00
dependabot[bot]
14878ca0a0
build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.8.2 to 1.9.2.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.8.2...v1.9.2 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-26 12:01:51 +02:00
dependabot[bot]
e88873b803
build(deps): bump github.com/tdewolff/parse/v2 from 2.6.1 to 2.6.2
...
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse ) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/tdewolff/parse/releases )
- [Commits](https://github.com/tdewolff/parse/compare/v2.6.1...v2.6.2 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/parse/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-26 12:01:19 +02:00
dependabot[bot]
4219993b0c
build(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-25 12:28:50 +02:00
dependabot[bot]
988e1417a0
build(deps): bump github.com/rogpeppe/go-internal from 1.8.1 to 1.9.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 13:36:47 +02:00
dependabot[bot]
42529882ce
build(deps): bump github.com/yuin/goldmark from 1.4.12 to 1.4.13
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.12 to 1.4.13.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.12...v1.4.13 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 13:34:24 +02:00
dependabot[bot]
45f1b1cfc5
build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 06:53:38 +02:00
dependabot[bot]
369bdf22f8
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.11.10 to 2.12.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.10...v2.12.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-23 00:00:14 +02:00
dependabot[bot]
d1b03a093f
build(deps): bump github.com/evanw/esbuild from 0.14.43 to 0.15.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.43 to 0.15.5.
- [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.14.43...v0.15.5 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-22 23:58:15 +02:00
Reece Russell
941c28ab0c
readme: Add Golang URL to Go links
2022-08-22 19:45:15 +02:00
Bjørn Erik Pedersen
ffbdcc75ab
Update README.md
2022-08-19 19:15:58 +02:00
Bjørn Erik Pedersen
95d9764518
Update README.md
2022-08-19 19:12:43 +02:00
Bjørn Erik Pedersen
b66f9f2665
Update README.md
2022-08-19 19:12:04 +02:00
Anthony Fok
f7e00c039f
github: Use GitHub's Choco-Install function to retry installs
...
Apparently, two instances of "choco install mingw" running simultaneously
(for go-version 1.18.x and 1.19.x) would often cause at least one of them
to fail to connect to SourceForge:
ERROR: The remote file either doesn't exist, is unauthorized,
or is forbidden for url
'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-10.X-with-ada/GCC-10.2.0-crt-8.0.0-with-ada-20201019.7z/download '.
Exception calling "GetResponse" with "0" argument(s):
"The request was aborted: Could not create SSL/TLS secure channel."
With Choco-Install however, it simply works every single time!
Thanks to keymanapp/api.keyman.com#156 for the great tip!
See the definition of the PowerShell Choco-Install function here:
https://github.com/actions/runner-images/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
2022-08-14 00:52:23 -06:00
Bjørn Erik Pedersen
f5ba6fd45c
common/hugio: One more fix for non-OS fs
...
Note that these are only used with OS fs, so no practical bugs, but still-
2022-08-13 19:22:45 +02:00
Bjørn Erik Pedersen
c4bbc1eeeb
common/hugio: Fix CopyDir when fs is not OS
2022-08-13 18:26:16 +02:00
Anthony Fok
0e0fb1b648
snap: Delete obsolete custom x-nodejs plugins
2022-08-12 21:39:25 -06:00
satotake
b017f7cb01
livereload: Inject script without head or body tag
...
Currently, Hugo does not inject `livereload` script if html does not contain `<head>` or `<body>`. This sometimes happens if you create new sites without `theme` and it is hard to catch the cause soon.
This PR:
* Inject livereload script even if html does not include `<head>`, `<body>`, or `<html>`
- Modern browsers execute scripts even if they are outside `<html>`
- Some js frameworks (confirmed with vite) inject HRM script without `<html>` tag
* Append warning script to html if `<head>` or `<body>` is not in html
* Fix bug that livereload cannot be appended to the tags with attrs
Close #10105
2022-08-07 18:34:01 +02:00
Bjørn Erik Pedersen
7fb28085ac
releaser: Fat MacOS binaries
...
Closes #9131
2022-08-03 23:22:01 +02:00
Bjørn Erik Pedersen
0cd1929b9c
Update to Go 1.19
...
Fixes #10145
2022-08-03 23:22:01 +02:00
piyo
cbdaff2135
markup/goldmark/codeblock: Fix attributes when no language identifier in CodeBlock
...
Fixes #10118
2022-08-03 11:32:08 +02:00
杨晴
3fefea06b8
commands: Fix embed in livereload.go
2022-08-01 11:42:26 +02:00
Bjørn Erik Pedersen
5c48ba9343
Update README.md
...
Updates #10136
2022-07-31 15:41:42 +02:00
Takeshi Sato
21562e3aad
Externalise and embed livereload.js string
...
This is a small refactoring. `livereload/livereload.go` has a wide
column. Sometimes language server does not work because of it.
Create a new js file and embed it.
2022-07-26 13:51:08 +02:00
Bjørn Erik Pedersen
9c24b86e4b
Cache when not found in LookupLayout
...
Very visible when using the pprof mutex profiler.
```bash
name old time/op new time/op delta
Baseline-10 58.4ms ± 1% 51.6ms ± 0% -11.56% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline-10 64.3MB ± 0% 64.2MB ± 0% ~ (p=0.114 n=4+4)
name old allocs/op new allocs/op delta
Baseline-10 649k ± 0% 649k ± 0% ~ (p=0.229 n=4+4)
```
2022-07-13 15:49:00 +02:00
Bjørn Erik Pedersen
223bf28004
parser/pageparser: Don't store the byte slices
...
On its own this change doesn't do any magic, but this is part of a bigger picture about making Hugo leaner in the
memory usage department.
2022-07-09 16:03:11 +02:00
Bjørn Erik Pedersen
72b0ccdb01
Make the baseline benchmark's test files stable
...
And add some assertions.
2022-06-30 12:36:55 +02:00
Bjørn Erik Pedersen
bdf935d66c
Squashed 'docs/' changes from 30f32a624..e5aa641a6
...
e5aa641a6 remove erroneous foo
8307b474e Add hl_inline to highlight function documentation
8517b02d9 update GitHub 404 docs URL to prevent redirect
5c52c2715 remove aerobatic.com
3eb179558 Update syntax-highlighting.md
00cbe3f2f Check for nil Chroma .Aliases
45416515e netlify: Hugo 0.101.0
d5dcd1581 docs: Regen docshelper
4785e99b1 common: Add hugo.GoVersion
e679f1b7e resources/page: Add :slugorfilename attribute
f2cc72a1f Update spellcheck.yml (#1755 )
git-subtree-dir: docs
git-subtree-split: e5aa641a62
2022-06-28 20:51:33 +02:00
Bjørn Erik Pedersen
65e52a7f5c
Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
2022-06-28 20:51:33 +02:00
Anthony Fok
8ebcaa5394
Accept vendor-specified build date if .git/ is unavailable
...
Fixes #10053
2022-06-28 20:51:18 +02:00
Anthony Fok
241481931f
snap: Replace mage with "go build" and set VendorInfo=snap
2022-06-28 04:09:50 -06:00
Anthony Fok
5caed8a71f
snap: Use interface names etc-gitconfig and gitconfig, Take 2
...
as recommended by @alexmurray to keep consistency with other snaps; see
https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598
I neglected to make the rename of system-gitconfig → etc-gitconfig and
user-gitconfig → gitconfig to the apps.plugs section in commit fd3953c ,
hence this commit to fix the store upload scan failure:
interface 'system-gitconfig' not found in base declaration
interface 'user-gitconfig' not found in base declaration
unknown plugs interface name reference 'system-gitconfig'
unknown plugs interface name reference 'user-gitconfig'
Special thanks to Alex Murray and Igor Ljubuncic for approving the
system-files and personal-files request for Hugo.
Fixes #6226
2022-06-27 09:27:30 -06:00
Bjørn Erik Pedersen
d1278f696a
Extract the baseline benchmark to a test
2022-06-26 09:56:01 +02:00
Bjørn Erik Pedersen
92f31ae63b
Add a baseline benchmark
2022-06-25 18:26:40 +02:00
Anthony Fok
fd3953c18c
snap: Use interface names etc-gitconfig and gitconfig
...
as recommended by @alexmurray to keep consistency with other snaps; see
https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598/2
One closer step towards fixing #6226
2022-06-24 00:59:37 -06:00
hugoreleaser
15463f835b
releaser: Prepare repository for 0.102.0-DEV
...
[ci skip]
2022-06-16 07:51:58 +00:00
hugoreleaser
466fa43c16
releaser: Bump versions for release of 0.101.0
...
[ci skip]
2022-06-16 07:09:16 +00:00
hugoreleaser
6072ce0bcd
releaser: Add release notes for 0.101.0
...
[ci skip]
2022-06-16 07:09:16 +00:00
Bjørn Erik Pedersen
2c5943ddc6
build: Update to Go 1.18.3
...
Fixes #9964
2022-06-16 08:27:08 +02:00
Bjørn Erik Pedersen
0cb459a20a
docs: Regen docshelper
2022-06-16 07:23:38 +02:00
Bjørn Erik Pedersen
475f87f685
Squashed 'docs/' changes from 96fdc246c..30f32a624
...
30f32a624 Update scss-sass.md
503130186 Update scss-sass.md
cbfaa6704 Remove references to outdated Blackfriday markdown processor (#1748 )
e43948d26 netlify: Hugo 0.100.2
aaabe0ee9 Merge branch 'tempv0.100.2'
bc615f257 tpl/path: Add path.BaseName function
5dddbf95e Add Chinese translation for _documentation and _index.md
b1e4f3200 Add translation for search tools
23281633a Update introduction.md
3abb5fb5d netlify: Hugo 0.100.1
644ed3b01 Update faq.md
54f377051 Add some lines about resources.Copy
82cf08355 Remove most Blackfriday references
bfbe5aaf3 netlify: Update to Hugo 0.100.0
8b6f8577f docs: Regen CLI docs
858a5d39c docs: Regen docs helper
5037d504f Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'
03ca7be5b Fix indentation in highlight shortcode
git-subtree-dir: docs
git-subtree-split: 30f32a6243
2022-06-16 07:22:11 +02:00
Bjørn Erik Pedersen
604cfffc5b
Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
2022-06-16 07:22:11 +02:00
Bjørn Erik Pedersen
d863dde6c6
markup/highlight: Add hl_inline option
...
Closes #9442
Closes #9635
Closes #9638
2022-06-15 20:04:20 +02:00
Bjørn Erik Pedersen
580b214a4c
deps: Update github.com/alecthomas/chroma/v2 v2.1.0 => v2.2.0
2022-06-15 20:04:20 +02:00
dependabot[bot]
ddb9547085
build(deps): bump github.com/clbanning/mxj/v2 from 2.5.5 to 2.5.6
...
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj ) from 2.5.5 to 2.5.6.
- [Release notes](https://github.com/clbanning/mxj/releases )
- [Commits](https://github.com/clbanning/mxj/compare/v2.5.5...v2.5.6 )
---
updated-dependencies:
- dependency-name: github.com/clbanning/mxj/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 14:19:26 +02:00
dependabot[bot]
288b0fb15a
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 14:17:56 +02:00
dependabot[bot]
3e1344632d
build(deps): bump golang.org/x/tools from 0.1.10 to 0.1.11
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.10...v0.1.11 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 12:12:23 +02:00
dependabot[bot]
7a9ce0eca5
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.5 to 2.11.10
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.11.5 to 2.11.10.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.5...v2.11.10 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-15 12:11:23 +02:00
dependabot[bot]
f2ba0cc8c5
build(deps): bump github.com/evanw/esbuild from 0.14.42 to 0.14.43
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.42 to 0.14.43.
- [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.14.42...v0.14.43 )
---
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 >
2022-06-15 12:10:55 +02:00
dependabot[bot]
62ceaabdce
build(deps): bump github.com/getkin/kin-openapi from 0.94.0 to 0.97.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.94.0 to 0.97.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.94.0...v0.97.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 >
2022-06-15 10:36:59 +02:00
Bjørn Erik Pedersen
35fa192838
deps: Udpate to github.com/alecthomas/chroma/v2
...
Fixes #9932
Fixes #9931
2022-06-14 14:08:40 +02:00
Khayyam Saleem
09ac733381
common: Add hugo.GoVersion
...
Closes #9849 . This enables `hugo.GoVersion` in templates to access the
version of Go that the Hugo binary was built with.
2022-06-14 09:48:45 +02:00
Bjørn Erik Pedersen
66da1b7b2f
resources: Panic on Copy of Resource with .Err
...
Fixes #10006
2022-06-14 09:47:41 +02:00
Dawid Potocki
5a9ecb82a3
resources/page: Add :slugorfilename attribute
...
Fixes #4739 , #385
2022-06-13 21:45:03 +02:00
Bjørn Erik Pedersen
cbc35c48d2
Respect NO_COLOR
...
Fixes #10004
2022-06-13 18:07:37 +02:00
Andreas Deininger
44f3c07969
readme: Update dependency list
2022-06-13 13:16:45 +02:00
Bjørn Erik Pedersen
a5a4422aae
Fix relURL with leading slash when baseURL includes a subdirectory
...
Fixes #9994
2022-06-13 11:40:25 +02:00
Bjørn Erik Pedersen
617e094482
js: Resolve index.esm.js
...
Same logic as for `index.{js,ts...}` files applies; if both `index.esm.js` and `index.js` exists (unlikely), you need to use the name
with extension when importing, else the `index.js` will win.
Fixes #8631
2022-06-12 20:09:37 +02:00
Bjørn Erik Pedersen
cf12fa6161
Add animated GIF support
...
Note that this is for GIFs only (and not Webp).
Fixes #5030
2022-06-12 18:17:08 +02:00
Bjørn Erik Pedersen
2e1c81770a
resources: Add a Gif source file to golden tests
2022-06-12 16:29:19 +02:00
hugoreleaser
4276075c78
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-06-08 11:07:37 +00:00
hugoreleaser
d25cb2943f
releaser: Bump versions for release of 0.100.2
...
[ci skip]
2022-06-08 10:25:57 +00:00
hugoreleaser
8b9bdc403d
releaser: Add release notes for 0.100.2
...
[ci skip]
2022-06-08 10:25:57 +00:00
Bjørn Erik Pedersen
4e94d1db72
Update CONTRIBUTING.md
2022-06-07 17:22:17 +02:00
Bjørn Erik Pedersen
0566bbf7c7
Fix raw TOML dates in where/eq
...
Note that this has only been a problem with "raw dates" in TOML files in /data and similar. The predefined front matter
dates `.Date` etc. are converted to a Go Time and has worked fine even after upgrading to v2 of the go-toml lib.
Fixes #9979
2022-06-07 13:02:58 +02:00
Anthony Fok
534e7155bb
deps: Update to github.com/pelletier/go-toml/v2 v2.0.1
2022-06-06 09:36:43 +02:00
Joe Mooring
953f215f32
tpl/path: Add path.BaseName function
...
Closes #9973
2022-06-06 09:36:16 +02:00
satotake
8e2fd55923
livereload: Use X-Forwarded-Host for Codespace
...
Codespace has 2 types of usage
1. in browser
2. vscode on local computer
As long as you select 2 (on local), Hugo handles livereload expectedly.
But if you use it in browser, Hugo does not reload on file change, as #9936 said.
This issue happens because `CheckOrigin` always fails.
Remote server could rewrite request host name.
Fix this by respecting `X-Forwarded-Host` header during origin checking
After merging this, you can preview changes lively with codespaece in browser.
```sh
hugo server --liveReloadPort 443
```
Close #9936
2022-06-05 11:16:24 +02:00
Bjørn Erik Pedersen
311b8008bf
helpers: Fix panic with invalid defaultMarkdownHandler
...
Fixes #9968
2022-06-04 17:47:20 +02:00
Paul van Brouwershaven
c7d5f9f067
resources: Register MediaTypes before build
...
Fixes #9971
2022-06-03 21:37:50 +02:00
hugoreleaser
bfebd8c02c
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-06-01 10:54:16 +00:00
hugoreleaser
0afb4866e3
releaser: Bump versions for release of 0.100.1
...
[ci skip]
2022-06-01 10:11:48 +00:00
hugoreleaser
b1ec0c226f
releaser: Add release notes for 0.100.1
...
[ci skip]
2022-06-01 10:11:48 +00:00
Bjørn Erik Pedersen
212d9e3017
Fix panic with markdownify/RenderString with shortcode on Page with no content file
...
Fixes #9959
2022-06-01 12:04:55 +02:00
hugoreleaser
4daac654d9
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-05-31 09:19:15 +00:00
hugoreleaser
27b077544d
releaser: Bump versions for release of 0.100.0
...
[ci skip]
2022-05-31 08:37:12 +00:00
hugoreleaser
0f8343a2c2
releaser: Add release notes for 0.100.0
...
[ci skip]
2022-05-31 08:37:12 +00:00
Bjørn Erik Pedersen
3fcbee261a
docs: Regen CLI docs
2022-05-31 10:24:01 +02:00
Bjørn Erik Pedersen
db9d274275
docs: Regen docs helper
2022-05-31 10:23:20 +02:00
Bjørn Erik Pedersen
95baafeac4
Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'
2022-05-31 10:22:05 +02:00
Bjørn Erik Pedersen
e4bfe59c4e
Squashed 'docs/' changes from 2d9da3a56..96fdc246c
...
96fdc246c Fix outdated i18n warnings flag mention on the multilingual page
39d197345 netlify: Hugo 0.99.1
fafd5070e Typo: Vriables > Variables
348c4e237 Update postcss.md
924fa76b6 netlify: Hugo 0.99.0
bb3f02ac1 Merge branch 'tempv0.99.0'
bdd0b6eaf Update usage.md
f562ff99d postcss: Fix import error handling
5d73f215f docs: Regen CLI docs
git-subtree-dir: docs
git-subtree-split: 96fdc246cc
2022-05-31 10:21:09 +02:00
Bjørn Erik Pedersen
6f7bf3f2d7
Fix indentation in highlight shortcode
...
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-31 09:05:54 +02:00
Bjørn Erik Pedersen
9e904d756b
Make .RenderString render shortcodes
...
Fixes #6703
2022-05-30 11:32:55 +02:00
Bjørn Erik Pedersen
d2cfaede5b
Improve shortcode indentation handling
...
* Record the leading whitespace (tabs, spaces) before the shortcode when parsing the page.
* Apply that indentation to the rendered result of shortcodes without inner content (where the user will apply indentation).
Fixes #9946
2022-05-30 11:32:55 +02:00
Bjørn Erik Pedersen
322d19a81f
Add Markdown as an output format
...
The motivation behind this is not to make it easier to publish Markdown files, as that sounds unusual.
This is mainly meant for shortcodes that produces Markdown to be inlined.
You would do this by creating shortcodes with `*.md` suffix (e.g. `layouts/shortcodes/myshortcode.md`).
This output format is defined as plain text, and will use Go's much more lenient text template parser.
Updates #9821
2022-05-30 11:32:55 +02:00
dependabot[bot]
7cb484e121
build(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.39 to 0.14.42.
- [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.14.39...v0.14.42 )
---
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 >
2022-05-30 11:32:04 +02:00
Bjørn Erik Pedersen
0b395f0b41
Run go mod tidy
2022-05-29 23:05:16 +02:00
Bjørn Erik Pedersen
c1a83076bf
Add a shortcode benchmark
2022-05-29 15:21:08 +02:00
Bjørn Erik Pedersen
0f8dc47037
Remove Blackfriday markdown engine
...
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be
a mature replacement by now.
Closes #9934
2022-05-29 11:50:58 +02:00
Bjørn Erik Pedersen
3b478f50b7
Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself
...
There may be sites in the wild that depends on the faulty behaviour of IsDescendant/IsAncestor when comparing to itself, but
* The documentation and common sense says that a thing cannot be descendant or ancestor to itself.
* The bug introduced in `HasMenuCurrent` comes directly from that confusion.
Fixes #9846
2022-05-28 10:56:54 +02:00
dependabot[bot]
f343b8eb78
build(deps): bump github.com/sanity-io/litter from 1.5.4 to 1.5.5
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.4...v1.5.5 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-27 20:04:35 +02:00
Bjørn Erik Pedersen
60ede146b6
deps: Update to github.com/tdewolff/minify/v2 v2.11.5
2022-05-27 19:12:20 +02:00
Bjørn Erik Pedersen
dd9eaf19fd
Don't use the baseURL /path as part of the resource cache key
...
As that prevents Hugo projects with sub paths in their `baseURL` to use themes with cached resources.
Fixes #9787
2022-05-27 19:11:16 +02:00
Bjørn Erik Pedersen
46a2ea6d0d
postcss: Make the resource cache key more stable
...
By using the input map as the basis, which means the hash will not change if we add/rename/remove options.
This happened in Hugo 0.99, as we added a new options. This is unortunate.
Unfortunately this means that the cache keys for PostCSS will change one more time in 0.100, but will be stable going forward.
Note that we have implemented this pattern in all the other resource transformers.
Updates #9787
2022-05-27 18:38:44 +02:00
Bjørn Erik Pedersen
653ab2cc1f
commands: Fix case where languages cannot be configured
...
There are some commands that needs to complete without a complete configuration.
2022-05-27 13:34:20 +02:00
Bjørn Erik Pedersen
52edea0fec
github: Set HUGO_BUILD_TAGS: extended when running tests
...
Also fix TestDecodeConfig/Basic which started to fail in the extended build in 0.99.1.
Closes #9935
2022-05-27 11:55:03 +02:00
Cameron Moore
6a5acd753a
metrics: Fix divide by zero error
...
Under certain conditions, `howSimilarString` could reach a divide-by-
zero situation which causes bogus values to print in the cache potential
column of the template hints output. This situation essentially causes
a `int(math.NaN())` value to be returned and hilarity ensues thereafter.
2022-05-26 10:39:29 +02:00
Bjørn Erik Pedersen
805b21555e
Fix error message when PostCSS config file is not found
...
Fixes #9927
2022-05-25 21:21:28 +02:00
Bjørn Erik Pedersen
8ca7052528
server: Skip watching dirs in ignoreFiles
...
Fixes #9838
2022-05-25 18:31:00 +02:00
Bjørn Erik Pedersen
bb232a351a
resources: Improve error message on .Resize etc. on SVGs
...
Fixes #9875
2022-05-25 18:06:20 +02:00
Bjørn Erik Pedersen
3854a6fa6c
Fix Plainify edge cases
...
This commit replaces the main part of `helpers.StripHTML` with Go's implementation in its html/template package.
It's a little slower, but correctness is more important:
```bash
BenchmarkStripHTMLOld-10 680316 1764 ns/op 728 B/op 4 allocs/op
BenchmarkStripHTMLNew-10 384520 3099 ns/op 2089 B/op 10 allocs/op
```
Fixes #9199
Fixes #9909
Closes #9410
2022-05-25 17:55:23 +02:00
Bjørn Erik Pedersen
cd0112a05a
Add resources.Copy
...
Implemented by most Resource objects, but not Page (for now).
Fixes #9313
2022-05-25 10:35:31 +02:00
satotake
6f7fbe03b1
basefs: add noBuildLock flag
...
If the flag is enabled, `.hugo_build.lock` will not be created.
This ensures safe running on read-only filesystem etc.
Close #9780
2022-05-24 13:57:23 +02:00
satotake
2fc2e9c871
import: Fix importing jekyll site
...
Just use `afero.OsFs` without building site.
Close #9817
2022-05-21 23:44:40 +02:00
hugoreleaser
e164834f0a
releaser: Prepare repository for 0.100.0-DEV
...
[ci skip]
2022-05-18 12:01:09 +00:00
hugoreleaser
d524067382
releaser: Bump versions for release of 0.99.1
...
[ci skip]
2022-05-18 11:18:14 +00:00
hugoreleaser
31ce89f7f4
releaser: Add release notes for 0.99.1
...
[ci skip]
2022-05-18 11:18:14 +00:00
Bjørn Erik Pedersen
ee55fde5e5
releaser: Fix version replacement
2022-05-18 13:12:42 +02:00
Bjørn Erik Pedersen
2f9eac480f
server: Fix multihost crash
...
As introduced in v0.99.0.
Fixes #9901
2022-05-18 11:10:04 +02:00
Bjørn Erik Pedersen
3a8189ee93
Update stale.yml
2022-05-17 13:57:01 +02:00
hugoreleaser
7bc3401eb5
common/hugo: Fix version logic
...
[ci skip]
2022-05-16 13:01:52 +02:00
hugoreleaser
1de333e7a3
releaser: Bump versions for release of 0.99.0
...
[ci skip]
2022-05-16 08:10:56 +00:00
hugoreleaser
35cb6eefb2
releaser: Add release notes for 0.99.0
...
[ci skip]
2022-05-16 08:10:55 +00:00
Bjørn Erik Pedersen
657d1a2d95
server: Refresh the error template
...
We cannot cache it forever, as that will not allow the end user to edit and preview it.
2022-05-16 09:24:30 +02:00
Bjørn Erik Pedersen
87a22eb6d6
server: Fix SIGINT handling after loading bad configuration
...
Also fix the config error messages.
Fixes #9664
2022-05-15 22:58:05 +02:00
Bjørn Erik Pedersen
fc9f315d86
Improve SASS errors
...
Fixes #9897
2022-05-15 20:25:25 +02:00
Bjørn Erik Pedersen
4b189d8fd9
postcss: Fix import error handling
...
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-15 20:25:25 +02:00
dependabot[bot]
c2fa0a3320
build(deps): bump github.com/fsnotify/fsnotify from 1.5.3 to 1.5.4
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.3 to 1.5.4.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.3...v1.5.4 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-14 15:01:01 +02:00
Bjørn Erik Pedersen
48ea24f89a
common/herrors: Remove unused struct
2022-05-14 13:56:28 +02:00
dependabot[bot]
9f563856c1
build(deps): bump github.com/evanw/esbuild from 0.14.38 to 0.14.39
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.38 to 0.14.39.
- [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.14.38...v0.14.39 )
---
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 >
2022-05-14 13:45:11 +02:00
Bjørn Erik Pedersen
5c96bda70a
errors: Misc improvements
...
* Redo the server error template
* Always add the content file context if relevant
* Remove some now superflous error string matching
* Move the server error template to _server/error.html
* Add file context (with position) to codeblock render blocks
* Improve JS build errors
Fixes #9892
Fixes #9891
Fixes #9893
2022-05-14 13:40:56 +02:00
Bjørn Erik Pedersen
4a96df96d9
server: Always rebuild the files involved in an error
...
Fixes #9884
2022-05-14 13:40:56 +02:00
Bjørn Erik Pedersen
e8537e6dd0
postcss: Fix line numbers in error messages
...
Fixes #9880
2022-05-14 13:40:55 +02:00
Bjørn Erik Pedersen
2fbdee7268
Update CONTRIBUTING.md
...
Add some info about commit subject prefixes.
2022-05-13 11:42:12 +02:00
Bjørn Erik Pedersen
91fe1b6c69
js: Bump test dependency
...
To work around a cache issue.
2022-05-13 11:08:23 +02:00
Bjørn Erik Pedersen
7de629121d
deps: Update github.com/spf13/cast v1.4.1 => v1.5.0
2022-05-11 17:03:28 +02:00
Bjørn Erik Pedersen
9d7f166244
hugolib: Check for nil in shouldRender
2022-05-09 15:53:25 +02:00
Bjørn Erik Pedersen
51f08b0b6a
Revise the use of htime.Since/htime.Now
...
We cannot (also, it doesn't add any value) use that when the `clock` is set,
* To measure time (before that global is set)
* To compare file timestamps re cache eviction
Fixes #9868
2022-05-09 14:18:40 +02:00
Bjørn Erik Pedersen
860c51c314
tpl/collections: Make sort stable
...
Fixes #9865
2022-05-08 20:45:54 +02:00
Bjørn Erik Pedersen
855e5869c6
docs: Regen CLI docs
2022-05-08 16:57:29 +02:00
Bjørn Erik Pedersen
327aaed6d8
Squashed 'docs/' changes from 7030fe3a2..2d9da3a56
...
2d9da3a56 Update build-options.md
5d910e24d Update introduction.md
111482a8d netlify: Hugo 0.98.0
d5505ca6f docs: Regen docs helper
git-subtree-dir: docs
git-subtree-split: 2d9da3a563
2022-05-08 16:56:42 +02:00
Bjørn Erik Pedersen
1c7759028e
Merge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'
2022-05-08 16:56:42 +02:00
Bjørn Erik Pedersen
35c88a7f90
Use configured timeZone for the clock
...
And some other related adjustments.
Updates #8787
2022-05-08 16:56:26 +02:00
satotake
e77ca3c105
Add clock cli flag
...
Close #8787
2022-05-08 16:56:26 +02:00
Bjørn Erik Pedersen
f2946da9e8
Improve error messages, esp. when the server is running
...
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go.
Fixes #9852
Fixes #9857
Fixes #9863
2022-05-06 19:43:22 +02:00
Bjørn Erik Pedersen
6eea32bd6b
tpl: Improve godoc
2022-05-06 19:43:22 +02:00
nathannaveen
a6d545854a
github: Add permissions to test action
2022-05-03 09:23:47 +02:00
Bjørn Erik Pedersen
e5f2173169
tpl/crypto: Add example for FNV32a
2022-04-28 17:47:17 +02:00
hugoreleaser
89c1655ec8
releaser: Prepare repository for 0.99.0-DEV
...
[ci skip]
2022-04-28 11:02:45 +00:00
hugoreleaser
165d299cde
releaser: Bump versions for release of 0.98.0
...
[ci skip]
2022-04-28 10:23:30 +00:00
hugoreleaser
e94dc6710a
releaser: Add release notes for 0.98.0
...
[ci skip]
2022-04-28 10:23:30 +00:00
Bjørn Erik Pedersen
a4fff5753f
docs: Regen docs helper
2022-04-28 11:53:03 +02:00
Bjørn Erik Pedersen
3902f9a476
Squashed 'docs/' changes from 4c5edacfe..7030fe3a2
...
7030fe3a2 Remove .hvm file
dd0f98831 Add details for DigitalOcean (#1730 )
ff0c8a6e7 netlify: Hugo 0.97.3
e254724a7 Delete hosting-on-bitbucket.md (#1723 )
f4304fb7e Remove references to mmark (#1727 )
255319023 remove broken link to codeplex.com (#1725 )
06cc3856b delete broken link (#1724 )
ec80dc069 Revert "netlify: Hugo 0.97.2"
211bad5de netlify: Hugo 0.97.2
cd549bca9 Revert "netlify: Update to Hugo 0.97.1" (#1722 )
1039a0a48 netlify: Update to Hugo 0.97.1
a28e0d0d3 Update AddDate method
9077b443f Update lists.md
6b174329a Update lists.md
d87d9e296 netlify: Hugo 0.97.0
fa7db7c7e Merge branch 'tempv0.97.0'
dd6df54b5 Fix broken anchor links (#1717 )
6b6743976 Remove StackImpact showcase
d00a7eda9 Fix for Cloudflare docs location (#1716 )
890866722 Add git required FAQ & remove ZIP from Quick Start (#1713 )
73e82d911 resources: Add `key` to reources.GetRemote options map
6795cd2a1 Correct possible typos re: Alias robots usage (#1165 )
efd5d186a Hosting on Cloudflare Pages (#1709 )
9239c5f2a deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
859573bc8 Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
21f108f12 docs: Regen CLI docs
9b6e7afd2 Add environment as a new filter to _cascade.target
git-subtree-dir: docs
git-subtree-split: 7030fe3a2e
2022-04-28 11:52:15 +02:00
Bjørn Erik Pedersen
4852a37653
Merge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'
2022-04-28 11:52:15 +02:00
Bjørn Erik Pedersen
fa80fe3c8a
Some godoc adjustments and image struct renames
2022-04-27 23:53:56 +02:00
Bjørn Erik Pedersen
11047534e4
tpl/crypto: Add FNV32a
...
Main motivation to get a integer from a string.
2022-04-27 23:53:56 +02:00
Bjørn Erik Pedersen
d7b54a4c37
markup/goldmark: Fix attribute nilpointer
...
Fixes 9819
2022-04-27 23:53:56 +02:00
Bjørn Erik Pedersen
13ceef7599
deps: Update to gocloud.dev v0.24.0
...
Note that the v0.25.0 version is broken (for Hugo, at least).
2022-04-27 12:12:43 +02:00
dependabot[bot]
942d0dd2c7
build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.3...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-27 10:06:21 +02:00
Joe Mooring
a022ca271b
deps: Update github.com/yuin/goldmark v1.4.11 => v1.4.12
...
Fixes #9054
Fixes #9756
Fixes #9757
2022-04-27 10:04:00 +02:00
dependabot[bot]
d56b33955f
build(deps): bump github.com/evanw/esbuild from 0.14.36 to 0.14.38
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.36 to 0.14.38.
- [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.14.36...v0.14.38 )
---
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 >
2022-04-27 10:03:12 +02:00
Joe Mooring
55e28c239e
deps: Update github.com/tdewolff/minify/v2 v2.11.1 => v2.11.2
...
Fixes #9820
2022-04-26 20:01:45 +02:00
Bjørn Erik Pedersen
9a888c243a
Some godoc adjustments
2022-04-23 22:22:50 +02:00
Bjørn Erik Pedersen
05b45c35c8
tpl/lang: Handle nil values in lang.Merge
2022-04-23 22:22:50 +02:00
Bjørn Erik Pedersen
625be77e08
resources/page: Mark some more interface methods as internal
...
For the new documenttion.
2022-04-23 22:22:50 +02:00
Bjørn Erik Pedersen
097fd588ca
Deprecate page.Author and page.Authors
...
These are not documented, and they don't belong on Page. We should consider having author a first class citizen of Hugo, but as it is not it's better modelled as a taxonomy.
2022-04-23 22:22:50 +02:00
hugoreleaser
41cc4e4ba3
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-18 18:01:38 +00:00
hugoreleaser
078053a43d
releaser: Bump versions for release of 0.97.3
...
[ci skip]
2022-04-18 17:22:19 +00:00
hugoreleaser
7d9f888080
releaser: Add release notes for 0.97.3
...
[ci skip]
2022-04-18 17:22:19 +00:00
Bjørn Erik Pedersen
9b352f04a3
Fix syncing of /static regression
...
As introduced in Hugo `v0.76.1`.
And add a proper test for it.
Fixes #9794
Closes #9788
2022-04-18 19:17:27 +02:00
Bjørn Erik Pedersen
e66e2e9ce5
Revert "Revert "Fix PostProcess regression for hugo server""
...
This reverts commit 6c35a1a9ea .
Updates #9794
2022-04-18 19:17:27 +02:00
hugoreleaser
5de6f8a02c
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-17 09:16:40 +00:00
hugoreleaser
5099abe600
releaser: Bump versions for release of 0.97.2
...
[ci skip]
2022-04-17 08:39:27 +00:00
hugoreleaser
99ec88d42d
releaser: Add release notes for 0.97.2
...
[ci skip]
2022-04-17 08:39:27 +00:00
Bjørn Erik Pedersen
6c35a1a9ea
Revert "Fix PostProcess regression for hugo server"
...
This reverts commit 4deb5c6066 .
2022-04-17 10:35:01 +02:00
hugoreleaser
363bc907c0
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-16 17:35:04 +00:00
hugoreleaser
04efcb2a68
releaser: Bump versions for release of 0.97.1
...
[ci skip]
2022-04-16 16:57:30 +00:00
hugoreleaser
4560725521
releaser: Add release notes for 0.97.1
...
[ci skip]
2022-04-16 16:57:30 +00:00
Bjørn Erik Pedersen
4deb5c6066
Fix PostProcess regression for hugo server
...
Fixes #9788
2022-04-16 18:43:13 +02:00
Bjørn Erik Pedersen
397fce5603
Fix MediaType when reading images from cache
...
Fixes #8931
2022-04-16 16:36:15 +02:00
Bjørn Erik Pedersen
0093eaa683
deps: Upgrade github.com/bep/overlayfs v0.4.0 => v0.5.0
...
That version implement file.Readdir/Readdirnames for n > 0.
Closes #9783
2022-04-14 21:26:05 +02:00
hugoreleaser
d0f731c039
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-14 09:24:30 +00:00
hugoreleaser
c07f3626e7
releaser: Bump versions for release of 0.97.0
...
[ci skip]
2022-04-14 08:45:07 +00:00
hugoreleaser
42b5d16536
releaser: Add release notes for 0.97.0
...
[ci skip]
2022-04-14 08:45:07 +00:00
Bjørn Erik Pedersen
d80d5a104f
releaser: Reduce parallelism
2022-04-14 10:38:31 +02:00
Bjørn Erik Pedersen
842262f653
Revert "build(deps): bump gocloud.dev from 0.20.0 to 0.25.0"
...
This reverts commit 20162518c4 .
Updates #9778
2022-04-13 17:29:36 +02:00
Bjørn Erik Pedersen
2dbdf38a54
resources: Add key to reources.GetRemote options map
...
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-13 09:18:17 +02:00
dependabot[bot]
f8c4e1690a
build(deps): bump github.com/evanw/esbuild from 0.14.34 to 0.14.36
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.34 to 0.14.36.
- [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.14.34...v0.14.36 )
---
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 >
2022-04-12 15:03:47 +02:00
Bjørn Erik Pedersen
627eed1d62
Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware
...
Fixes #2180
2022-04-12 13:24:16 +02:00
Bjørn Erik Pedersen
82ba634ed9
Fix gosum checksum errors
...
Both of the 2 libraries in question have had known "double releases" -- same tag pushed twice with different commits.
Note that this will not resolve itself in Hugo "fully" before we do a new release (which should happen in a day or two).
Fixes #9771
2022-04-11 20:12:11 +02:00
dependabot[bot]
d417a6cf74
build(deps): bump github.com/tdewolff/minify/v2 from 2.11.0 to 2.11.1
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.11.0 to 2.11.1.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.11.0...v2.11.1 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 11:48:11 +02:00
Bjørn Erik Pedersen
13dac7f3cd
compare: Add a string sort benchmark
2022-04-11 11:33:58 +02:00
Bjørn Erik Pedersen
30c2e54c25
Replace all usage of CopyOnWriteFs with OverlayFs
...
Fixes #9761
2022-04-10 13:49:31 +02:00
Joe Mooring
3117e58595
deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
...
Fixes #9713
Fixes #9740
Adds support for minify.tdewolff.svg.keepComments (bool)
2022-04-08 21:44:29 +02:00
Bjørn Erik Pedersen
ec920363cd
Squashed 'docs/' changes from 63386081c..4c5edacfe
...
4c5edacfe cSpell config update (#1700 )
9df788b25 Fix broken link (hugo modules) (#1710 )
9928a70d6 Fix workspace formatting (#1707 )
55467e7c8 Update partials.md
9f4bd0023 Update formats.md
9b3913c86 Remove footnoteAnchorPrefix and footnoteReturnLinkContents (#1704 )
94502a09b Code block render hooks are introduced in v0.93.0 (#1701 )
c447270ef Update sitemap-template.md
78665c1e0 Update sitemap-template.md
60653c17d Update the caddy error docs link (#1696 )
9a3675aad Update sitemap templates (#1699 )
e0d08cdbb Add wpxr-to-static to list of migration tools (#1512 )
b53eb5a08 Add page for deploying with rclone (#1511 )
4207c57ff netlify: Hugo 0.96.0
a18d646ea docs: Regen docshelper
e3e0981ed docs: Regen CLI docs
fda988d01 Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
e4a26dbca tpl/crypto: Add optional encoding arg to hmac function
git-subtree-dir: docs
git-subtree-split: 4c5edacfee
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
5b5dcb8d5a
Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
ffe3eb9195
docs: Regen CLI docs
2022-04-08 13:31:50 +02:00
Bjørn Erik Pedersen
d070bdf10f
Rework the Destination filesystem to make --renderStaticToDisk work
...
See #9626
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
b08193971a
Revert "Revert "Some minor adjustments to the new static filesystem logic""
...
This reverts commit 5ef8a9f32c .
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
0a56f2af4e
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
...
This reverts commit 64b7b7a897 .
2022-04-08 13:26:16 +02:00
dependabot[bot]
9e360d3844
build(deps): bump github.com/evanw/esbuild from 0.14.31 to 0.14.34
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.31 to 0.14.34.
- [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.14.31...v0.14.34 )
---
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 >
2022-04-07 11:38:43 +02:00
Joe Mooring
a8c221d33b
modules/client: Vendor config directory if present
...
Fixes #9751
2022-04-05 20:39:04 +02:00
Bjørn Erik Pedersen
e58a540895
resources: Create a common ResourceFinder interface
...
And make both .Resources and resources implement it.
This gets us 2 new methods/functions, so you can now also do:
* .Resources.Get
* resources.ByType
Note that GetRemote is not covered by this interface, as that is only available as a global template function.
Fixes #8653
2022-04-05 18:00:44 +02:00
dependabot[bot]
20162518c4
build(deps): bump gocloud.dev from 0.20.0 to 0.25.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.20.0 to 0.25.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.20.0...v0.25.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 >
2022-04-05 17:01:25 +02:00
dependabot[bot]
6b469cc8fb
build(deps): bump golang.org/x/tools from 0.1.9 to 0.1.10
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.9...v0.1.10 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:14:00 +02:00
dependabot[bot]
080dcac6b8
build(deps): bump github.com/magefile/mage from 1.12.1 to 1.13.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/magefile/mage/releases )
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml )
- [Commits](https://github.com/magefile/mage/compare/v1.12.1...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:13:27 +02:00
dependabot[bot]
072fc8cc34
build(deps): bump github.com/gobuffalo/flect from 0.2.4 to 0.2.5
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.4...v0.2.5 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 16:12:17 +02:00
Bjørn Erik Pedersen
658e11ebaa
Localize all the GroupBy*Date methods
...
Fixes #9745
2022-04-05 16:11:11 +02:00
dependabot[bot]
e0a882fd3b
build(deps): bump github.com/getkin/kin-openapi from 0.93.0 to 0.94.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.93.0 to 0.94.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.93.0...v0.94.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 >
2022-04-05 13:54:36 +02:00
David Jones
d0657a436e
deploy: Set an MD5 attribute and use that if eTag not available
...
During Hugo deploy when a remote MD5 is invalid (e.g due to multipart eTag) Hugo reads the entire remote file and calculates the MD5 again which can be slow.
This commit updates the file upload so that it will also store an MD5 hash in the cloud provider's attributes. e.g in AWS this looks like x-amz-meta-md5chksum: 26fe392386a8123bf8956a16e08cb841.
2022-04-05 10:42:54 +02:00
dependabot[bot]
a6e2e38bb2
build(deps): bump github.com/sanity-io/litter from 1.5.2 to 1.5.4
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.2 to 1.5.4.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.2...v1.5.4 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 10:39:27 +02:00
dependabot[bot]
510e179003
build(deps): bump github.com/evanw/esbuild from 0.14.25 to 0.14.31
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.25 to 0.14.31.
- [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.14.25...v0.14.31 )
---
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 >
2022-04-05 09:42:11 +02:00
dependabot[bot]
21484f9e12
build(deps): bump github.com/frankban/quicktest from 1.14.2 to 1.14.3
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.2...v1.14.3 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 09:41:45 +02:00
Cathrine Paulsen
da00e7714e
Add environment as a new filter to _cascade.target
...
Fixes #9612
2022-04-05 09:41:24 +02:00
Bjørn Erik Pedersen
ed9aa374dd
Merge branch 'release-0.96.0'
2022-04-03 19:57:04 +02:00
Further
2a231b0b57
Snap: Add {system,user}-gitconfig plugs to read gitconfig ( #9619 )
...
* Add system-gitconfig plug to read /etc/gitconfig
* Add user-gitconfig plug to read user-specific gitconfig file(s)
* Add app environment setting to set $HOME as $SNAP_REAL_HOME
2022-04-01 02:52:39 -06:00
hugoreleaser
69c590080f
releaser: Prepare repository for 0.97.0-DEV
...
[ci skip]
2022-03-26 09:53:13 +00:00
hugoreleaser
2fd4a7d3d6
releaser: Bump versions for release of 0.96.0
...
[ci skip]
2022-03-26 09:15:58 +00:00
hugoreleaser
5a4ac2dac1
releaser: Add release notes for 0.96.0
...
[ci skip]
2022-03-26 09:15:58 +00:00
Bjørn Erik Pedersen
db1562e134
docs: Regen docshelper
2022-03-26 11:06:04 +02:00
Bjørn Erik Pedersen
5b18e10841
docs: Regen CLI docs
2022-03-26 11:05:30 +02:00
Bjørn Erik Pedersen
d276e901b3
Squashed 'docs/' changes from a393f4cf4..63386081c
...
63386081c update cSpell config update
15c76494b Update cSpell custom dictionary (#1694 )
34f3167b7 Update image processing (#1625 )
7462cc798 fix: pipes in sample code break table creation (#1686 )
48736447e Update anchorize.md
2ff0bd10b netlify: Hugo 0.95.0
0fc1d21b2 Update configuration.md
41855e372 Fix #1682
8c663433e Update related.md
7aa072eab netlify: Hugo 0.94.2
1682c7ee7 Update render-hooks.md
ce1283cc4 Move the Render Hooks doc to its own page
bbbbfbfc6 Update configuration-markup.md
92d91a316 Update configuration-markup.md
2e8068823 Update configuration-markup.md
ff2dbca60 Update configuration-markup.md
89d8e5d65 Add code block documenation
e993539f0 Update shortcodes.md
c1b28dbfe netlify: Hugo 0.94.1
81b8c9b83 Merge branch 'tempv0.94.1'
4763b3d50 docs: Regenerate CLI docs
b18463971 netlify: Bump to Hugo 0.94.0
4152ebc1d Merge branch 'tempv0.94.0'
ba3a11ac2 docs: Regenerate docshelper
e64016d13 docs: Regenerate docshelper
29180e4d2 add `.html` suffix to partial usage and references
3213e00f2 Docs tidy-up
6cfcae4b7 docs: Regenerate CLI docs
8a6cd0b4d docs: Regenerate docshelper
b20ab262f Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
git-subtree-dir: docs
git-subtree-split: 63386081c5
2022-03-26 11:04:57 +02:00
Bjørn Erik Pedersen
d7497b28c1
Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
2022-03-26 11:04:57 +02:00
Sara Op den Orth
94459680ba
Deprecate .File.Extension
...
Fixes #9352
2022-03-26 10:03:36 +01:00
Bjørn Erik Pedersen
9202117ba0
resources: Add more details to .Err
...
This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:
```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```
Fixes #9708
2022-03-25 16:40:36 +01:00
Joe Mooring
a6fa290f67
commands: Change link protocol to https
2022-03-25 15:29:50 +01:00
dependabot[bot]
0bbc2fb523
build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.91.0 to 0.93.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.91.0...v0.93.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 >
2022-03-25 11:08:23 +01:00
Joe Mooring
94e8a90769
tpl/crypto: Add optional encoding arg to hmac function
...
Closes #9709
2022-03-23 19:42:56 +01:00
Panagiotis Koursaris
a461e9d01a
Fix typo
2022-03-22 00:39:33 -06:00
cuishuang
48c98a8d24
Fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com >
[foka@debian.org: Resolve merge conflict and squash 2 commits]
Signed-off-by: Anthony Fok <foka@debian.org>
2022-03-22 00:38:23 -06:00
Anthony Fok
bbd455fe79
Update CONTRIBUTING.md to use "go install" to install mage
...
In Go 1.18, "go get" no longer builds packages.
2022-03-21 21:01:24 -06:00
Anthony Fok
8309a2b1c1
Dockerfile: Make it build with Go 1.18
2022-03-21 21:01:24 -06:00
Anthony Fok
2b7231097f
snap: Make it build with Go 1.18
2022-03-21 21:01:24 -06:00
dependabot[bot]
13ff4ded76
build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.10 to 1.4.11.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.10...v1.4.11 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-21 17:31:27 +01:00
dependabot[bot]
c3289eb5b8
build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-21 14:08:38 +01:00
Bjørn Erik Pedersen
9539069f5e
commands: Improve server startup to make tests less flaky
...
Do this by announcing/listen on the local address before we start the server.
2022-03-21 09:32:35 +01:00
Bjørn Erik Pedersen
0e305d6958
all: Use strings.Cut
...
Updates #9687
2022-03-21 09:32:35 +01:00
Luke de Waal
5adb81ce39
Support '-u=patch' in hugo mod get
...
The control-flow for running `hugo mod get` was adapted to allow for passing `-u=patch`
instead of only being able to pass `-u`.
Fixes #9127
2022-03-20 22:07:26 +01:00
Bjørn Erik Pedersen
1c0e7c1ae1
Make sure file mounts higher up wins
...
Fixes #9693
2022-03-20 20:23:03 +01:00
Joe Mooring
cad2d8cc70
resources/images: Require width and height for Crop, Fill, and Fit
...
Closes #9696
2022-03-20 19:44:41 +01:00
Bjørn Erik Pedersen
b80853de90
all: gofmt -w -r 'interface{} -> any' .
...
Updates #9687
2022-03-17 22:03:27 +01:00
Bjørn Erik Pedersen
423594e03a
dartsass: Enable deprecation, @warn and @debug logging
...
* @warn and Sass deprecations are printed as WARN
* @debug is currently logged as INFO (needs the `--verbose` flag). We may adjust this if it gets too chatty.
Fixes #9683
2022-03-17 21:45:43 +01:00
Bjørn Erik Pedersen
64afb7ca51
Use revision etc. from debug.BuildInfo
...
Fixes #9680
2022-03-17 17:14:38 +01:00
hugoreleaser
004bec2e9a
releaser: Prepare repository for 0.96.0-DEV
...
[ci skip]
2022-03-16 15:00:05 +00:00
hugoreleaser
9f2e76af65
releaser: Bump versions for release of 0.95.0
...
[ci skip]
2022-03-16 14:20:17 +00:00
hugoreleaser
f1d1576822
releaser: Add release notes for 0.95.0
...
[ci skip]
2022-03-16 14:20:17 +00:00
Bjørn Erik Pedersen
5930173cd0
readme: Add note about Go 1.18
2022-03-16 13:20:30 +01:00
Bjørn Erik Pedersen
3476b53343
tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug
2022-03-16 13:14:23 +01:00
Bjørn Erik Pedersen
e792d27017
readme: Add a contribution note
2022-03-16 13:09:17 +01:00
Bjørn Erik Pedersen
9d6495d774
github: Make it build with Go 1.18
...
I also ran some benchmarks comparing it to Go 1.17.8:
```bash
name old time/op new time/op delta
SiteNew/Regular_Bundle_with_image-10 5.13ms ± 7% 4.23ms ± 7% -17.47% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 5.12ms ± 1% 4.16ms ± 1% -18.65% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 17.3ms ± 2% 15.1ms ± 1% -12.53% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 106ms ± 1% 90ms ± 0% -15.86% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 34.0ms ± 1% 30.0ms ± 2% -11.72% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 22.7ms ± 2% 20.2ms ± 1% -10.93% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 16.7ms ± 0% 14.6ms ± 1% -12.89% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 22.2ms ± 1% 19.5ms ± 1% -12.07% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 7.71ms ± 0% 6.59ms ± 1% -14.52% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Bundle_with_image-10 2.07MB ± 0% 2.04MB ± 0% -1.40% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 1.85MB ± 0% 1.83MB ± 0% -1.54% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 11.8MB ± 0% 11.1MB ± 0% -6.11% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 95.8MB ± 0% 95.2MB ± 0% -0.63% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 27.4MB ± 0% 26.9MB ± 0% -1.68% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 15.2MB ± 0% 14.4MB ± 0% -4.93% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 8.45MB ± 0% 8.24MB ± 0% -2.43% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 16.5MB ± 0% 16.2MB ± 0% -1.78% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 3.73MB ± 0% 3.64MB ± 0% -2.30% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Bundle_with_image-10 25.0k ± 0% 24.1k ± 0% -3.60% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 25.1k ± 0% 24.1k ± 0% -3.60% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 237k ± 0% 234k ± 0% -1.29% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 365k ± 0% 363k ± 0% -0.47% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 284k ± 0% 279k ± 0% -1.98% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 252k ± 0% 249k ± 0% -1.48% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 117k ± 0% 115k ± 0% -1.68% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 184k ± 0% 181k ± 0% -1.74% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 49.9k ± 0% 48.5k ± 0% -2.79% (p=0.029 n=4+4)
```
2022-03-16 11:32:39 +01:00
Bjørn Erik Pedersen
42cc5f88b6
tpl: Adjustments and an integration test for Go 1.18
...
Updates #9677
2022-03-16 10:36:46 +01:00
Bjørn Erik Pedersen
a6488e7bad
Remove Go 1.17 support
...
Go 1.18 had some breaking changes on source level meaning we cannot build on older Go versions anymore.
The improvements in Go 1.18 (e.g. `break` and `continue`) were to good to pass on.
Note that you don't need Go (or Go 1.18) to run a pre-built binary.
Updates #9677
2022-03-16 08:57:58 +01:00
Bjørn Erik Pedersen
65a78cae1e
tpl: Sync go_templates for Go 1.18
...
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774
Updates #9677
2022-03-16 08:54:25 +01:00
Bjørn Erik Pedersen
4d6d1d08da
build: Bump to Go 1.18
...
Updates #9677
2022-03-16 08:43:18 +01:00
Bjørn Erik Pedersen
b60e1bbdfe
dartsass: Improve error message when no read access
...
Fixes #9662
2022-03-15 16:34:54 +01:00
Cathrine Paulsen
61cf3c9f63
Fix and refactor typos
2022-03-14 19:39:07 +01:00
Bjørn Erik Pedersen
31fbc081c9
Improve server startup/shutdown
...
Closes #9671
2022-03-14 19:38:17 +01:00
Bjørn Erik Pedersen
cebd886ac1
commands: Improve server tests
...
Updates #9647
2022-03-14 09:16:33 +01:00
hugoreleaser
38f778cfcc
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-12 11:02:38 +00:00
hugoreleaser
48fb9e4de3
releaser: Bump versions for release of 0.94.2
...
[ci skip]
2022-03-12 10:28:41 +00:00
hugoreleaser
0958167b38
releaser: Add release notes for 0.94.2
...
[ci skip]
2022-03-12 10:28:41 +00:00
Bjørn Erik Pedersen
b37183e48d
deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10
...
Fixes #9658
2022-03-12 11:24:11 +01:00
hugoreleaser
04ccde3e94
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-11 14:30:03 +00:00
hugoreleaser
0fcd9a5d87
releaser: Bump versions for release of 0.94.1
...
[ci skip]
2022-03-11 13:53:32 +00:00
hugoreleaser
4146084367
releaser: Add release notes for 0.94.1
...
[ci skip]
2022-03-11 13:53:32 +00:00
Bjørn Erik Pedersen
3bc742bea0
docs: Regenerate CLI docs
2022-03-11 14:47:27 +01:00
Bjørn Erik Pedersen
1a796d723c
deps: Fix Goldmark regression with HTML comments
...
Fixes #9650
2022-03-11 14:44:01 +01:00
Bjørn Erik Pedersen
64b7b7a897
Revert "Allow rendering static files to disk and dynamic to memory in server mode"
...
This reverts commit 7d8011ed63 .
Updates #9647
2022-03-11 13:10:47 +01:00
Bjørn Erik Pedersen
5ef8a9f32c
Revert "Some minor adjustments to the new static filesystem logic"
...
This reverts commit 63bb2a5b18 .
2022-03-11 13:10:47 +01:00
hugoreleaser
3bc34666c8
releaser: Prepare repository for 0.95.0-DEV
...
[ci skip]
2022-03-10 10:25:00 +00:00
hugoreleaser
63b236603e
releaser: Bump versions for release of 0.94.0
...
[ci skip]
2022-03-10 09:46:35 +00:00
hugoreleaser
b107b4b291
releaser: Add release notes for 0.94.0
...
[ci skip]
2022-03-10 09:46:35 +00:00
Bjørn Erik Pedersen
a4ac188c19
docs: Regenerate docshelper
2022-03-10 10:08:04 +01:00
Bjørn Erik Pedersen
b82d95575d
Revert "markup/highlight: Add hl_inline option"
...
This reverts commit a360cab75a .
2022-03-10 10:06:22 +01:00
Bjørn Erik Pedersen
4e14cf7607
Fail with error when double-rendering text in markdownify/RenderString
...
This commit prevents the most commons case of infinite recursion in link render hooks when the `linkify` option is enabled (see below). This is always a user error, but getting a `stack overflow` (the current stack limit in Go is 1 GB on 64-bit, 250 MB on 32-bit) error isn't very helpful. This fix will not prevent all such errors, though, but we may do better once #9570 is in place.
So, these will fail:
```
<a href="{{ .Destination | safeURL }}" >{{ .Text | markdownify }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | .Page.RenderString }}</a>
```
`.Text` is already rendered to `HTML`. The above needs to be rewritten to:
```
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
```
Fixes #8959
2022-03-10 08:19:03 +01:00
Bjørn Erik Pedersen
5697348e17
markup/goldmark: Default to https for linkify
...
Fixes #9639
2022-03-09 22:30:10 +01:00
Joe Mooring
f98e570b17
Add lang attribute to internal alias template
...
Closes #9586
2022-03-09 19:06:59 +01:00
Bjørn Erik Pedersen
cdb8b0842b
docs: Regenerate docshelper
2022-03-09 11:33:53 +01:00
Bjørn Erik Pedersen
a360cab75a
markup/highlight: Add hl_inline option
...
If set to true, the highlighted code will not be wrapped in any div.
Closes #9442
2022-03-09 11:33:13 +01:00
Joe Mooring
c97fed08f9
minifiers: Make keepWhitespace = false default for HTML (note)
...
Closes #9456
2022-03-09 07:48:18 +01:00
Bjørn Erik Pedersen
53a6210d82
markup/goldmark/codeblocks: Fix slice bounds out of range
...
For the Position in code blocks we try to match the .Inner with the original source. This isn't always possible.
This commits avoids panics in these situations.
Fixes #9627
2022-03-08 21:50:21 +01:00
Bjørn Erik Pedersen
7182809d96
docs: Regenerate CLI docs
2022-03-08 19:40:50 +01:00
Bjørn Erik Pedersen
1f8cd2614d
docs: Regenerate docshelper
2022-03-08 19:40:07 +01:00
Bjørn Erik Pedersen
9d76b8fa34
Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
2022-03-08 19:39:33 +01:00
Bjørn Erik Pedersen
d706529720
Squashed 'docs/' changes from 3f95a2ace..a393f4cf4
...
a393f4cf4 Add a Spellcheck GitHub Action and config
8b6b1c381 netlify: Bump to Hugo 0.93.3
84515c183 Delete deployment-with-nanobox.md
dd45f9899 Fix typos in docs
e69de81a9 Update build-options.md
7745b7891 netlify: Hubo 0.93.2
037d63364 Clarify GitHub Pages Branches
94660c34b add missing %s
325de15e2 fix link to latest release note since the release notes were moved to GitHub: https://gohugo.io/news/no-more-releasenotes-here/
dbff41d01 Update introduction.md
0ecd627f7 netlify: Hugo 0.93.1
a74e16582 Update diagrams.md
33e310956 Add Goat example to test styling
fa0100a5b Update diagrams.md
64ac75367 Adjust diagram docs
f1d600044 Update theme
95bedff1a netlify: Bump to Hugo 0.93.0
849a8437f Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
c0c60c43c docs: Regenerate docs helper
2c63fe518 cod: Regen CLI docs
f33ba4e5a CodeblockContext method renames
979b47968 Move the Goat template to the correct place
2df37e9e8 Add Markdown diagrams and render hooks for code blocks
bd8037d43 Allow images to be cropped without being resized
8b2af4b49 modules: Add modules.Workspace config for Go 1.18
46b99dea1 Add --printUnusedTemplates
1285302c9 commands: Rename --i18n-warnings to printI18nWarnings
dea2242c6 commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
db782ea46 deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0
git-subtree-dir: docs
git-subtree-split: a393f4cf43
2022-03-08 19:37:17 +01:00
Bjørn Erik Pedersen
4576c82ed4
Cache reflect.MethodByName
...
The isolated benchmark for the function is obviously much faster:
```bash
name old time/op new time/op delta
GetMethodByName-10 1.21µs ± 7% 0.23µs ± 5% -81.42% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
GetMethodByName-10 680B ± 0% 0B -100.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
GetMethodByName-10 20.0 ± 0% 0.0 -100.00% (p=0.029 n=4+4)
```
But more pleasing is the overall performance looking at the site benchmarks:
```bash
name old time/op new time/op delta
SiteNew/Regular_Bundle_with_image-10 6.25ms ± 2% 6.10ms ± 2% ~ (p=0.057 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 6.30ms ± 2% 5.66ms ±11% ~ (p=0.057 n=4+4)
SiteNew/Regular_Tags_and_categories-10 22.2ms ± 2% 17.4ms ± 1% -21.88% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 108ms ± 0% 107ms ± 0% -1.20% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 36.1ms ± 1% 33.8ms ± 1% -6.44% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 24.9ms ± 1% 22.6ms ± 1% -9.30% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 17.9ms ± 1% 16.7ms ± 1% -6.43% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 23.3ms ± 1% 22.0ms ± 0% -5.58% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 8.00ms ± 1% 7.63ms ± 0% -4.62% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Bundle_with_image-10 2.10MB ± 0% 2.07MB ± 0% -1.46% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 1.88MB ± 0% 1.85MB ± 0% -1.76% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 13.5MB ± 0% 11.6MB ± 0% -13.99% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 96.1MB ± 0% 95.8MB ± 0% -0.40% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 28.4MB ± 0% 27.3MB ± 0% -3.83% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 16.9MB ± 0% 15.1MB ± 0% -10.58% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 8.98MB ± 0% 8.44MB ± 0% -6.04% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 17.1MB ± 0% 16.5MB ± 0% -3.91% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 3.92MB ± 0% 3.72MB ± 0% -5.03% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Bundle_with_image-10 25.8k ± 0% 24.9k ± 0% -3.49% (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10 25.8k ± 0% 24.9k ± 0% -3.49% (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10 288k ± 0% 233k ± 0% -18.90% (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10 375k ± 0% 364k ± 0% -2.80% (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10 314k ± 0% 283k ± 0% -9.77% (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10 302k ± 0% 252k ± 0% -16.55% (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10 133k ± 0% 117k ± 0% -11.81% (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10 202k ± 0% 183k ± 0% -9.55% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10 55.6k ± 0% 49.8k ± 0% -10.40% (p=0.029 n=4+4)
```
Thanks to @quasilyte for the suggestion.
Fixes 9386
2022-03-08 19:36:55 +01:00
Bjørn Erik Pedersen
ff02d41721
releaser: Remove the GitHub link syntax around release contributors
...
Fixes #9581
2022-03-08 19:36:31 +01:00
Bjørn Erik Pedersen
63bb2a5b18
Some minor adjustments to the new static filesystem logic
...
Closes #9625
2022-03-08 19:27:54 +01:00
SatowTakeshi
7d8011ed63
Allow rendering static files to disk and dynamic to memory in server mode
...
Updates #9625
2022-03-08 19:27:54 +01:00
dependabot[bot]
b9a1be2f99
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.8...v2.2.9 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:10:04 +01:00
dependabot[bot]
0978245039
build(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.23 to 0.14.25.
- [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.14.23...v0.14.25 )
---
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 >
2022-03-08 16:09:17 +01:00
dependabot[bot]
ff37df830c
build(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/niklasfasching/go-org/releases )
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.6.0...v1.6.2 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 16:08:32 +01:00
dependabot[bot]
5857d5524a
build(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.90.0...v0.91.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 >
2022-03-08 16:05:40 +01:00
hugoreleaser
d86eca5bb2
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-08 10:50:30 +00:00
hugoreleaser
44e3c002a8
releaser: Bump versions for release of 0.93.3
...
[ci skip]
2022-03-08 10:15:27 +00:00
hugoreleaser
9177849f9b
releaser: Add release notes for 0.93.3
...
[ci skip]
2022-03-08 10:15:27 +00:00
Bjørn Erik Pedersen
0e0d672bcb
Remove the decorator from the fs used in ReadDir
...
There have been a site breakage reported in the wild after 0.93.1. With this commit we shoudl be back to how it behaved in 0.92.2.
Closes #9609
2022-03-08 09:51:59 +01:00
Bjørn Erik Pedersen
19f816f77e
Update stale.yml
...
operations-per-run: 999
We need to get this done so the notification gets back to normal.
2022-03-08 09:09:38 +01:00
dependabot[bot]
970f385c48
build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.7 to 1.4.8.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.7...v1.4.8 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-07 09:59:16 +01:00
Bjørn Erik Pedersen
76c1248f70
Remove the examples/ folder
...
These are not maintained and do not belong in this repository.
2022-03-06 11:09:41 +01:00
hugoreleaser
9e76507da2
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-04 12:57:53 +00:00
hugoreleaser
643b5ae9cf
releaser: Bump versions for release of 0.93.2
...
[ci skip]
2022-03-04 12:21:48 +00:00
hugoreleaser
2f7feca9a1
releaser: Add release notes for 0.93.2
...
[ci skip]
2022-03-04 12:21:48 +00:00
Bjørn Erik Pedersen
673cde1eb1
tpl/os: Revert readDir in theme behaviour
...
Fixes #9599
2022-03-04 08:43:47 +01:00
Joe Mooring
e46e9ceb29
markup/goldmark: Escape image alt attribute
...
Fixes #9594
2022-03-02 21:05:33 +01:00
hugoreleaser
883e71c96a
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-03-02 12:52:43 +00:00
hugoreleaser
e9669fed14
releaser: Bump versions for release of 0.93.1
...
[ci skip]
2022-03-02 12:16:06 +00:00
hugoreleaser
fefb1caacf
releaser: Add release notes for 0.93.1
...
[ci skip]
2022-03-02 12:16:06 +00:00
Bjørn Erik Pedersen
0327da050f
tpl/transform: Fix it when template.HTML is passes as option to Hightlight
...
Fixes #9591
2022-03-02 12:30:35 +01:00
Bjørn Erik Pedersen
9b8b6d34e2
tpl/partials: Fix partialCached deadlock regression
...
This is a rollback of 0927cf739f
We cannot do that change until we either completes #9570 or possibly also use the new TryLock in GO 1.18.
Fixes #9588
Opens #4086
2022-03-02 11:16:21 +01:00
Bjørn Erik Pedersen
376704d382
tpl/collections: Fix apply when function have Context as first arg
...
As introduced in `partial` and `partialCached` in Hugo 0.93.0.
Fixes #9585
2022-03-01 13:18:02 +01:00
Bjørn Erik Pedersen
c1398b91a9
Squashed 'docs/' changes from 93f7baf80..3f95a2ace
...
3f95a2ace Update merge function examples (#1662 )
e8d518011 requires -> require typo fix (#1666 )
e714066cb Update GitLab deployment instructions (#1661 )
11946a218 update GitLab CI/CD yaml syntax (#1649 )
3568ddc03 Add explicit `contentDir` to module-config-mounts (#1658 )
798ac8f68 Add default value to isHTML
d376565ce Create extensions.json
git-subtree-dir: docs
git-subtree-split: 3f95a2ace3
2022-02-28 10:37:27 +01:00
Bjørn Erik Pedersen
41b5bc9637
Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
2022-02-28 10:37:27 +01:00
hugoreleaser
5a1b394f2a
releaser: Prepare repository for 0.94.0-DEV
...
[ci skip]
2022-02-28 09:05:08 +00:00
hugoreleaser
0746908247
releaser: Bump versions for release of 0.93.0
...
[ci skip]
2022-02-28 08:30:42 +00:00
hugoreleaser
75084bfc72
releaser: Add release notes for 0.93.0
...
[ci skip]
2022-02-28 08:30:42 +00:00
Bjørn Erik Pedersen
12d00d288c
docs: Regenerate docs helper
2022-02-28 08:59:57 +01:00
Bjørn Erik Pedersen
260ff1374d
markup/highlight: Ignore HL_lines_parsed in the gen docs
2022-02-28 08:33:34 +01:00
Bjørn Erik Pedersen
14915a0c32
cod: Regen CLI docs
2022-02-28 08:12:35 +01:00
Bjørn Erik Pedersen
fd0c1a5e9b
tpl/diagrams: Rename the SVG accessor to Wrapped
...
Not perfect, but it gets it in line with the other .Inner/.Wrapped combos.
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
3ad39001df
markup/highlight: Rework the return value from HighlightCodeblock
...
To make it possible to render it with a custom HTML ("<div>") wrapper.
Updates #9573
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
39261b689e
tpl/transform: Add CanHighlight
...
Closes #9573
2022-02-27 19:51:40 +01:00
Bjørn Erik Pedersen
cff14144a6
Rename Codeowners() to CodeOwners()
2022-02-27 19:40:07 +01:00
Bjørn Erik Pedersen
5f67151550
tpl/diagrams: Rename Body to Inner
...
This relates to #9577 – there's no concept a body element in SVG, so we might as well use an exsisting "Hugo term".
2022-02-27 17:59:36 +01:00
Bjørn Erik Pedersen
f7109771a0
CodeblockContext method renames
...
Fixes #9577
2022-02-27 17:59:36 +01:00
dependabot[bot]
e1f696911e
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.29 to 2.10.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.29 to 2.10.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.29...v2.10.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-27 14:04:08 +01:00
Bjørn Erik Pedersen
5f65c17a12
markup/goldmark: Adjust test for Windows
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
579ff9b652
markup/goldmark: Improve attributes vs options
...
Fixes #9571
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
928a896962
markup/goldmark: Add Position to CodeblockContext
...
But note that this is not particulary fast and the recommendad usage is error logging only.
Updates #9574
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
2e54c00933
markup/goldmark: Unify some code block tests
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
10928a4f78
Remove the trailing new line in .Code
...
Fixes #9572
2022-02-26 21:54:36 +01:00
Bjørn Erik Pedersen
afd63bf7d5
markup/goldmark: Rename extension struct
2022-02-26 21:54:36 +01:00
dependabot[bot]
228126b7f5
build(deps): bump github.com/gobuffalo/flect from 0.2.3 to 0.2.4
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.3...v0.2.4 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-26 10:24:59 +01:00
Bjørn Erik Pedersen
0f80be341f
markup/goldmark: Use Ordinal to create default lineanchors
...
The `Ordinal` starts at 0, so with a `hl-` prefix, this gives `hl-0-1` as a starting point.
Fixes #9567
2022-02-25 17:22:43 +01:00
dependabot[bot]
78afdb88ab
build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0
...
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.2...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-25 08:18:20 +01:00
dependabot[bot]
3ed83227ba
build(deps): bump github.com/sanity-io/litter from 1.5.1 to 1.5.2
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.1...v1.5.2 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-25 08:17:48 +01:00
Bjørn Erik Pedersen
1a257bb2ba
Move the Goat template to the correct place
...
Updates #7765
2022-02-25 00:09:07 +01:00
dependabot[bot]
97514f17d6
build(deps): bump google.golang.org/api from 0.63.0 to 0.70.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.63.0 to 0.70.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.63.0...v0.70.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 23:05:09 +01:00
RheingoldRiver
0df096b868
Update error message about failed menus in config.toml
2022-02-24 23:04:06 +01:00
dependabot[bot]
308ad611b6
build(deps): bump github.com/getkin/kin-openapi from 0.85.0 to 0.90.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.85.0 to 0.90.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.85.0...v0.90.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 >
2022-02-24 22:59:41 +01:00
Kaushal Modi
6bffcdbd26
Add test for line anchor attributes with code fences
...
Fixes https://github.com/gohugoio/hugo/issues/9385 .
2022-02-24 22:54:49 +01:00
dependabot[bot]
7248f43188
build(deps): bump github.com/evanw/esbuild from 0.14.22 to 0.14.23
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.14.22 to 0.14.23.
- [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.14.22...v0.14.23 )
---
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 >
2022-02-24 21:30:30 +01:00
Bjørn Erik Pedersen
08fdca9d93
Add Markdown diagrams and render hooks for code blocks
...
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-24 18:59:50 +01:00
dependabot[bot]
2c20f5bc00
build(deps): bump github.com/aws/aws-sdk-go from 1.41.14 to 1.43.5
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.41.14 to 1.43.5.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.41.14...v1.43.5 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 17:25:24 +01:00
dependabot[bot]
723b2c485b
build(deps): bump github.com/google/go-cmp from 0.5.6 to 0.5.7
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.6...v0.5.7 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-24 17:24:46 +01:00
Marshall Cottrell
06bac57ab0
Add support for CODEOWNERS
...
Fixes #9474
2022-02-23 22:43:19 +01:00
Bjørn Erik Pedersen
ec8b767fa6
Remove Viper as a dependency
2022-02-23 22:40:23 +01:00
Cameron Moore
6407b2cd01
helpers: Allow hyphens in UnicodeSanitize
...
Improve handling of existing hyphens in input to UnicodeSanitize.
This commit accomplishes three things:
1. Explicitly allow hyphens
2. Avoid appending a hyphen if a preceeding hyphen is found
3. Avoid prepending a hyphen if a trailing hyphen is found
Fixes #7288
2022-02-23 21:21:46 +01:00
Akimo
6ff39fd908
Change disqus_config to window.disqus_config
2022-02-23 21:19:30 +01:00
Anthony Fok
96c0bdf3aa
deps: Update github.com/spf13/cobra v1.2.1 => v1.3.0
2022-02-23 20:53:51 +01:00
Bjørn Erik Pedersen
e97d3c640f
Add page.Store
...
Fixes #9546
2022-02-23 10:02:16 +01:00
John Elliott
7732da9f93
Allow images to be cropped without being resized
...
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-23 10:01:50 +01:00
Bjørn Erik Pedersen
aebde49b88
commands: Fix server panic regression
...
And now with a proper server test.
Fixes #9518
Fixes #9530
Fixes #9539
2022-02-21 21:43:26 +01:00
Bjørn Erik Pedersen
4ada09415d
markup/goldmark: Add BenchmarkCodeblocks
2022-02-21 20:53:52 +01:00
Joe Mooring
bddcfd911c
deps: Update github.com/gohugoio/localescompressed v0.14.0 => v0.15.0
...
Fixes #9446
2022-02-19 11:34:00 +01:00
Bjørn Erik Pedersen
d485f95431
deps: Update github.com/yuin/goldmark v1.4.4 => v1.4.7
...
Closes #9397
2022-02-19 11:30:16 +01:00
Bjørn Erik Pedersen
a87be597af
modules: Add modules.Workspace config for Go 1.18
...
Sets `GOWORK` env var for Go 1.18.
Fixes #9525
2022-02-18 15:06:58 +01:00
Bjørn Erik Pedersen
b0eea00756
Update stale.yml
...
Updates #9522
2022-02-18 11:43:35 +01:00
Bjørn Erik Pedersen
ef8b781b14
Update stale.yml
...
Updates #9522
2022-02-18 11:38:24 +01:00
Bjørn Erik Pedersen
3136ff67d8
github: Configure stale to be run manually
...
Updates #9522
2022-02-18 11:31:57 +01:00
Bjørn Erik Pedersen
929808190f
tpl/partials: Fix recently introduced deadlock in partials cache
...
The change in lock logic for `partialCached` in 0927cf739f was naive as it didn't consider cached partials calling other cached partials.
This changeset may look on the large side for this particular issue, but it pulls in part of a working branch, introducing `context.Context` in the template execution.
Note that the context is only partially implemented in this PR, but the upcoming use cases will, as one example, include having access to the top "dot" (e.g. `Page`) all the way down into partials and shortcodes etc.
The earlier benchmarks rerun against master:
```bash
name old time/op new time/op delta
IncludeCached-10 13.6ms ± 2% 13.8ms ± 1% ~ (p=0.343 n=4+4)
name old alloc/op new alloc/op delta
IncludeCached-10 5.30MB ± 0% 5.35MB ± 0% +0.96% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
IncludeCached-10 74.7k ± 0% 75.3k ± 0% +0.77% (p=0.029 n=4+4)
```
Fixes #9519
2022-02-17 18:47:36 +01:00
Bjørn Erik Pedersen
667f3a4ba8
tpl/partials: Add some more partials to BenchmarkIncludeCached
2022-02-17 16:45:59 +01:00
Bjørn Erik Pedersen
c061b253a4
deps: Update github.com/evanw/esbuild v0.14.11 => v0.14.22
2022-02-17 12:34:13 +01:00
Bjørn Erik Pedersen
0927cf739f
tpl/partials: Make sure a cached partial is invoked only once
...
This commit revises the locking strategy for `partialCached`. We have added a benchmark that may be a little artificial, but it should at least show that we're not losing any performance over this:
```bash
name old time/op new time/op delta
IncludeCached-10 12.2ms ± 2% 11.3ms ± 1% -7.36% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
IncludeCached-10 7.17MB ± 0% 5.09MB ± 0% -29.00% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
IncludeCached-10 128k ± 1% 70k ± 0% -45.42% (p=0.029 n=4+4)
```
This commit also revises the template metrics hints logic a little, and add a test for it, which output is currently this:
```bash
cumulative average maximum cache percent cached total
duration duration duration potential cached count count template
---------- -------- -------- --------- ------- ------ ----- --------
163.334µs 163.334µs 163.334µs 0 0 0 1 index.html
23.749µs 5.937µs 19.916µs 25 50 2 4 partials/dynamic1.html
9.625µs 4.812µs 6.75µs 100 50 1 2 partials/static1.html
7.625µs 7.625µs 7.625µs 100 0 0 1 partials/static2.html
```
Some notes:
* The duration now includes the cached invocations (which should be very short)
* A cached template gets executed once before it gets cached, so the "percent cached" will never be 100.
Fixes #4086
Fixes #9506
2022-02-17 11:53:24 +01:00
dependabot[bot]
26a5e89faa
build(deps): bump github.com/rogpeppe/go-internal from 1.8.0 to 1.8.1
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-17 09:55:06 +01:00
dependabot[bot]
e9fa7e81b3
build(deps): bump github.com/magefile/mage from 1.11.0 to 1.12.1
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/magefile/mage/releases )
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml )
- [Commits](https://github.com/magefile/mage/compare/v1.11.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-17 09:54:29 +01:00
Joe Mooring
ff545f4276
markup/goldmark: Exclude event attributes from markdown render hook
...
Fixes #9511
2022-02-16 19:56:23 +01:00
Bjørn Erik Pedersen
b2a827c52c
markup/goldmark: Fix mangling of headers/links in render hooks
...
```bash
name old time/op new time/op delta
SiteWithRenderHooks-10 11.9ms ± 1% 11.9ms ± 1% ~ (p=0.486 n=4+4)
name old alloc/op new alloc/op delta
SiteWithRenderHooks-10 11.2MB ± 0% 11.3MB ± 0% +0.16% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteWithRenderHooks-10 145k ± 0% 145k ± 0% +0.14% (p=0.029 n=4+4)
```
Fixes #9504
2022-02-16 17:46:30 +01:00
Bjørn Erik Pedersen
77c7059ff8
markup/goldmark: Add a render hook benchmark
...
Updates #9504
2022-02-16 13:30:53 +01:00
Bjørn Erik Pedersen
f4c90bd6ba
Fix BenchmarkCascadeTarget
2022-02-16 13:23:43 +01:00
Cameron Moore
d16228334d
metrics: Add cached count tracking
...
Track cached partial executions and display more useful info when
showing the hints output. Also group cache hints and counters together
to the right of the timing measurements.
Sample output:
cumulative average maximum cache percent cached total
duration duration duration potential cached count count template
---------- -------- -------- --------- ------- ------ ----- --------
2.6973ms 674.325µs 857.3µs 0 0 0 4 _internal/_default/rss.xml
2.6295ms 657.375µs 861.3µs 0 0 0 4 _default/single.html
1.2563ms 314.075µs 381.5µs 0 0 0 4 news/single.html
799.2µs 399.6µs 573.3µs 0 0 0 2 _internal/_default/sitemap.xml
667.3µs 66.73µs 238.6µs 84 0 0 10 partials/header.html
656.7µs 328.35µs 459.4µs 0 0 0 2 _default/list.html
479.7µs 47.97µs 158µs 92 0 0 10 partials/head.html
323.3µs 323.3µs 323.3µs 0 0 0 1 _internal/alias.html
200.7µs 200.7µs 200.7µs 0 0 0 1 _internal/_default/sitemapindex.xml
36.1µs 6.016µs 32.6µs 100 33 2 6 partials/footer.html
27.4µs 13.7µs 26.7µs 0 0 0 2 index.html
Fixes #8375
2022-02-16 10:05:17 +01:00
Bjørn Erik Pedersen
ea6bcd6944
tpl: Remove TODO comment
2022-02-15 23:39:54 +01:00
Bjørn Erik Pedersen
f2e7b49acf
Add --printUnusedTemplates
...
Fixes #9502
2022-02-15 20:01:57 +01:00
Joe Mooring
923419d7fd
deps: Update github.com/tdewolff/minify/v2 v2.9.22 => v2.9.29
...
Fixes #9244
Fixes #9132
Fixes https://discourse.gohugo.io/t/36523
2022-02-15 17:36:29 +01:00
Bjørn Erik Pedersen
837fdfdf45
commands: Rename --i18n-warnings to printI18nWarnings
...
To get it in line with the others.
2022-02-15 13:03:36 +01:00
Bjørn Erik Pedersen
6819feab6c
commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
...
To get it in line with the others.
2022-02-15 13:00:06 +01:00
Bjørn Erik Pedersen
ea54a99ca5
deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0
2022-02-15 10:37:14 +01:00
Bjørn Erik Pedersen
9563c7d13b
Finally remove deprecated Page methods
...
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed.
Closes #4117
2022-02-14 13:24:36 +01:00
Bjørn Erik Pedersen
230a495941
Squashed 'docs/' changes from b8b20e9a2..93f7baf80
...
93f7baf80 netlify: Hugo 0.92.2
ecd8a6b6b Merge branch 'tempv0.92.2'
ee04caf9f Fix validation of Page Kind in cascade target map
3fce03ed2 Remove the "check" command
70ad71b25 Fix typo (#1651 )
dfd1dc570 Fix internal link (#1650 )
b5e0e0d38 Update rotten Fedora package link
78276390a Add missing word in types.md (#1645 )
45eb945f8 Remove hugo gen autocomplete
2f84d0896 netlify: Hugo 0.92.1
b55f5773b Update complement.md
7013ee43e Remove deprecated RSSLink from page variables
1c3fb6ed3 Remove deprecated page vars (#1638 )
9bd0af3ab Update union.md
4576487a0 Update symdiff.md
58f1b26c7 Update starter-kits.md (#1521 )
285356c1d Move inline partials section (#1635 )
4d08625d2 Improve directions for editing Win 10 path env var (#1632 )
41d9c7804 Update page content (#1629 )
d05536cad Removed unpaired quote character (#1630 )
3b0fdcd88 netlify: Bump to Hugo 0.92.0
cdb068346 docs: Regenerate docshelper
778503ca8 Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
2d2401c91 docs: Add dependency table to maintainance page
6bc95c386 Add hugo.Deps
19d0b5e23 docs. Regen CLI docs
76a750d96 docs: Regenerate CLI docs
70156962a docs: Regenerate docshelper
git-subtree-dir: docs
git-subtree-split: 93f7baf80b
2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
c707b71cdf
Merge commit '230a495941b191af0bdaa7e2fc8c61607cb38207'
2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
b0a9cf0a75
tpl: Use go:embed to load internal templates
...
Fixes #8297
2022-02-14 09:39:46 +01:00
hugoreleaser
9433cc2562
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-02-11 14:54:18 +00:00
hugoreleaser
cdf6a0d622
releaser: Bump versions for release of 0.92.2
...
[ci skip]
2022-02-11 14:17:39 +00:00
hugoreleaser
bf1fa71379
releaser: Add release notes for 0.92.2
...
[ci skip]
2022-02-11 14:17:38 +00:00
Joe Mooring
4f4cec73be
Add HUGO_ENV to the os/exec environment
...
Closes #9490
2022-02-11 08:30:26 +01:00
Bjørn Erik Pedersen
da4866c2be
Simplify some integration tests
2022-02-10 20:43:19 +01:00
Joe Mooring
d1109f590a
Fix validation of Page Kind in cascade target map
...
Fixes #8888
2022-02-10 20:42:31 +01:00
Bjørn Erik Pedersen
a7d182cea1
Add another cascade benchmark
2022-02-10 20:40:49 +01:00
Bjørn Erik Pedersen
a2a660ed12
commands: Fix server deadlock on config error
...
Fixes #9486
2022-02-10 19:43:47 +01:00
Joe Mooring
f7bc4cc505
Exclude event attributes when rendering markdown
...
Closes #9463
2022-02-10 18:25:19 +01:00
Joe Mooring
54f8d8a70a
Remove the "check" command
...
Closes #9454
2022-02-10 16:25:23 +01:00
Joe Mooring
3036d0ac9a
Update the application/javascript media type
...
Add jsm and mjs extensions.
Closes #9483
2022-02-10 11:51:28 +01:00
Bjørn Erik Pedersen
6a238a7276
tpl/templates: Fix templates.Exist issue with base templates
...
Fixes #9477
2022-02-09 22:33:07 +01:00
Bjørn Erik Pedersen
f60714b5a1
Add a migration test helper
2022-02-09 16:38:12 +01:00
Bjørn Erik Pedersen
215a715ddd
babel: Port integration tests to their own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
d128d260b5
js: Port integration tests to its own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
c4aaf1d516
postcss: Move integration test to its own package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
94f10cf4f9
minifier: Port integration tests to its package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
b06c2103b8
templates: Port integration test to its package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
d22f7795c7
tocss: Port integration tests to their package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
39f69ca7f0
openapi3: Port integration test into correct package
2022-02-09 15:41:32 +01:00
Bjørn Erik Pedersen
64f75adcf6
Add a new integration test framework
...
I have had this living in a separate branch for now, but we need this in the main branch sooner rather than later.
One big advantage of this is that integration tests can live in any package, not just hugolib.
2022-02-09 15:41:32 +01:00
Joe Mooring
9262719092
Validate comparison operator argument count
...
Fixes #9462
2022-02-05 17:41:43 +01:00
Joe Mooring
3336762939
Remove hugo gen autocomplete
...
Closes #8862
2022-02-01 23:23:30 +01:00
Bjørn Erik Pedersen
5ca40c8f7c
deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6
...
Closes #9439
Closes #9417
2022-01-29 13:55:23 +01:00
Bjørn Erik Pedersen
ef7d14a241
Fix erroneous warning with .Page.RenderString on a page without a backing file
...
Fixes #9433
2022-01-28 17:35:49 +01:00
Joe Mooring
c05c99f0c5
Fix typo in panicOnWarning message
2022-01-27 17:50:34 +01:00
hugoreleaser
ff7689ce02
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-01-27 12:22:31 +00:00
hugoreleaser
85e2e86266
releaser: Bump versions for release of 0.92.1
...
[ci skip]
2022-01-27 11:44:40 +00:00
hugoreleaser
515f8a6d8e
releaser: Add release notes for 0.92.1
...
[ci skip]
2022-01-27 11:44:40 +00:00
Bjørn Erik Pedersen
f22c4aba04
Make the RenderString content provider fix more general
...
Updates #9383
2022-01-27 11:51:13 +01:00
Paul Gottschling
85d31f7bfb
Fix .RenderString issue in .Translations
...
Fixes #9383
2022-01-27 11:51:13 +01:00
Ephex2
22055176d2
general: Fix issue causing log threads to hang indefinitely when print() panics
...
The function printIfNotPrinted() defined for DistinctLogger unlocked the mutex within
the logger only after the print() function ran. If print panics, the mutex would stay
locked and future attempts to read or write from the logger mutex would cause the goroutine
to hang indefinitely.
Deferred the unlocking of the mutex to prevent this. Also, put l.m[key] before the print()
call since this will prevent another bug where the same warning potentially gets logged
multiple times if the print() call panics.
Fixes #9380
2022-01-27 10:38:50 +01:00
Bjørn Erik Pedersen
7a080b624e
Fix duplicate mount sources
...
Fixes #9426
2022-01-26 20:32:13 +01:00
Bjørn Erik Pedersen
2655739940
tpl/collections: Fix apply with namespaced template funcs
...
We changed the signature to `func(...interface{}) (interface{}, error)` some time ago, but sadly we had no test for this for `apply`. Now we do.
Fixes #9393
2022-01-17 09:50:48 +01:00
Bjørn Erik Pedersen
348d300a71
common: Remove unused code
2022-01-16 17:12:56 +01:00
Bjørn Erik Pedersen
6f07bdb152
common/paths: Remove unused code
2022-01-16 17:12:56 +01:00
Bjørn Erik Pedersen
55a9bc1e70
helpers: Remove unused code
2022-01-16 17:12:56 +01:00
Joe Mooring
20a7ce7c1b
Do not render hl_style as an HTML attribute
...
Fixes #9390
2022-01-16 17:09:18 +01:00
dependabot[bot]
8cd4492407
build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.8.1 to 1.10.1.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.10.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/viper
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-14 19:04:32 -07:00
Andreas Deininger
9d8f318aab
Fixing typos ( #9387 )
2022-01-14 16:07:17 -08:00
Andreas Deininger
fcbbbef22d
Fix typo in warning message
2022-01-13 12:21:13 +01:00
Bjørn Erik Pedersen
6041adc164
github: Clean up the issue templates a little
2022-01-13 09:44:55 +01:00
Bjørn Erik Pedersen
408da43657
github: Add lock-threads step
2022-01-12 19:55:53 +01:00
hugoreleaser
ed04ed5745
releaser: Prepare repository for 0.93.0-DEV
...
[ci skip]
2022-01-12 08:58:07 +00:00
hugoreleaser
b354940369
releaser: Bump versions for release of 0.92.0
...
[ci skip]
2022-01-12 08:23:17 +00:00
hugoreleaser
bd89aef8ba
releaser: Add release notes for 0.92.0
...
[ci skip]
2022-01-12 08:23:17 +00:00
Bjørn Erik Pedersen
f2bc13dd9e
docs: Regenerate docshelper
2022-01-12 08:17:03 +01:00
Bjørn Erik Pedersen
098254f175
Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
2022-01-12 08:16:35 +01:00
Bjørn Erik Pedersen
a8e9fc699a
Squashed 'docs/' changes from 4eb10c1a9..b8b20e9a2
...
b8b20e9a2 Update index.md
f33994fe6 Remove files.Extension (duplicate of files.Ext)
948d6d69d layouts: Use .File.Path
d3050b78c Document .Page.BundleType (#1620 )
8a033918f Image filters: ensure Grayscale is a level-2 heading
98537018f Document .Publish method for global resources
963ddc994 docs: add a link to the mailmap documentation
915f858dc Fix release notes version
58093dafe Update index.md
8008ba1e1 Release 0.91.2
d1788dae8 Merge branch 'tempv0.91.2'
af2970180 Revert "config/security: Add HOME to default exec env var whitelist"
2648d3088 netlify: Hugo 0.91.1
d0801599c Merge branch 'tempv0.91.1'
b343bfd7a config/security: Add HOME to default exec env var whitelist
03fbb403f Update data-templates.md
2f608055f Correct GetRemote docs and examples
4e942166a Update 2021-12-17-no-more-releasenotes.md
dbf9514fd Update security.toml
2c38aa356 Update index.md
562ad8e96 Add timeZone
4bc482152 Update introduction.md
1eb66c758 news: Add a note about the placement of release notes
b2a293abb Remove the default archetype template
f9837793c netlify: Hugo 0.91.0
467256ad5 docs: Regen docs helper
68554cf77 Add some basic security policies with sensible defaults
git-subtree-dir: docs
git-subtree-split: b8b20e9a25
2022-01-12 08:15:10 +01:00
Bjørn Erik Pedersen
cdcd15b6c2
Only create LazyContentProvider for the non-rendering Site
...
Which saves a fair amound of allocations:
```
gobench --package ./hugolib --bench "SiteNew/Regular_D" --base master
```
Before:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-10 40.7ms ± 3% 41.2ms ± 1% ~ (p=0.343 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-10 27.7MB ± 0% 28.8MB ± 0% +3.76% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-10 304k ± 0% 329k ± 0% +8.07% (p=0.029 n=4+4)
```
After:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-10 34.2ms ± 1% 34.7ms ± 1% ~ (p=0.114 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-10 27.7MB ± 0% 28.1MB ± 0% +1.38% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-10 304k ± 0% 314k ± 0% +3.03% (p=0.029 n=4+4)
```
Updates #8919
2022-01-12 07:45:53 +01:00
Paul Gottschling
25d645f47a
Fix missing page data for alternative formats
...
When a template calls the .Translations function and a
Hugo environment is using multiple output formats,
a template that calls methods like .Summary and .Len on
each translation will unexpectedly show empty return
values for these methods.
This is because each pageOutput's ContentProvider is
assigned to a page.NopPage in newPageOutput. When
*HugoSites.render assigns pageContentOutputs to
pageOutputs in *pageState.shiftToOutputFormat, it
reuses pageContentOutputs from other pageOutputs,
leaving some pageContentOutputs as NopPages. While this
approach conserves resources, sometimes it means that
a template will unexpectedly call a method on a
pageContentOutput that is actually a NopPage.
In the case of ContentProvider methods called on
translations for alternative output formats, the methods
were called on NopPages.
This change introduces LazyContentProvider, which
performs late initialization when one of its methods is
called. This way, we can reuse content in "normal" cases
but ensure that ContentProvider methods work as expected
when a pageOutput is not assigned a pageContentOutput
during the initial pre-render phase.
Fixes #8919
2022-01-12 07:45:53 +01:00
Bjørn Erik Pedersen
fbb3c181cb
docs: Add dependency table to maintainance page
...
See #8949
2022-01-11 21:57:37 +01:00
Bjørn Erik Pedersen
9af4ca3861
deps: Upgrade github.com/evanw/esbuild v0.14.8 => v0.14.11
2022-01-11 20:31:50 +01:00
Bjørn Erik Pedersen
7396aa945a
Add hugo.Deps
...
Fixes #8949
2022-01-11 18:06:23 +01:00
roointan
d82cef5c53
hugolib: Fix livereload problem with files including NFC characters in MacOs
...
Fixes #8429
2022-01-08 11:35:30 +01:00
Bjørn Erik Pedersen
74f0777c5f
docs. Regen CLI docs
...
Closes #9363
2022-01-07 12:37:07 +01:00
Bjørn Erik Pedersen
e334a40661
commands: Fix CLI help text for hugo new
...
Updates #9363
2022-01-07 12:36:12 +01:00
Bjørn Erik Pedersen
5bd3c8df40
Update to Go 1.17.6
...
Fixes #9361
2022-01-07 11:07:42 +01:00
Joe Mooring
0aca99fe01
create: Correctly pass newContentEditor flags
...
Fixes #9356
2022-01-07 10:46:32 +01:00
Bjørn Erik Pedersen
c8b5ab75b7
Add --panicOnWarning flag
...
Fixes #9357
Fixes #9359
2022-01-06 12:27:04 +01:00
Bjørn Erik Pedersen
85c5b89593
github: Increase stale days
2022-01-05 15:48:00 +01:00
Bjørn Erik Pedersen
965760835d
docs: Regenerate CLI docs
2022-01-04 17:12:09 +01:00
Bjørn Erik Pedersen
4a0b55330c
docs: Regenerate docshelper
2022-01-04 17:11:17 +01:00
Bjørn Erik Pedersen
1651beb2c1
Remove mmark
...
Closes #9350
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
2b6063c3e3
Misc depreation updates
...
* Deprecate .Page.Path when backed by a file
* site.Permalinks
* --ignoreVendor (use --ignoreVendorPaths)
Closes #9348
Closes #9349
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
56ab83a597
Make the deprecated Page/File methods (from Hugo 0.55) ERROR
...
Closes #9346
2022-01-04 17:10:39 +01:00
Bjørn Erik Pedersen
dad0dc8d86
github: Add add stale GitHub action
2022-01-04 17:08:10 +01:00
Paul Gottschling
d3c4fdb8ff
Fix surprise OutputFormat.Rel overwriting
...
In page.NewOutputFormat, we take an output.Format f and use it to
create a page.OutputFormat. If the format is canonical, we assign
the final OutputFormat's Rel to "canonical" rather than using
f.Rel. However, this leads to unexpected behavior for custom
output formats, where a user can define a "rel" for a format
via the config file.
For example, the standard for "humans.txt" files requires using
rel="author" in HTML "link" elements. Meanwhile, humans.txt is
usually the only format used for its content. As a result, for
Hugo configurations that define a humans.txt custom output format,
Hugo will render "link" elements to content in this format with
rel="canonical," rather than "author" as required by the standard.
This commit changes page.NewOutputFormat to check whether a given
format is user defined and, if so, skips assigning Rel to
"canonical," even if isCanonical is true.
Fixes #8030
2022-01-04 10:38:38 +01:00
Bjørn Erik Pedersen
d632dd7d74
hugolib: Make an RST test optional
...
If no RST installed.
2022-01-01 12:20:07 +01:00
Joe Mooring
0671ef5593
deps: Upgrade github.com/niklasfasching/go-org v1.5.0 => v1.6.0
...
Fixes #8921
2021-12-30 22:40:43 +01:00
Bjørn Erik Pedersen
672481f1f0
Update stale.yml
2021-12-30 20:13:08 +01:00
hugoreleaser
1dbfc0f930
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-23 16:10:18 +00:00
hugoreleaser
1798bd3fd1
releaser: Bump versions for release of 0.91.2
...
[ci skip]
2021-12-23 15:33:33 +00:00
hugoreleaser
f0b55a68ee
releaser: Add release notes for 0.91.2
...
[ci skip]
2021-12-23 15:33:33 +00:00
Bjørn Erik Pedersen
623dda7174
Revert "config/security: Add HOME to default exec env var whitelist"
...
There have been one report in the wild suggesting that this needs to be tested better before doing:
https://discourse.gohugo.io/t/hugo-mod-failing-in-v0-91-1-but-works-in-v0-91-0/36180/5
This reverts commit fca266ebbb .
2021-12-23 16:23:15 +01:00
Bjørn Erik Pedersen
aee9e11a40
Make sure we always create the /public folder
...
* Before this commit, when you had static files in the root of /content and no /public folder, that folder would not be created unless the /static syncer had already run.
* So, with a common pattern doing `rm -rf public && hugo` would the fail now and then because /static and /content are processed in parallel (unless you have cleanDestinationDir=true)
* This was even worse before commit 0b918e131f – a frozen build.
Closes #8166
2021-12-23 15:09:27 +01:00
Bjørn Erik Pedersen
bd63c1aa56
Fix "stuck on build" in error situations in content processing
...
Updates #8166
2021-12-23 15:09:27 +01:00
Bjørn Erik Pedersen
9eb05807c6
deps: Run "go mod tidy"
2021-12-23 10:19:10 +01:00
Bjørn Erik Pedersen
654f513a4c
deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8
2021-12-23 10:19:10 +01:00
hugoreleaser
759cdf3fc8
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-22 16:07:34 +00:00
hugoreleaser
f423505746
releaser: Bump versions for release of 0.91.1
...
[ci skip]
2021-12-22 15:31:05 +00:00
hugoreleaser
af165d5b6d
releaser: Add release notes for 0.91.1
...
[ci skip]
2021-12-22 15:31:05 +00:00
Bjørn Erik Pedersen
6779117f72
media: Also consider extension in FromContent
...
As used in `resources.GetRemote`.
This will now reject image files with text and text files with images.
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
ce04011096
media: Add missing BMP and GIF to the default MediaTypes list
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
cdc73526a8
media: Add PDF MIME type
2021-12-22 11:35:53 +01:00
Bjørn Erik Pedersen
425c7d90f0
deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7
2021-12-22 11:34:21 +01:00
Bjørn Erik Pedersen
fca266ebbb
config/security: Add HOME to default exec env var whitelist
...
See #9309
2021-12-22 11:33:59 +01:00
Bjørn Erik Pedersen
0016e21cd6
modules: Set GOCACHE env var
...
This was introduced in Go 1.15. We do set the GOPATH, which should be enough, but #9309 indicate that's not the case on every platform (GitHub Actions).
Closes #9309
2021-12-22 11:33:59 +01:00
hugoreleaser
728feaecf0
releaser: Prepare repository for 0.92.0-DEV
...
[ci skip]
2021-12-17 10:31:22 +00:00
hugoreleaser
d1dc0e9a54
releaser: Bump versions for release of 0.91.0
...
[ci skip]
2021-12-17 09:50:19 +00:00
hugoreleaser
072bca69d8
releaser: Add release notes for 0.91.0
...
[ci skip]
2021-12-17 09:50:19 +00:00
Bjørn Erik Pedersen
e26e13fbb7
releaser: Drop running tests as part of the release
2021-12-17 10:44:10 +01:00
Bjørn Erik Pedersen
6df2f080c9
docs: Regen docs helper
2021-12-17 10:31:08 +01:00
Bjørn Erik Pedersen
b84745d497
tpl/resources: Add empty method mapping for GetRemote
...
To get auto generated documentation for it.
2021-12-17 10:30:10 +01:00
Bjørn Erik Pedersen
44954497bc
Always use content to resolve content type in resources.GetRemote
...
This is a security hardening measure; don't trust the URL extension or any `Content-Type`/`Content-Disposition` header on its own, always look at the file content using Go's `http.DetectContentType`.
This commit also adds ttf and otf media type definitions to Hugo.
Fixes #9302
Fixes #9301
2021-12-17 09:50:28 +01:00
Bjørn Erik Pedersen
22ef5da20d
Add resources.GetRemote
...
In Hugo 0.89 we added remote support to `resources.Get`.
In hindsight that was not a great idea, as a poll from many Hugo users showed. See Issue #9285 for more details.
After this commit `resources.Get` only supports local resource lookups. If you want to support both, you need to use a construct similar to:
Also improve some option case handling.
```
{{ resource := "" }}
{{ if (urls.Parse $url).IsAbs }}
{{ $resource = resources.GetRemote $url }}
{{ else }}
{{ $resource = resources.Get $url }}
{{ end }}
```
Fixes #9285
Fixes #9296
2021-12-17 09:33:51 +01:00
Paul Gottschling
5758c370ea
Allow for return partials with falsy arguments ( #9298 )
...
Partials with returns values are parsed, then inserted into a
partial return wrapper via wrapInPartialReturnWrapper in order
to assign the return value via *contextWrapper.Set. The
predefined wrapper template for partials inserts a partial's nodes
into a "with" template action in order to set dot to a
*contextWrapper within the partial. However, because "with" is
skipped if its argument is falsy, partials with falsy arguments
were not being evaluated.
This replaces the "with" action in the partial wrapper with a
"range" action that isn't skipped if .Arg is falsy.
Fixes #7528
2021-12-17 08:35:21 +01:00
Bjørn Erik Pedersen
8ee6de6d96
deps: Upgrade github.com/evanw/esbuild v0.14.2 => v0.14.5
2021-12-17 08:26:45 +01:00
Joachim Ansorg
a4b9f1a92c
don't use path.Join, because it cleans the final path
2021-12-16 21:14:33 +01:00
Bjørn Erik Pedersen
f4389e48ce
Add some basic security policies with sensible defaults
...
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-16 09:40:22 +01:00
Bjørn Erik Pedersen
803f572e66
Simplify Babel test assertions
...
To make the tests pass on my grand old Windows 8 VM.
2021-12-14 07:26:53 +01:00
Bjørn Erik Pedersen
6183184b96
Merge commit '45e6fdb315d113ba13e20a633ed0c67e3f25170d'
2021-12-13 21:05:10 +01:00
Bjørn Erik Pedersen
45e6fdb315
Squashed 'docs/' changes from 316cec249..4eb10c1a9
...
4eb10c1a9 Set a sensible maxAge on the image cache
2c37f4f89 Update lists.md
8690c018f Update introduction.md
0458c3d88 Update index.md
150982f5e Update index.md
50dc0b6b9 Update multilingual.md
648598090 Configure image cache to use :cacheDir/images
4dfb523c3 Update introduction.md
b94d42e6f Add text to social images
d3253d2aa Add resources/_gen/images/ to .gitignore
8a56e1dfd Delete resources/_gen/images
1521e79b6 Update introduction.md
c7110a597 Update introduction.md
f7c4d220f Update introduction.md
c14ecf1ff Update introduction.md
c4b388c20 Fix shortcode in hugo-pipes/introduction (#1605 )
d9876bd68 Update introduction.md
a39a532d5 Update introduction.md
fa8758122 netlify: Hugo 0.90.1
50cc40570 Update Contribute to Hugo Development
fc98fc82c Add .vscode dir to .gitignore (#1602 )
8f8bcdefc Add frontmatter param to code-toggle shortcode (#1601 )
f3b432c7c Add markdownlint configuration file (#1597 )
7ea3aea92 netlify: Bump to 0.90.0
e2b6f990b docs: Regenerate docs helper
c02259e33 Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
2e3573899 Add custom font support to images.Text
3186e6458 images: Text filter that draws text with the given options (#9239 )
424f219eb tpl/transform: Optional options for highlight func
7993f17d0 Implement XML data support
1eb9d34cf Make resources.Get use a file cache for remote resources
8a0fffd56 Add remote support to resources.Get
git-subtree-dir: docs
git-subtree-split: 4eb10c1a96
2021-12-13 21:04:12 +01:00
Joe Mooring
a037be774d
Improve handling of remote image/jpeg resources ( #9278 )
...
Add jpe, jif, and jfif to image/jpeg extensions.
For remote image/jpeg without extension, always use jpg extension.
Closes #9275
2021-12-13 08:55:15 +01:00
hitzhangjie
8a005538db
Fix Dockerfile
...
Mage uses git, so we should install git before run mage.
Closes #9261
2021-12-12 14:45:08 +01:00
Joe Mooring
657d0272e3
Remove debug statement
2021-12-11 22:59:36 +01:00
Bjørn Erik Pedersen
159120cddd
Fix deprecation notice
...
Asterisks needs to be quoted on command line.
2021-12-11 11:54:28 +01:00
hugoreleaser
3f0d49e502
releaser: Prepare repository for 0.91.0-DEV
...
[ci skip]
2021-12-10 11:42:18 +00:00
hugoreleaser
4890788974
releaser: Bump versions for release of 0.90.1
...
[ci skip]
2021-12-10 10:56:40 +00:00
hugoreleaser
3075eaa3b0
releaser: Add release notes for 0.90.1
...
[ci skip]
2021-12-10 10:56:40 +00:00
Bjørn Erik Pedersen
3bc6830411
Remove the retries on error in remote resources.Get
...
Fixes #9271
See #9259
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
e4d6ec94b5
Allow user to handle/ignore errors in resources.Get
...
In Hugo 0.90.0 we introduced remote support in `resources.Get`.
But with remote resources comes with a higher chance of failing a build (network issues, remote server down etc.).
Before this commit we always failed the build on any unexpected error.
This commit allows the user to check for any error (and potentially fall back to a default local resource):
```htmlbars
{{ $result := resources.Get "https://gohugo.io/img/hugo-logo.png " }}
{{ with $result }}
{{ if .Err }}
{{/* log the error, insert a default image etc. *}}
{{ else }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}
{{ end }}
```
Note that the default behaviour is still to fail the build, but we will delay that error until you start using the `Resource`.
Fixes #9529
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
6260455ba7
Make resource.Get return nil on 404 not found
...
This is in line with the interface declaration and also how local lookups work.
Fixes #9267
2021-12-10 11:10:41 +01:00
Bjørn Erik Pedersen
c397975af8
Update to Go 1.17.5
...
Fixes #9269
2021-12-10 10:36:02 +01:00
Bjørn Erik Pedersen
965a6cbff9
Update to Go 1.17.4 and remove timeout in resources.Get
...
Fixes #9265
2021-12-09 13:33:30 +01:00
hugoreleaser
34a96290fa
releaser: Prepare repository for 0.91.0-DEV
...
[ci skip]
2021-12-08 10:11:31 +00:00
hugoreleaser
dd0d3fdbbe
releaser: Bump versions for release of 0.90.0
...
[ci skip]
2021-12-08 09:33:46 +00:00
hugoreleaser
b921752331
releaser: Add release notes for 0.90.0
...
[ci skip]
2021-12-08 09:33:46 +00:00
Bjørn Erik Pedersen
0fa40ce58f
releaser: Simplify the release process
...
Make it into a one step even for major releases.
2021-12-08 09:38:15 +01:00
Bjørn Erik Pedersen
bf537f1c6d
releaser: Remove unused code
2021-12-08 09:02:45 +01:00
Bjørn Erik Pedersen
e86b331138
docs: Regenerate docs helper
2021-12-08 08:56:16 +01:00
Bjørn Erik Pedersen
6c841a691e
Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
2021-12-08 08:54:25 +01:00
Bjørn Erik Pedersen
8d9511a08f
Squashed 'docs/' changes from 39a7fac34..316cec249
...
316cec249 Update future events template example (#1595 )
3bde7d489 Install mage outside module (#1592 )
762e27eff Clarify ignoreFiles regex matching
4d0032051 Add id attribute to h2 elements (#1590 )
8262b077c Improve inline resource examples (#1587 )
2eae7c7ec fix disqus example name (#1588 )
a772f4804 Added install instructions for openSUSE Tumbleweed (#1459 )
7ad1c301b Remove screen capture from Hosting on GitHub page (#1586 )
a58541f49 add more details on about gh-pages and baseURL on hosting-on-github.md (#1346 )
3bd0b46dc Update configuration page (#1585 )
4cf1f013e Update OS functions
2c45a95c2 Remove getting-started/code-toggle/
40fdff598 Describe artificial language private use subtags (#1577 )
91011d210 Remove google_news from list of internal templates (#1576 )
36c7879e4 Update the .Unix function
731063488 Remove a showcase
818c371a0 Update index.md
3136d39d9 netlify: Hugo 0.89.4
092bc9278 Merge branch 'tempv0.89.4'
18e01f105 releaser: Add release notes to /docs for release of 0.89.4
79135281f Correct and sort list of target image formats (#1574 )
af4170c7e netlify: Hugo 0.89.3
7f5444251 Merge branch 'tempv0.89.3'
a32e4a6c2 releaser: Add release notes to /docs for release of 0.89.3
6dd3dc3f9 Update configuration.md
5fbe741d7 Update index.md (#1570 )
37a69496f netlify: Bump to Hugo 0.89.2
3b293f1f4 Merge branch 'tempv0.89.2'
64c934e7a releaser: Add release notes to /docs for release of 0.89.2
919c51c7d Update index.md
13dd463b1 netlify: Hugo 0.89.1
d8cda1474 releaser: Add release notes to /docs for release of 0.89.1
a2adf7742 releaser: Add release notes to /docs for release of 0.89.1
c3088c4fc Add code toggle to menus page (#1568 )
2d0f38978 Remove blank lines from code-toggle output (#1564 )
7cf058bfd Add localization examples (#1563 )
cf8627c2e Fixing typos, fixing incomplete link (#1561 )
c78cc014b Document the removePathAccents setting
70beddaf4 Make corrections to 0.89.0 release notes (#1560 )
1917195f0 Update index.md
7fb8e070c Run hugo --gc
1772d45fb Release 0.89.0
d9006179b Merge branch 'tempv0.89.0'
8db86b61e releaser: Add release notes to /docs for release of 0.89.0
abf268571 docs: Regen CLI docs
fbbdb0ab1 Update the timeout default
9cbd1c15a Fix description of lang.FormatNumberCustom
6043b54cc Remove "render" keyword from Host on Render page
f8ea8e84f Clarify description of front matter url (#1557 )
91a0c9954 Update Twitter shortcode oEmbed endpoint
79a7405b8 Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
57667bae6 hugofs: Add includeFiles and excludeFiles to mount configuration
0c9ee0a04 Allow multiple plugins in the PostCSS options map
155799e6b docs: Create path.Clean documentation
git-subtree-dir: docs
git-subtree-split: 316cec2494
2021-12-08 08:42:31 +01:00
Bjørn Erik Pedersen
e71d715b9b
Add custom font support to images.Text
...
Fixes #9253
2021-12-07 16:53:02 +01:00
Bjørn Erik Pedersen
e61cdf335f
images: Fix cache busting of image text filter
...
See #9238
2021-12-07 16:53:02 +01:00
dependabot[bot]
6c3bc5ebad
build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.80.0 to 0.85.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.80.0...v0.85.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 >
2021-12-07 13:12:42 +01:00
Paul van Brouwershaven
283394a4fd
images: Text filter that draws text with the given options ( #9239 )
...
Fixes #9238
2021-12-07 11:29:55 +01:00
Joe Mooring
5538507e90
tpl/transform: Optional options for highlight func
...
Closes #9249
Fixes gohugoio/hugoDocs#63
2021-12-07 11:26:56 +01:00
Bjørn Erik Pedersen
b4f27ef8e7
deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note)
...
Note: ESBuild v0.14.0 contains backwards-incompatible changes, see https://github.com/evanw/esbuild/releases/tag/v0.14.0
Fixes #9244
2021-12-04 16:28:50 +01:00
Bjørn Erik Pedersen
3473e31eb1
releaser: Add "note" to Note regexp
2021-12-04 16:27:56 +01:00
dependabot[bot]
fa0da004a9
build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.2...v1.4.3 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-03 18:16:50 +01:00
Bjørn Erik Pedersen
24a893cf83
releaser: Rework and simplify to use GitHub only for release notes
2021-12-03 17:02:20 +01:00
dependabot[bot]
bf1564bd2c
build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.51.0 to 0.61.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.51.0...v0.61.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-03 17:01:37 +01:00
Paul van Brouwershaven
cd44d409ba
media: Add rss suffix for application/rss+xml
...
Closes #9233
2021-12-03 12:45:49 +01:00
Bjørn Erik Pedersen
9a326d5636
parser: Add a test case in format resolution
...
See #9233
2021-12-03 10:34:34 +01:00
Bjørn Erik Pedersen
b10381fbe0
lazy: Reset error in Reset
...
To prevent sticky errors on server rebuilds.
Fixes #7043
Closes #9194
2021-12-02 18:06:19 +01:00
Paul van Brouwershaven
0eaaa8fee3
Implement XML data support
...
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-02 17:30:36 +01:00
Joe Mooring
58adbeef88
Validate private use language tags
...
Fixes #9119
2021-12-02 16:30:53 +01:00
Bjørn Erik Pedersen
93572e5318
resources: Add timeout to the HTTP request in Get
...
Workaround for https://github.com/golang/go/issues/49366
2021-12-02 16:11:14 +01:00
Bjørn Erik Pedersen
94f149b21e
Add a remote retry for resources.Get
2021-12-02 16:11:14 +01:00
Paul van Brouwershaven
66753416b5
Make resources.Get use a file cache for remote resources
...
Closes #9228
2021-12-02 12:56:25 +01:00
Joe Mooring
133e4bfbee
Remove empty href element from pagination template
...
Closes #9149
2021-12-02 09:14:30 +01:00
Joe Mooring
f122771fb1
Check for empty deployment targets and matchers
...
Fixes #9220
2021-12-01 10:17:42 +01:00
Bjørn Erik Pedersen
08a863e1e8
resources: Adjust the remote Get cache so it does not get evicted on restarts
...
We fill improve this, soon.
2021-11-30 16:54:01 +01:00
Paul van Brouwershaven
8aa7257f65
Add remote support to resources.Get
...
Closes #5255
Supports #9044
2021-11-30 11:49:51 +01:00
Joe Mooring
75a823a36a
Add deprecation warning to google_news template
...
Closes #9172
2021-11-21 11:25:17 +01:00
Bjørn Erik Pedersen
5e0947c5b5
helpers: Make UniqueStringsReuse allocation free
...
This should be faster for all of our use cases (small string slices), but more important, it makes UniqueStringsReuse allocation free.
```bash
name old time/op new time/op delta
UniqueStrings/Safe-16 776ns ± 0% 305ns ± 0% -60.68% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 621ns ± 3% 174ns ± 0% -72.01% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 319ns ± 4% 313ns ± 0% -2.01% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
UniqueStrings/Safe-16 224B ± 0% 128B ± 0% -42.86% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 96.0B ± 0% 0.0B -100.00% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 24.0B ± 0% 24.0B ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
UniqueStrings/Safe-16 7.00 ± 0% 1.00 ± 0% -85.71% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16 6.00 ± 0% 0.00 -100.00% (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16 1.00 ± 0% 1.00 ± 0% ~ (all equal)
```
2021-11-17 10:44:03 +01:00
hugoreleaser
0b70b46aad
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-17 09:05:38 +00:00
hugoreleaser
ab01ba6e7e
releaser: Add release notes to /docs for release of 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
hugoreleaser
cc08c09592
releaser: Bump versions for release of 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
hugoreleaser
f97da9eca9
releaser: Add release notes for 0.89.4
...
[ci skip]
2021-11-17 08:24:08 +00:00
Bjørn Erik Pedersen
2e70f61fb0
Fix content dir resolution when main project is a Hugo Module
...
Fixes #9177
2021-11-16 20:42:34 +01:00
hugoreleaser
1ed8069a3a
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-15 12:56:41 +00:00
hugoreleaser
c88cdb5610
releaser: Add release notes to /docs for release of 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
hugoreleaser
e1064d2195
releaser: Bump versions for release of 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
hugoreleaser
bf489b96d3
releaser: Add release notes for 0.89.3
...
[ci skip]
2021-11-15 12:17:45 +00:00
Bjørn Erik Pedersen
b8155452ac
Improve error when we cannot determine content directory in "hugo new"
...
See #9166
2021-11-15 11:21:39 +01:00
Joe Mooring
08552a7a4c
deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4
...
Fixes #9159
2021-11-15 09:43:24 +01:00
Bjørn Erik Pedersen
fdad91fd96
commands: Make sure pollInterval is always set
...
Fixes #9165
2021-11-13 21:45:51 +01:00
Bjørn Erik Pedersen
5f3f60898c
create: Improve archetype directory discovery and tests
...
Updates #9146
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
057d02de25
create: Add a log statement when archetype is a directory
...
See #9157
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
43ac59da85
create: Always print "Content ... created"
...
This indeliberately changed to INFO level in Hugo 0.89.0.
Fixes #9157
2021-11-12 12:05:31 +01:00
Bjørn Erik Pedersen
ab5c6990a5
commands: Fix missing file locking in server partial render
...
Fixes #9162
2021-11-12 09:29:04 +01:00
Patrick Kollitsch
9369d13e59
modules: Improve error message
2021-11-10 09:32:17 +01:00
hugoreleaser
805c24c32c
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-08 15:56:14 +00:00
hugoreleaser
63e3a5ebb2
releaser: Add release notes to /docs for release of 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
hugoreleaser
eaa6c96a79
releaser: Bump versions for release of 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
hugoreleaser
cf3eb580bf
releaser: Add release notes for 0.89.2
...
[ci skip]
2021-11-08 15:22:23 +00:00
Bjørn Erik Pedersen
2b01c85d14
Fix path resolution in hugo new
...
With theme and project with content directories and command on the form `hugo new posts/test.md`.
Fixes #9129
2021-11-08 14:10:46 +01:00
Bjørn Erik Pedersen
c09f5c5fd3
deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3
...
Fixes #9137
2021-11-08 11:54:51 +01:00
hugoreleaser
9232e28446
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-05 16:24:06 +00:00
hugoreleaser
b6a4ae4ad5
releaser: Add release notes to /docs for release of 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
hugoreleaser
84de0c3255
releaser: Bump versions for release of 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
hugoreleaser
a074102262
releaser: Add release notes for 0.89.1
...
[ci skip]
2021-11-05 15:44:32 +00:00
Bjørn Erik Pedersen
da4406ea50
Revert "releaser: Fat MacOS binaries"
...
This had some side effect that I'm not prepared to fix today ...
This reverts commit 3a977485eb .
Updates #9131
Updates #9128
2021-11-05 16:31:19 +01:00
Bjørn Erik Pedersen
166862a096
create: Make sure the build lock is released before we open editor
...
Fixes #9121
2021-11-04 15:40:02 +01:00
Andreas Deininger
82c33c7105
readme: Update dependency list
2021-11-03 17:15:33 +01:00
hugoreleaser
41e9e9fe14
releaser: Prepare repository for 0.90.0-DEV
...
[ci skip]
2021-11-02 10:40:00 +00:00
hugoreleaser
ade966b84b
releaser: Add release notes to /docs for release of 0.89.0
...
[ci skip]
2021-11-02 10:00:17 +00:00
hugoreleaser
a93d4ba64e
releaser: Bump versions for release of 0.89.0
...
[ci skip]
2021-11-02 10:00:17 +00:00
hugoreleaser
110512a65c
releaser: Add release notes for 0.89.0
2021-11-02 10:47:54 +01:00
Bjørn Erik Pedersen
f503b63957
docs: Regen CLI docs
2021-11-02 09:01:26 +01:00
Bjørn Erik Pedersen
30aba7fb09
source: Make ContentBaseName() return the directory for branch bundles
...
Fixes #9112
2021-11-01 21:06:39 +01:00
Joe Mooring
04a3b45db4
Fix description of lang.FormatNumberCustom
...
It currently refers to itself as a simple alternative, when it should
refer to lang.FormatNumber.
2021-11-01 18:54:43 +01:00
Joe Mooring
0cc39af682
Update Twitter shortcode oEmbed endpoint
...
The existing endpoint will be retired and removed on November 23, 2021.
References:
- https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690
- https://developer.twitter.com/en/docs/twitter-for-websites/oembed-api#Embedded
This is a backward compatible change.
The existing endpoint requires a single parameter: the id of the tweet.
The new endpoint requires two parameters: the id of the tweet, and the
user with whom it is associated. For the moment, if you supply the wrong
user, the request will be redirected (with a small delay) to the correct
user/id pair. This behavior is undocumented, but we will take advantage
of it as Hugo site authors transition to the new syntax.
{{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax
Fixes #8130
2021-11-01 15:51:00 +01:00
Bjørn Erik Pedersen
ed6fd26ce8
common/htime: Fix time.Format with Go layouts
...
Fixes #9107
2021-11-01 15:45:59 +01:00
dependabot[bot]
7fa66425aa
build(deps): bump github.com/evanw/esbuild from 0.13.10 to 0.13.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.13.10 to 0.13.12.
- [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.13.10...v0.13.12 )
---
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 >
2021-11-01 15:44:19 +01:00
dependabot[bot]
69210cfdf3
build(deps): bump github.com/yuin/goldmark from 1.4.1 to 1.4.2
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 15:43:42 +01:00
Bjørn Erik Pedersen
4b36498a85
Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
2021-10-31 13:53:55 +01:00
Bjørn Erik Pedersen
aa5ac36a3e
Squashed 'docs/' changes from 327003421..39a7fac34
...
39a7fac34 Add .hugo_build.lock to .gitignore
920c716a4 fix a typo: to -> two (#1545 )
6f0ba9593 Remove godocref from front matter (#1543 )
8ec3d5948 remove link to wercker (#1544 )
b56008719 Delete deployment-with-wercker.md (#1542 )
e33d29b02 Fix broken links (#1538 )
29e9d4c21 Sort commenting systems (#1541 )
0b7ea60a7 Delete the news page "HTTP/2 Server Push in Hugo"
6e1515857 Fix quick-start.md (#1525 )
62168ab35 Update comments.md (#1535 )
d92191512 Small typo (#1539 )
129c8834a Correct the PostCSS noMap default value (#1534 )
6a5b29fcc Add example to index function (#1536 )
e3dd8c507 Update output-formats.md
0c9321ca0 Remove reference to using LiveReload in production environment
4072d6776 Mod testing
09fabf7d6 Fix typo (#1524 )
2fce813c8 Fix grammatical error in quick-start.md (#1523 )
45230ab4a Hugo Mod testing
2dd4cd9e7 Update index.md
2c3ed62fd netlify: Bump to 0.88.1
648e2a007 Merge branch 'tempv0.88.1'
f216eade1 releaser: Add release notes to /docs for release of 0.88.1
8a7b64d4b Fix typographical errors in 0.88.0 release notes
a4bf86300 Release 0.88
738bb8f38 releaser: Add release notes to /docs for release of 0.88.0
8fcf2c55d highlight: Remove some pygments references
f2b173de2 HTTPS link
c88881c8e Adding link to nginx documentation
6b0a74fe0 Fix typos in docs (#1516 )
498b8f0f1 Fix typos in time.Format (#1515 )
28723fad6 Fix taxonomy and term examples (#1514 )
3ffd00e12 Update front-matter.md
7cc1da82e Fix grammar in 0.86.1 release notes (#1510 )
0009c51c3 Update docs helper
7e2f430f4 Update index.md
7857eae7e releaser: Add release notes to /docs for release of 0.87.0
1f08b684b releaser: Add release notes to /docs for release of 0.87.0
36a9e701c docs: Adjust config docs
0f588438e docs: Regen CLI docs
1b4682cd8 docs: Regen docs helper
bc8bbaae9 Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
6f2480643 docs: Adjust time zone docs
git-subtree-dir: docs
git-subtree-split: 39a7fac343
2021-10-31 13:51:51 +01:00
Bjørn Erik Pedersen
3a977485eb
releaser: Fat MacOS binaries
...
Fixes #9035
2021-10-31 11:30:12 +01:00
Bjørn Erik Pedersen
0f248606d5
releaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly
...
Fixes #9102
2021-10-31 10:04:01 +01:00
Bjørn Erik Pedersen
e82cbd746f
tpl/time: Use configured location when date passed to Format is string
...
Updates #9084
2021-10-30 16:09:38 +02:00
dependabot[bot]
3339c2bb61
build(deps): bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.40.8 to 1.41.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.40.8...v1.41.14 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-30 11:17:12 +02:00
dependabot[bot]
03bbdba8be
build(deps): bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.79.0 to 0.80.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.79.0...v0.80.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 >
2021-10-30 11:16:46 +02:00
dependabot[bot]
a772b8fc38
build(deps): bump github.com/evanw/esbuild from 0.13.8 to 0.13.10
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.13.8 to 0.13.10.
- [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.13.8...v0.13.10 )
---
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 >
2021-10-30 09:35:06 +02:00
Anthony Fok
dce49d1333
resources: Rename excepted filenames for image golden testdata
...
As documented in commit 30eea3915b ,
some filenames have changed due to cache busting of PNG and Webp images.
This resolves recent TestImageOperationsGolden failure on arm64, ppc64le
and s390x.
See #6387 and #8729
2021-10-30 08:47:22 +02:00
dependabot[bot]
61c5b7a2e6
build(deps): bump github.com/frankban/quicktest from 1.13.1 to 1.14.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-27 14:30:23 +02:00
Joe Mooring
1d60bd1efa
Fix typo in error message
2021-10-26 12:59:15 +02:00
Bjørn Erik Pedersen
75c9b893d9
create: Validate the target path in hugo new
...
Fixes #9072
2021-10-25 19:50:18 +02:00
Bjørn Erik Pedersen
64e1613fb3
Fix panic when specifying multiple excludeFiles directives
...
Fixes #9076
2021-10-25 19:50:18 +02:00
satotake
b959ecbc81
htime: Set zone of datetime from from go-toml
...
`go-toml/v2`'s unmarshaler does not specify zone name even if value has
offset explicitly.
To make time-formatting behaviour consistent, convert them into string
in hugo.
Close #8895
2021-10-25 19:49:44 +02:00
Sergio Garcia
70e454812e
Added nodesource apt repository to snap package
2021-10-22 16:26:07 -06:00
Anthony Fok
355ff83e74
config: Set HUGO_ENABLEGITINFO=false override in Set_in_string
...
This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS
even if there is no .git directory, e.g. during Debian package build.
2021-10-22 19:40:18 +02:00
Bjørn Erik Pedersen
471ed91c60
hugofs: Add includeFiles and excludeFiles to mount configuration
...
Fixes #9042
2021-10-20 05:00:17 +02:00
dependabot[bot]
94a5bac5b2
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-20 04:17:44 +02:00
Bjørn Erik Pedersen
9830ca9e31
resources: Always preserve the original transform error
2021-10-19 20:38:38 +02:00
itsAftabAlam
b64fd0577b
readme: Add hyperlink to the banner
2021-10-19 15:59:12 +02:00
dependabot[bot]
2706437a7d
build(deps): bump github.com/getkin/kin-openapi from 0.78.0 to 0.79.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.78.0 to 0.79.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.78.0...v0.79.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 >
2021-10-19 15:35:31 +02:00
Bjørn Erik Pedersen
ec7c993cfe
deps: github.com/evanw/esbuild v0.13.5 => v0.13.8
2021-10-19 15:33:29 +02:00
Bjørn Erik Pedersen
32c6f656d9
create: Return error on no content dirs
...
Closes #9056
2021-10-19 08:08:21 +02:00
Bjørn Erik Pedersen
e02e0727e5
Fix file permissions in new archetype implementation
...
Closes #9057
2021-10-18 19:08:19 +02:00
Bjørn Erik Pedersen
096f5e1921
Fix the "page picker" logic in --navigateToChanged
...
Fixes #9051
2021-10-18 12:13:13 +02:00
Bjørn Erik Pedersen
ba35e69856
Add a cross process build lock and use it in the archetype content builder
...
Fixes #9048
2021-10-18 12:13:13 +02:00
nabbisen
c7957c90e8
readme: Fix a typo on OpenBSD
2021-10-17 21:23:01 +02:00
Bjørn Erik Pedersen
bb05377033
deps: github.com/alecthomas/chroma v0.9.2 => v0.9.4
...
Fixes #8532
2021-10-17 17:14:03 +02:00
Bjørn Erik Pedersen
9185e11eff
Reimplement archetypes
...
The old implementation had some issues, mostly related to the context (e.g. name, file paths) passed to the template.
This new implementation is using the exact same code path for evaluating the pages as in a regular build.
This also makes it more robust and easier to reason about in a multilingual setup.
Now, if you are explicit about the target path, Hugo will now always pick the correct mount and language:
```bash
hugo new content/en/posts/my-first-post.md
```
Fixes #9032
Fixes #7589
Fixes #9043
Fixes #9046
Fixes #9047
2021-10-16 15:22:03 +02:00
dependabot[bot]
168a3aab46
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.21 to 2.9.22
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.21 to 2.9.22.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.21...v2.9.22 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-14 10:40:23 +02:00
Bjørn Erik Pedersen
8bcfa3bdf6
deps: Update github.com/evanw/esbuild v0.13.5
2021-10-14 10:25:42 +02:00
Iskander (Alex) Sharipov
d7331aaa7e
releaser: Fix regexp
...
Original regexp used a char class which caused the regexp to only
check 1 symbol instead of a substring like "See" and "Closes".
So it would match `e #x` instead of `See #x` and many other
weird combinations.
Tests were passing as they never checked against an input that
would confuse that regexp.
Found with go-critic static analyzer, `badRegexp` checker.
2021-10-12 11:32:09 +02:00
dependabot[bot]
cd4e67af18
build(deps): bump github.com/mattn/go-isatty from 0.0.13 to 0.0.14
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.13...v0.0.14 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-10 20:45:38 +02:00
dependabot[bot]
e6ad1f0e76
build(deps): bump github.com/getkin/kin-openapi from 0.75.0 to 0.78.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.75.0 to 0.78.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.75.0...v0.78.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 >
2021-10-10 20:30:52 +02:00
Bjørn Erik Pedersen
625d2c257a
releaser: Update to Go go1.17.2
...
* This now uses the `golang:1.17.2-buster` Docker image which runs GLIBC 2.28-10.
* Also added a build hook to warn us if this happens again in the future.
Fixes #8955
2021-10-10 16:53:44 +02:00
Joe Mooring
e6e44b7c41
Fix value of useResourceCacheWhen in TestResourceChainPostCSS
2021-10-10 11:12:01 +02:00
Joe Mooring
64abc83fc4
Allow multiple plugins in the PostCSS options map
...
Usage:
{{ $options := dict "use" "autoprefixer postcss-color-alpha" }}
{{ $style := resources.Get "main.css" | resources.PostCSS $options }}
Fixes #9015
2021-10-10 11:11:43 +02:00
Joe Mooring
f8d132d731
docs: Create path.Clean documentation
...
Related to #9005
2021-10-09 20:36:57 +02:00
Bjørn Erik Pedersen
26f1919ae0
Skip a test assertion on CI
...
Need to investigate later, but got to get the tests green.
2021-10-09 20:36:32 +02:00
Brad
e55466ce70
tpl/path: Add path.Clean
...
Fixes #8885
2021-10-05 16:15:10 +02:00
Shalabh Kamboj
ecf025f006
readme: Remove tracking image
...
The server for the tracking image for analytics is currently down,
therefore I found it convenient to remove the link in order to maintain our readme
2021-10-05 15:09:11 +02:00
digitalcraftsman
fab1e43de5
Revert "Remove credit from release notes"
...
See b2eaf4c8c2
2021-09-23 14:02:00 +02:00
Paul Gottschling
e03f82eef2
Pass minification errors to the user
...
Previously, *minifyTransformation.Transform suppressed the
error returned by t.m.Minify. This meant that when minification
returned an error, the error would not reach the user. Instead,
minification would silently fail. For example, if a JavaScript
file included a call to the Date constructor with:
new Date(2020, 04, 02)
The package that the minification library uses to parse JS files,
github.com/tdewolff/parse would return an error, since "04" would
be parsed as a legacy octal. However, the JS file would remain
un-minified with no error.
Fixing this is not as simple as replacing "_" with an "err" in
*minifyTransformation.Transform, however (though this is
necessary). If we only returned this error from Transform,
then hugolib.TestResourceMinifyDisabled would fail. Instead of
being a no-op, as TestResourceMinifyDisabled expects, using the
"minify" template function with a "disableXML=true" config
setting instead returns the error, "minifier does not exist for
mimetype."
The "minifier does not exist" error is returned because of the
way minifiers.New works. If the user's config disables
minification for a particular MIME type, minifiers.New does
not add it to the resulting Client's *minify.M. However, this
also means that when the "minify" template function is executed,
a *resourceAdapter's transformations still add a minification.
When it comes time to call the minify.Minifier for a specific
MIME type via *M.MinifyMimetype, the github.com/tdewolff/minify
library throws the "does not exist" error for the missing MIME
type.
The solution was to change minifiers.New so, instead of skipping
a minifier for each disabled MIME type, it adds a NoOpMinifier,
which simply copies the source to the destination without
minification. This means that when the "minify" template
function is used for a particular resource, and that resource's
MIME type has minification disabled, minification is genuinely
skipped, and does not result in an error.
In order to add this, I've fixed a possibly unwanted interaction
between minifiers.TestConfigureMinify and
hugolib.TestResourceMinifyDisabled. The latter disables
minification and expects minification to be a no-op. The former
disables minification and expects it to result in an error. The
only reason hugolib.TestResourceMinifyDisabled passes in the
original code is that the "does not exist" error is suppressed.
However, we shouldn't suppress minification errors, since they
can leave users perplexed. I've changed the test assertion in
minifiers.TestConfigureMinify to expect no errors and a no-op
if minification is disabled for a particular MIME type.
Fixes #8954
2021-09-22 20:54:40 +02:00
Paul Gottschling
a864ffe9ac
Clarify "precision" in currency format functions
...
The documentation of the FormatAccounting and FormatCurrency
functions could be clearer in terms of how the precision param
works. This commit makes it more explicit that adding a precision
of < 2 will not format the return values to include fewer decimals.
Resolves #8858
2021-09-22 20:00:30 +02:00
dependabot[bot]
b49da33280
build(deps): bump github.com/evanw/esbuild from 0.12.24 to 0.12.29
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.24 to 0.12.29.
- [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.12.24...v0.12.29 )
---
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 >
2021-09-22 20:00:05 +02:00
Emmanuel T Odeke
7c21eca74f
resources: Use default math/rand.Source for concurrency safety
...
The source from NewSource is documented not to be safe for
concurrency, and instead use the eefault source which is documented
as safe.
Fixes #8981
2021-09-19 12:18:30 +02:00
Bjørn Erik Pedersen
13ad8408fc
commands: Make the error handling for the mod commands more lenient
...
So it at least is possible to do a `hugo mod clean --all` if the cache is in a funky state.
2021-09-17 17:16:34 +02:00
Bjørn Erik Pedersen
1cabf61ddf
modules: Add some help text to the 'unknown revision' error
...
I had a head scratching moment with this myself, so it's safe to say that others will.
See #6825
2021-09-17 09:34:35 +02:00
Joe Mooring
268e3069f3
deps: Update github.com/yuin/goldmark v1.4.0 => v1.4.1
...
Fixes #8855
2021-09-12 21:55:37 +02:00
hugoreleaser
3efc2e2af8
releaser: Prepare repository for 0.89.0-DEV
...
[ci skip]
2021-09-04 10:33:09 +00:00
hugoreleaser
5bc547389a
releaser: Add release notes to /docs for release of 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
hugoreleaser
bb3254385a
releaser: Bump versions for release of 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
hugoreleaser
9b1d6d7e30
releaser: Add release notes for 0.88.1
...
[ci skip]
2021-09-04 09:39:19 +00:00
Bjørn Erik Pedersen
e1ead4dbca
Bump down again to Go 1.16.7 for the release builds
...
Note that this commit has nothing to do with "Hugo not working with Go 1.17", but this is the simplest fix of some build related issues in Hugo 0.88.0.
Updates #8952
Updates #8955
2021-09-04 11:22:51 +02:00
hugoreleaser
5b59b9c171
releaser: Prepare repository for 0.89.0-DEV
...
[ci skip]
2021-09-02 09:57:36 +00:00
hugoreleaser
acc5eb5b51
releaser: Add release notes to /docs for release of 0.88.0
...
[ci skip]
2021-09-02 09:27:27 +00:00
hugoreleaser
6cacfa329c
releaser: Bump versions for release of 0.88.0
...
[ci skip]
2021-09-02 09:27:27 +00:00
Bjørn Erik Pedersen
4d03cd780e
Release 0.88.0
2021-09-02 11:11:08 +02:00
Bjørn Erik Pedersen
8b14fdbf89
Update 0.88.0-relnotes.md
...
[ci skip]
2021-09-02 11:10:40 +02:00
hugoreleaser
fc21b63b46
releaser: Add release notes for 0.88.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-09-02 08:09:25 +00:00
Bjørn Erik Pedersen
6631c9c7e0
Run go mod tidy
2021-09-01 10:48:13 +02:00
Bjørn Erik Pedersen
cf73cc2ece
js: Fix import order for ./foo when both ./foo.js and ./foo/index.js exists
...
This is in line with how both Node and ESBuild's native import resolver does it.
The ambiguous situations above were discovered trying to build AlpineJS v3.
Note that the above was never an issue if you used `./foo.js` and similar to import the component.
Fixes #8945
2021-09-01 10:47:41 +02:00
Bjørn Erik Pedersen
7d1f806ecb
commands: Don't fail on template errors on go mod graph etc.
...
Fixes #8942
2021-08-31 22:16:12 +02:00
dependabot[bot]
04b5959961
build(deps): bump github.com/getkin/kin-openapi from 0.74.0 to 0.75.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.74.0 to 0.75.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.74.0...v0.75.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 >
2021-08-31 12:11:39 +02:00
dependabot[bot]
c278b6e45d
build(deps): bump github.com/frankban/quicktest from 1.13.0 to 1.13.1
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-31 12:11:08 +02:00
dependabot[bot]
107c86febb
build(deps): bump github.com/evanw/esbuild from 0.12.22 to 0.12.24
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.22 to 0.12.24.
- [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.12.22...v0.12.24 )
---
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 >
2021-08-31 12:10:32 +02:00
Bjørn Erik Pedersen
a0489c2dfd
Avoid failing with "module not found" for hugo mod init and similar
...
Fixes #8940
2021-08-31 12:08:11 +02:00
Bjørn Erik Pedersen
0fc2ce9e4b
Update to Go 1.17
...
Go 1.17 now lazy-loads dependencies when `go.mod` is version `go17`. This does not work for us for new projects started with `hugo mod init`.
Before this commit, starting a project with Go 1.17 with `hugo mod init` and then start adding dependencies with transitive dependenies to `config.toml` would treat the transitive dependencies as new, and you would potentially get a too recent version of those.
Note that this does not effect existing projects, where all dependencies are already recorded in `go.mod`.
Fixes #8930
2021-08-31 11:19:51 +02:00
Anthony Fok
32569285c1
Remove Pygments from snapcraft.yml
...
Pygments support was removed in Hugo v0.60.0
2021-08-25 10:43:32 -06:00
Bjørn Erik Pedersen
5a46eefbc6
Revert "build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0"
...
This reverts commit f70165242b .
Closes #8920
2021-08-23 18:20:29 +02:00
Helder Pereira
7a15edafe2
highlight: Add tabindex when code is not highlighted
2021-08-23 12:28:45 +02:00
dependabot[bot]
2f0945bafe
build(deps): bump github.com/evanw/esbuild from 0.12.17 to 0.12.22
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.17 to 0.12.22.
- [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.12.17...v0.12.22 )
---
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 >
2021-08-22 13:58:10 +02:00
Bjørn Erik Pedersen
f4ffeea71d
Fix it so disableKinds etc. does not get merged in from theme
...
Unless the merge strategy is set up to do so.
For `disableKinds` the current workaround is to make sure the project config has an entry, even if is empty:
```
disableKinds = []
```
Note that this issue only touches root, non-map config-values that either is not set in project config or in Hugo's defaults.
Fixes #8866
2021-08-22 13:25:20 +02:00
dependabot[bot]
7ba3f3d201
build(deps): bump golang.org/x/text from 0.3.6 to 0.3.7
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.6...v0.3.7 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-22 12:52:31 +02:00
dependabot[bot]
f70165242b
build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.4.9 to 1.5.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.4.9...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-22 12:52:04 +02:00
Bjørn Erik Pedersen
bc0743ed8e
Prevent minifier from removing quoutes around post-processed attributes
...
Fixes #8884
2021-08-22 12:47:47 +02:00
Bjørn Erik Pedersen
ffa2fe6117
Revert "commands: Avoid too many watch file handles causing the server to fail to start"
...
This reverts commit 3f38c785b7 .
2021-08-21 16:32:20 +02:00
Helder Pereira
d966f5d08d
highlight: Remove some pygments references
2021-08-21 15:50:49 +02:00
Shiming Zhang
3f38c785b7
commands: Avoid too many watch file handles causing the server to fail to start
...
Fixes #8904
2021-08-19 11:04:09 +02:00
dependabot[bot]
24589c0814
build(deps): bump github.com/getkin/kin-openapi from 0.68.0 to 0.74.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.68.0 to 0.74.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.68.0...v0.74.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 >
2021-08-17 10:50:10 +02:00
Bjørn Erik Pedersen
efebd756eb
deps: Update github.com/spf13/cast v1.4.0 => v1.4.1
...
Closes #8891
2021-08-16 09:16:41 +02:00
Bjørn Erik Pedersen
58b6742cfe
Import time/tzdata on Windows
...
Updates #8892
2021-08-14 12:09:41 +02:00
Bjørn Erik Pedersen
32ead4b1e7
releaser: Bump to Go 1.16.7
2021-08-10 14:00:49 +02:00
Bjørn Erik Pedersen
abd969a670
Revert "tpl/time: Handle nil values in time.AsTime"
...
This reverts commit 3e11072892 .
2021-08-10 13:21:49 +02:00
Bjørn Erik Pedersen
3e11072892
tpl/time: Handle nil values in time.AsTime
...
Closes #8865
2021-08-09 18:44:35 +02:00
Bjørn Erik Pedersen
9bba9a3a98
parser: Indent TOML tables
...
Fixes #8850
2021-08-04 11:39:16 +02:00
Salim B
d6c8cd7718
Fix lang.FormatPercent description
...
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
2021-08-03 16:56:06 +02:00
hugoreleaser
dfe54d3216
releaser: Prepare repository for 0.88.0-DEV
...
[ci skip]
2021-08-03 12:11:56 +00:00
hugoreleaser
b0c541e496
releaser: Add release notes to /docs for release of 0.87.0
...
[ci skip]
2021-08-03 10:57:26 +00:00
hugoreleaser
2ed7be295c
releaser: Bump versions for release of 0.87.0
...
[ci skip]
2021-08-03 10:57:26 +00:00
Bjørn Erik Pedersen
d9d1ef8b07
Release 0.87
2021-08-03 12:42:22 +02:00
Bjørn Erik Pedersen
ec1c1c3459
Merge branch 'b087' into release-0.87.0
2021-08-03 12:38:58 +02:00
Bjørn Erik Pedersen
c7fd134625
Update 0.87.0-relnotes.md
...
[ci skip]
2021-08-03 12:31:41 +02:00
Bjørn Erik Pedersen
a5d2632ebb
Update 0.87.0-relnotes.md
...
[ci skip]
2021-08-03 12:30:42 +02:00
Bjørn Erik Pedersen
494f284be3
docs: Adjust config docs
2021-08-03 12:22:02 +02:00
Bjørn Erik Pedersen
bf738d2f43
docs: Regen CLI docs
2021-08-03 11:55:02 +02:00
Bjørn Erik Pedersen
8d19850e2d
docs: Regen docs helper
2021-08-03 11:53:34 +02:00
Bjørn Erik Pedersen
0934983529
Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
2021-08-03 11:52:57 +02:00
Bjørn Erik Pedersen
bd77f6e1c9
Squashed 'docs/' changes from 60a58d123..327003421
...
327003421 Update index.md
cafdccc13 Hugo 0.86.1
467a89a02 Merge branch 'v0861'
a22c37bc9 Merge branch 'release-0.86.1'
276da91a8 releaser: Add release notes to /docs for release of 0.86.1
198cdf8f0 tpl/lang: Add new localized versions of lang.FormatNumber etc.
93f986ecc Add timezone support for front matter dates without one
b30b876bb Localize time.Format
950fdab90 Fix AddDate documentation
78d7b52b6 Document config.cascade
fd1e1e4b7 Fix grammar and spelling (#1497 )
05bf3aa32 Fix grammar / typos in news
32060a3b4 One more try
f6e24ddfa PNG to JPG for the rel notes image
9ec5bdfad Update index.md
5f5d7f69d Release Hugo 0.86.0
2dd60bb71 releaser: Add release notes to /docs for release of 0.86.0
6445fb36c Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
cb57ca73a Simplify "active menu" logic for section menus
git-subtree-dir: docs
git-subtree-split: 327003421d
2021-08-03 11:51:36 +02:00
Bjørn Erik Pedersen
1c5b025dd0
docs: Adjust time zone docs
2021-08-03 11:51:28 +02:00
hugoreleaser
c13d33dd5e
releaser: Add release notes for 0.87.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-08-03 08:45:16 +00:00
Bjørn Erik Pedersen
d70c485707
Make sure module config loading errors have file positioning info
...
Fixes #8845
2021-08-03 09:57:14 +02:00
Bjørn Erik Pedersen
9ff17c3324
tpl/time: Adjust tests to handle matching local time zones
...
Closes #8843
2021-08-03 08:54:45 +02:00
Bjørn Erik Pedersen
7aaaf7e33a
mod: Remove superflous replace statement
2021-08-02 20:33:13 +02:00
Bjørn Erik Pedersen
3a96655592
Reduce binary size vs locale, update to CLDR v36.1
...
Test building with `go build -ldflags="-s -w"`
Hugo 0.86.2: 46MB
Before this commit: 77MB
After this commit: 54MB
Fixes #8839
Fixes #8841
2021-08-02 19:40:32 +02:00
Joe Mooring
9a7383caf3
deps: Update github.com/tdewolff/minify/v2 v2.9.20 => v2.9.21
...
Closes #8831
2021-08-02 17:27:07 +02:00
Bjørn Erik Pedersen
6c70e1f22f
Fix error handling for the time func alias
...
Fixes #8835
2021-08-01 13:39:30 +02:00
Bjørn Erik Pedersen
4d221ce468
Fail on invalid time zone
...
Fixes #8832
2021-08-01 13:39:30 +02:00
Bjørn Erik Pedersen
e3dc5240f0
Improve handling of <nil> Params
...
Fixes #8825
2021-07-30 21:07:52 +02:00
Bjørn Erik Pedersen
268065cb2d
Merge branch 'release-0.86.1'
2021-07-30 12:58:26 +02:00
hugoreleaser
e0304c06ed
releaser: Add release notes for 0.86.1
...
[ci skip]
2021-07-30 12:58:03 +02:00
hugoreleaser
7aa8b1cd7d
releaser: Prepare repository for 0.87.0-DEV
...
[ci skip]
2021-07-30 10:54:50 +00:00
hugoreleaser
f6821b88ab
releaser: Add release notes to /docs for release of 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
hugoreleaser
580d320a66
releaser: Bump versions for release of 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
hugoreleaser
b75d4526e4
releaser: Add release notes for 0.86.1
...
[ci skip]
2021-07-30 10:13:32 +00:00
Bjørn Erik Pedersen
94b616bdfa
config: Fix a potential deadlock in config reading
...
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.
Fixes #8791
2021-07-30 11:53:27 +02:00
dependabot[bot]
e90b3591a1
build(deps): bump github.com/evanw/esbuild from 0.12.16 to 0.12.17
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.12.16 to 0.12.17.
- [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.12.16...v0.12.17 )
---
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 >
2021-07-30 11:11:10 +02:00
dependabot[bot]
4b7da6a9d7
build(deps): bump github.com/getkin/kin-openapi from 0.67.0 to 0.68.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.67.0 to 0.68.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.67.0...v0.68.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 >
2021-07-30 11:10:45 +02:00
Bjørn Erik Pedersen
7907d24ba1
tpl/lang: Add new localized versions of lang.FormatNumber etc.
...
Fixes #8820
2021-07-29 16:40:06 +02:00
Bjørn Erik Pedersen
726fe9c3c9
Go back to WARNING for Page deprecations
...
Do that in the next release, let's reduce the noise, we have enough changes as it is.
2021-07-29 16:18:38 +02:00
Bjørn Erik Pedersen
b5de37ee79
Handle toml.LocalDate and toml.LocalDateTime in front matter
...
See #8801
2021-07-28 18:02:42 +02:00
Bjørn Erik Pedersen
bf301daf15
deps: Upgrade github.com/pelletier/go-toml/v2 v2.0.0-beta.3 => v2.0.0-beta.3.0.20210727221244-fa0796069526
2021-07-28 17:27:31 +02:00
Bjørn Erik Pedersen
a3701e0931
Switch to go-toml v2
...
We have been using `go-toml` for language files only. This commit makes it the only TOML library.
It's spec compliant and very fast.
A benchark building a site with 200 pages with TOML front matter:
```bash
name old time/op new time/op delta
SiteNew/Regular_TOML_front_matter-16 48.5ms ± 1% 47.1ms ± 1% -2.85% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_TOML_front_matter-16 16.9MB ± 0% 16.7MB ± 0% -1.56% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_TOML_front_matter-16 302k ± 0% 296k ± 0% -2.20% (p=0.029 n=4+4)
```
Note that the front matter unmarshaling is only a small part of building a site, so the above is very good.
Fixes #8801
2021-07-28 11:51:13 +02:00
dependabot[bot]
40b6016cf3
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.19 to 2.9.20
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.19 to 2.9.20.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.19...v2.9.20 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-28 11:21:50 +02:00
Bjørn Erik Pedersen
7e1305710f
Add a TOML front matter benchmark
2021-07-27 19:27:54 +02:00
Bjørn Erik Pedersen
efa5760db5
Add timezone support for front matter dates without one
...
Fixes #8810
2021-07-27 19:02:48 +02:00
Bjørn Erik Pedersen
a57dda854b
Localize time.Format
...
Fixes #8797
2021-07-27 19:02:48 +02:00
dependabot[bot]
f9afba9335
build(deps): bump github.com/getkin/kin-openapi from 0.61.0 to 0.67.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.61.0 to 0.67.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.61.0...v0.67.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 >
2021-07-27 16:25:09 +02:00
dependabot[bot]
a5d2ba429d
build(deps): bump github.com/spf13/cast from 1.3.1 to 1.4.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.3.1...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:37:30 +02:00
dependabot[bot]
31972f3647
build(deps): bump google.golang.org/api from 0.45.0 to 0.51.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.45.0 to 0.51.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.45.0...v0.51.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:04:20 +02:00
dependabot[bot]
2e58782f96
build(deps): bump github.com/sanity-io/litter from 1.5.0 to 1.5.1
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/sanity-io/litter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 15:01:24 +02:00
dependabot[bot]
7b68f6524d
build(deps): bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.12 to 0.0.13.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.13 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 14:58:39 +02:00
dependabot[bot]
81265af2cc
build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.3 to 1.2.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.3...v1.2.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 14:05:28 +02:00
dependabot[bot]
c102c9719b
build(deps): bump github.com/mitchellh/mapstructure from 1.3.3 to 1.4.1
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.3.3 to 1.4.1.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.3.3...v1.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 13:16:44 +02:00
dependabot[bot]
7c0f904f29
build(deps): bump github.com/google/go-cmp from 0.5.5 to 0.5.6
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.5...v0.5.6 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 12:42:16 +02:00
dependabot[bot]
b2fbd4d13a
build(deps): bump github.com/mitchellh/hashstructure from 1.0.0 to 1.1.0
...
Bumps [github.com/mitchellh/hashstructure](https://github.com/mitchellh/hashstructure ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/mitchellh/hashstructure/releases )
- [Commits](https://github.com/mitchellh/hashstructure/compare/v1.0.0...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 12:36:11 +02:00
dependabot[bot]
90041d1b6d
build(deps): bump github.com/gobuffalo/flect from 0.2.2 to 0.2.3
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.2...v0.2.3 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 10:07:34 +02:00
dependabot[bot]
05047096f5
build(deps): bump github.com/pelletier/go-toml from 1.9.0 to 1.9.3
...
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml ) from 1.9.0 to 1.9.3.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v1.9.0...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 09:37:05 +02:00
dependabot[bot]
a469156ea4
build(deps): bump github.com/aws/aws-sdk-go from 1.38.23 to 1.40.8
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.23 to 1.40.8.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.23...v1.40.8 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 21:21:26 +02:00
dependabot[bot]
18fdd85bcc
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.18 to 2.9.19
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.18 to 2.9.19.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.18...v2.9.19 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 20:23:32 +02:00
Bjørn Erik Pedersen
aeb1935d44
deps: Update github.com/evanw/esbuild v0.11.16 => v0.12.16
2021-07-26 20:23:00 +02:00
Bjørn Erik Pedersen
c7252224c4
Deprecate Blackfriday and fix a potential deadlock in config
...
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.
Fixes #8792
Fixes #8791
2021-07-26 16:28:16 +02:00
Bjørn Erik Pedersen
e09d7882c8
deps: Update github.com/yuin/goldmark v1.3.9 => v1.4.0
2021-07-26 14:54:56 +02:00
dependabot[bot]
15c0eed048
build(deps): bump github.com/frankban/quicktest from 1.12.0 to 1.13.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.12.0...v1.13.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-26 11:31:33 +02:00
Bjørn Erik Pedersen
91cbb96302
Bump all long-living deprecations to ERRORs
2021-07-25 17:17:21 +02:00
Digitalcraftsman
a352d19d88
Fix theme count in release notes
2021-07-21 16:35:38 +02:00
hugoreleaser
11bb67dcfd
releaser: Prepare repository for 0.87.0-DEV
...
[ci skip]
2021-07-21 11:13:04 +00:00
hugoreleaser
41c6c52ead
releaser: Add release notes to /docs for release of 0.86.0
...
[ci skip]
2021-07-21 09:53:11 +00:00
hugoreleaser
d270eaf4fc
releaser: Bump versions for release of 0.86.0
...
[ci skip]
2021-07-21 09:53:11 +00:00
Bjørn Erik Pedersen
b2e67505f8
Release 0.86.0
2021-07-21 11:37:16 +02:00
Bjørn Erik Pedersen
32508045d3
navigation: Check Page first in URL()
...
In Hugo #8776 we added `pageRef`, a way to connect menu items in site config to pages.
This means that you now can have both a Page and a configured URL.
Having the configured URL as a fallback if the Page isn't found is obviously more useful, especially in multilingual sites.
See #8776
2021-07-21 11:36:15 +02:00
Bjørn Erik Pedersen
e521c9a36d
Update 0.86.0-relnotes.md
...
[ci skip]
2021-07-21 11:28:32 +02:00
hugoreleaser
dfb1cc4315
releaser: Add release notes for 0.86.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-07-21 09:04:02 +00:00
Bjørn Erik Pedersen
0294a4a4f8
Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
2021-07-21 10:45:53 +02:00
Bjørn Erik Pedersen
53a352795a
Squashed 'docs/' changes from 6ebb5dad9..60a58d123
...
60a58d123 Remove outdated references in scss-sass.md
225a03834 Revert "Update menus.md"
7d149dd1e Update menus.md
3694ecafc Fix theme submission process/repository
0277c202c Update index.md - fix typo (#1490 )
8921f0462 Fix link to theme components in 0.42 release notes (#1489 )
c948bd519 Release 0.85.0
ee5bc5be9 releaser: Add release notes to /docs for release of 0.85.0
f2f692c32 commands: Make the --poll flag a duration
13070337a docs: Regen CLI docs
git-subtree-dir: docs
git-subtree-split: 60a58d123d
2021-07-21 10:45:05 +02:00
Bjørn Erik Pedersen
351ed0f569
commands: Fix panic on invalid config in "hugo mod get" and similar
...
Fixes #8773
2021-07-20 18:23:09 +02:00
Bjørn Erik Pedersen
d831d2fce8
Simplify "active menu" logic for section menus
...
Fixes #8776
2021-07-20 17:50:59 +02:00
Bjørn Erik Pedersen
634481ba8c
Fix Params case handling for menu items defined in site config
...
Fixes #8775
2021-07-20 17:50:59 +02:00
Bjørn Erik Pedersen
c19f65f956
minifiers: Make keepWhitespace = true default for HTML
...
Fixes #8771
2021-07-19 23:35:20 +02:00
Bjørn Erik Pedersen
022c479551
hugofs: Make FileMeta a struct
...
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct.
This is easier to reason about, and it's more effective:
```
name old time/op new time/op delta
SiteNew/Regular_Deep_content_tree-16 71.5ms ± 3% 69.4ms ± 5% ~ (p=0.200 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Regular_Deep_content_tree-16 29.7MB ± 0% 27.9MB ± 0% -5.82% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Regular_Deep_content_tree-16 313k ± 0% 303k ± 0% -3.35% (p=0.029 n=4+4)
```
See #8749
2021-07-15 17:14:26 +02:00
rhymes
f27e542442
markup: Add tabindex="0" to default <pre> wrapper
...
Currently the generated `<pre>` element isn't fully accessible as it can't be focused by keyboard users.
To make this fully accessible, the attribute `tabindex="0"` should be added to the `<pre>` tag.
Closes #7194
2021-07-15 16:48:39 +02:00
Bjørn Erik Pedersen
ae6cf93c84
Fix default values when loading from config dir
...
By waiting until we've loaded the config dir config before applying the default values.
Fixes #8763
2021-07-15 16:15:32 +02:00
Bjørn Erik Pedersen
a70da2b74a
Fix the deprecation error/warn log levels
2021-07-15 12:24:20 +02:00
Bjørn Erik Pedersen
805664818d
markup/goldmark: Rename/reorder the hook methods
...
To make them easier to follow.
See #8755
2021-07-15 10:14:52 +02:00
Bjørn Erik Pedersen
ee3d2bb1d3
markup/goldmark: Support auto links in render hook
...
Fixes #8755
2021-07-15 10:14:52 +02:00
Bjørn Erik Pedersen
eb2a500367
Adjust a test helper
2021-07-14 21:47:26 +02:00
Bjørn Erik Pedersen
5cb52c2315
Add config.cascade
...
This commit adds support for using the `cascade` keyword in your configuration file(s), e.g. `config.toml`.
Note that
* Every feature of `cascade` is available, e.g. `_target` to target specific page sets.
* Pages, e.g. the home page, can overwrite the cascade defined in config.
Fixes #8741
2021-07-10 11:13:41 +02:00
Bjørn Erik Pedersen
30eea3915b
resources: Regenerate image golden testdata
...
Keep this as a separate commit as this isn't because the files have changed. The filenames have changed due to cache busting of PNG and Webp images.
See #8729
2021-07-07 17:25:14 +02:00
Bjørn Erik Pedersen
8f40f34cd1
Fix transparency problem when converting 32-bit images to WebP
...
Fixes #8729
2021-07-07 17:25:14 +02:00
hugoreleaser
8ddbc95466
releaser: Prepare repository for 0.86.0-DEV
...
[ci skip]
2021-07-05 11:37:38 +00:00
hugoreleaser
724d5db580
releaser: Add release notes to /docs for release of 0.85.0
...
[ci skip]
2021-07-05 10:46:25 +00:00
hugoreleaser
875fe4050c
releaser: Bump versions for release of 0.85.0
...
[ci skip]
2021-07-05 10:46:25 +00:00
Bjørn Erik Pedersen
56362e4bc7
Update 0.85.0-relnotes.md
2021-07-05 12:38:14 +02:00
hugoreleaser
f5cfb9e251
releaser: Add release notes for 0.85.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-07-05 10:27:32 +00:00
John Hollowell
04dc469fbd
commands: Move time notification to after any build errors
...
This allows error parsers (VSCode problemMatchers) to use the time notification as bounds for detecting errors.
Closes #8403
2021-07-05 10:38:54 +02:00
Brandon Woodford
07919d1ccb
exif: Log warning for metadata decode error
...
see #8519
2021-07-05 10:31:35 +02:00
Raoul
f75f90079a
Fix tab selection of disabled items in internal pagination template
2021-07-05 10:30:59 +02:00
Bjørn Erik Pedersen
e31b1d1946
commands: Make the --poll flag a duration
...
So you can do:
```
hugo server --poll 700ms
```
See #8720
2021-07-05 10:23:29 +02:00
Bjørn Erik Pedersen
43a23239b2
docs: Regen CLI docs
2021-07-04 16:35:21 +02:00
Bjørn Erik Pedersen
4479f09c9c
Merge commit '7eb0e10a80708c638554b8221a3120dc1168566c'
2021-07-04 16:34:53 +02:00
Bjørn Erik Pedersen
7eb0e10a80
Squashed 'docs/' changes from 710856e5a..6ebb5dad9
...
6ebb5dad9 Remove file
27cc23ef4 Hugo 0.84.4
94dccbfa4 Merge branch 'tempv0.84.4'
e9d8b61fb releaser: Add release notes to /docs for release of 0.84.4
51e472005 Improve readability of examples on shortcode templates page
0aef26479 Fix lookup order typos (#1484 )
534a527fe Fix two typos (#1483 )
394aabd5a Higo "0.84.3
03ee92c1c Merge branch 'tempv0.84.3'
96a8be0f1 releaser: Add release notes to /docs for release of 0.84.3
9a770323f Update index.md
7f65cfcbe Hugo 0.84.2
444422515 releaser: Add release notes to /docs for release of 0.84.2
a2f29c5d8 modules: Add module.import.noMounts config
e00e4a7e7 releaser: Add release notes to /docs for release of 0.84.2
af04b53b3 modules: Add module.import.noMounts config
f7d5669c7 Remove Appernetic (#1481 )
14f8d4029 Clarify interaction of sections and top-level leaf bundles
d140b6a62 Update lookup-order.md
399904959 Update shortcode-templates.md
e78aa4865 Hugo 0.84.1
35d7c1c22 Merge branch 'tempv0.84.1'
a6be65b0d releaser: Add release notes to /docs for release of 0.84.1
7b3b3ca45 Hugo 0.84.0 News Grammar fixes
cbc23bf5a Remove trailing newlines
69349198d Fix erroridf docs
dbc1157c1 Fix missing deep
git-subtree-dir: docs
git-subtree-split: 6ebb5dad9a
2021-07-04 16:34:26 +02:00
Bjørn Erik Pedersen
24ce98b6d1
Add polling as a fallback to native filesystem events in server watch
...
Fixes #8720
Fixes #6849
Fixes #7930
2021-07-04 16:12:28 +02:00
Bjørn Erik Pedersen
0019d60f67
deps: Bump github.com/yuin/goldmark v1.3.9
...
Closes #8727
2021-07-04 15:48:33 +02:00
Bjørn Erik Pedersen
e451b984cf
Fix panic when theme has permalinks config
...
Fixes #8724
2021-07-03 15:53:21 +02:00
hugoreleaser
b4d60b3db1
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-07-01 12:59:47 +00:00
hugoreleaser
020e4acee4
releaser: Add release notes to /docs for release of 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
hugoreleaser
4c34faf426
releaser: Bump versions for release of 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
hugoreleaser
a339f62664
releaser: Add release notes for 0.84.4
...
[ci skip]
2021-07-01 11:51:53 +00:00
Bjørn Erik Pedersen
4c8552b114
Fix Cloudflare vs Netlify cache dir issue
...
Re-add the additional environment checks to determine if its Netlify. Seems that Cloudflare also sets `NETLIFY=true`.
This makes it look, basically, like a variant of the conditional we had before we started fixing this, but I have checked this logic on Netlify now and it should work.
Fixes #8714
2021-06-30 12:58:43 +02:00
Joe Mooring
34e4742f0c
Fix date format in schema and opengraph templates
...
Fixes #8671
2021-06-29 20:20:38 +02:00
hugoreleaser
bffa2a2a98
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-29 12:27:15 +00:00
hugoreleaser
a1b0353ccb
releaser: Add release notes to /docs for release of 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
hugoreleaser
bc6f84c581
releaser: Bump versions for release of 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
hugoreleaser
80410257e3
releaser: Add release notes for 0.84.3
...
[ci skip]
2021-06-29 11:40:19 +00:00
Bjørn Erik Pedersen
6c8c0c8b6a
config: Fix Netlify default cache dir logic
...
Fixes #8710
2021-06-29 09:51:09 +02:00
Bjørn Erik Pedersen
49fedbc51c
config: Fix handling of invalid OS env config overrides
...
Fixes #8709
2021-06-29 09:38:05 +02:00
hugoreleaser
8290720107
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-28 11:41:38 +00:00
hugoreleaser
e0c67958f1
releaser: Add release notes to /docs for release of 0.84.2
...
[ci skip]
2021-06-28 10:59:18 +00:00
hugoreleaser
f6b9ce6ebd
releaser: Bump versions for release of 0.84.2
...
[ci skip]
2021-06-28 10:59:18 +00:00
hugoreleaser
4b03399b78
releaser: Add release notes for 0.84.2
...
[ci skip]
2021-06-28 10:59:18 +00:00
Bjørn Erik Pedersen
40dfdd0952
modules: Add module.import.noMounts config
...
Fixes #8708
2021-06-28 10:39:52 +02:00
Bjørn Erik Pedersen
3a6dc6d3f4
modules: Use value type for module.Time
...
Which is in line with how we do it elsewhere.
2021-06-27 18:06:52 +02:00
Bjørn Erik Pedersen
6cd2110ab2
commands: Add version time to "hugo config mounts"
2021-06-27 18:00:20 +02:00
Bjørn Erik Pedersen
6a365c2712
commands: Add some more info to "hugo config mounts"
...
* Add owner path and version.
* Also add thme meta info and Hugo version when run with -v flag
2021-06-27 16:08:28 +02:00
Bjørn Erik Pedersen
19aa95fc7f
Fix config handling with empty config entries after merge
...
Fixes #8701
2021-06-27 15:01:56 +02:00
Bjørn Erik Pedersen
923dd9d1c1
Fix config loading for "hugo mod init"
...
We have some commands that will continue even if the config loading fails (e.g. because a module can not be found). In Hugo 0.84.0 we introduced a new `_merge` flag that we removed once the configuration was loaded. But we did not do that in error situations, leading to failures in some situations.
This commit fixes that by making sure the configuration is always cleaned before return, even in error situations.
Fixes #8697
2021-06-27 12:03:43 +02:00
Bjørn Erik Pedersen
d9bdd37d35
deps: Update to Minify v2.9.18
...
Closes #8693
2021-06-26 17:15:55 +02:00
digitalcraftsman
b2eaf4c8c2
Remove credit from release notes
2021-06-25 21:14:11 +02:00
hugoreleaser
efb6ee6c1c
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-24 12:33:45 +00:00
hugoreleaser
4bd65e224f
releaser: Add release notes to /docs for release of 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
hugoreleaser
ff2266300a
releaser: Bump versions for release of 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
hugoreleaser
8677cfb04f
releaser: Add release notes for 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
Bjørn Erik Pedersen
093dacab29
Fix language menu config regression
...
Fixes #8672
2021-06-24 13:03:09 +02:00
Bjørn Erik Pedersen
4a9d408fe0
config: Fix merge of config with map[string]string values.
...
Fixes #8679
2021-06-22 21:38:28 +02:00
Bjørn Erik Pedersen
9312059888
releaser: Bump to Goreleaser v0.171.0
...
Closes #8665
2021-06-21 16:12:18 +02:00
Bjørn Erik Pedersen
a7e3da242f
markup: Rename Header(s) to Heading(s) in ToC struct
...
Because that is what it is.
2021-06-19 18:19:46 +02:00
Bjørn Erik Pedersen
b70a12ec45
Merge commit '4dd90050f154c91373329a5d7e348289c40be12f'
2021-06-18 17:50:27 +02:00
Bjørn Erik Pedersen
4dd90050f1
Squashed 'docs/' changes from 3a923e155..710856e5a
...
710856e5a Release 0.84.0
362f4ea7b releaser: Add release notes to /docs for release of 0.84.0
6bb8800f7 docs: Regenerate docs helper
00a522e6a docs: Regenerate docshelper
bc171954b Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
ef73ffc3b Misc config loading fixes
0b4117f7f docs: Regenerate docs helper
9b9452b9c Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
9c4413dd9 tpl/fmt: Add erroridf template func
e1875742e tpl/data: Misc header improvements, tests, allow multiple headers of same key
e4560893c Add math.Max and math.Min
7dc282eaf common/maps: Add Scratch.DeleteInMap
b9cd77171 docs: Update querify function description and examples
git-subtree-dir: docs
git-subtree-split: 710856e5a6
2021-06-18 17:49:54 +02:00
hugoreleaser
3d544c9ae4
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-18 15:36:43 +00:00
hugoreleaser
2c4689f7b8
releaser: Add release notes to /docs for release of 0.84.0
...
[ci skip]
2021-06-18 14:55:51 +00:00
hugoreleaser
9c0860f749
releaser: Bump versions for release of 0.84.0
...
[ci skip]
2021-06-18 14:55:51 +00:00
Bjørn Erik Pedersen
a1694b06af
releaser: Increase timeout
2021-06-18 16:44:12 +02:00
hugoreleaser
219ec38007
releaser: Add release notes for 0.84.0
2021-06-18 14:42:14 +02:00
Bjørn Erik Pedersen
be6b901cf7
docs: Regenerate docs helper
2021-06-18 13:21:10 +02:00
Bjørn Erik Pedersen
643b671931
output: Make WebAppManifestFormat NotAlternative=true
...
Updates #8624
2021-06-18 13:19:37 +02:00
Bjørn Erik Pedersen
ab4e1dfa4e
media: Adjust test assertion
...
Closes #8625
2021-06-18 13:15:00 +02:00
Rohan Kumar
02f31897b4
media: support application/manifest+json
...
The standard file extension for Web App Manifest files is
".webmanifest". This commit allows Hugo to recognize .webmanifest files
as "application/manifest+json" files and to minify them using its
JSON minifier.
The .webmanifest file extension is recommended in the w3c spec to
simplify media type registration:
https://www.w3.org/TR/appmanifest/#media-type-registration
Webhint docs are also relevant:
https://webhint.io/docs/user-guide/hints/hint-manifest-file-extension/
Closes #8624
2021-06-18 13:11:44 +02:00
Bjørn Erik Pedersen
402da3f8f3
docs: Regenerate docshelper
2021-06-18 12:58:07 +02:00
Bjørn Erik Pedersen
92405e5b0a
Squashed 'docs/' changes from 4c81c6c2a..3a923e155
...
3a923e155 Update configuration.md
git-subtree-dir: docs
git-subtree-split: 3a923e1550
2021-06-18 12:57:19 +02:00
Bjørn Erik Pedersen
a074f758b0
Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
2021-06-18 12:57:19 +02:00
Bjørn Erik Pedersen
bb2aa08709
Implement configuration in a directory for modules
...
Fixes #8654
2021-06-18 12:54:30 +02:00
Bjørn Erik Pedersen
9096842b04
tpl: Rename err-missing-instagram-accesstoken => error-missing-instagram-accesstoken
...
To get it in line with the other.
2021-06-18 12:27:37 +02:00
Bjørn Erik Pedersen
3aa7f0b27f
deps: Update github.com/alecthomas/chroma v0.9.1 => v0.9.2
...
Closes #8658
2021-06-18 12:14:52 +02:00
Bjørn Erik Pedersen
9b870aa788
deps: Run go mod tidy
2021-06-18 12:13:17 +02:00
Bjørn Erik Pedersen
93aad3c543
Split out the puthe path/filepath functions into common/paths
...
So they can be used from the config package without cyclic troubles.
Updates #8654
2021-06-18 10:55:00 +02:00
Bjørn Erik Pedersen
5af045ebab
resources/image: Fix fill with smartcrop sometimes returning 0 bytes images
...
Fixes #7955
2021-06-17 23:52:27 +02:00
Joe Mooring
8eafe0845d
deps: Update to Goldmark v1.3.8
...
Fixes #8648
2021-06-17 19:34:26 +02:00
Bjørn Erik Pedersen
31fb29fb3f
Do not read config from os.Environ when running tests
...
Fixes #8655
2021-06-16 18:58:40 +02:00
Bjørn Erik Pedersen
d392893cd7
Misc config loading fixes
...
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:
```
BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op
```
Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192
2021-06-14 17:00:32 +02:00
Bjørn Erik Pedersen
a886dd53b8
github: Set a dummy Instagram token
...
For now, need to debug why this fails.
2021-06-13 11:09:50 +02:00
Bjørn Erik Pedersen
a91cd7652f
docs: Regenerate docs helper
2021-06-08 18:52:38 +02:00
Bjørn Erik Pedersen
162f41d0ef
Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
2021-06-08 18:47:53 +02:00
Bjørn Erik Pedersen
32ba623541
Squashed 'docs/' changes from bcc4f9324..4c81c6c2a
...
4c81c6c2a live reload: add section about `--navigateToChanged`
271014257 Update netify hugo version to 0.83.1
14199cff1 Add pull_request event
0c33b05de Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457 )
e47b6c33a Hugo Modules plural typo (#1266 )
0f2bbacdd Add node_modules to .gitignore
1d645d79f Overhaul scratch.md (#1451 )
572766889 Add link to golang regex syntax, change modified date
21b0c7459 Add info about contentType config
de7d96fa2 Document Go template's multiline support
0c8f2dcb1 Avoid scratch usage
696fa92e1 Rename scratch var
44193f267 Update usage instructions
4230f8fa5 Rename and refactor shortcode
e9953751e Strip leading whitespaces
d61a58010 Add `insertpages` shortcode
04d30677d Mention WebP under 'Target Format' (#1431 )
946784508 Update lookup-order.md (#1443 )
a7b587988 Update index.md
27907f7ea netlify: Hugo 0.83.1
044d37e57 Merge branch 'tempv0.83.1'
b81aedb03 Fix page `.Kind`
fcf7775ad releaser: Add release notes to /docs for release of 0.83.1
9b39c77c8 fix typo in 0.83 release notes
1c38993ce Update index.md
45b8aefa6 Update index.md
43902dfaa Update index.md
3d959c7ae Merge branch 'tempv0.83.0'
6c22dc327 Fix URL
497ea3224 Use Hugo version badge shortcode
a182d10dd releaser: Add release notes to /docs for release of 0.83.0
287fd9ac0 docs: Fix shortcode
e789c879a docs: Regenerate docs helper
1666c7f31 docs: Regenerate CLI docs
117de1d12 Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
a6bf3f7d9 docs: Regen docs helper
git-subtree-dir: docs
git-subtree-split: 4c81c6c2ac
2021-06-08 18:46:58 +02:00
Bjørn Erik Pedersen
552cef5c57
Update to Go 1.16.5, Goreleaser 0.169.0
...
Fixes #8619
Fixes #8263
2021-06-08 18:46:35 +02:00
Joe Mooring
73483d0f9e
tpl: Add a terse pagination template variant to improve performance
...
These calls are equivalent:
{{ template "_internal/pagination.html" . }}
{{ template "_internal/pagination.html" (dict "page" .) }}
{{ template "_internal/pagination.html" (dict "page" . "format" "default") }}
To use an alternate format:
{{ template "_internal/pagination.html" (dict "page" . "format" "terse") }}
Fixes #8599
2021-06-08 10:41:21 +02:00
Bjørn Erik Pedersen
9b5debe4b8
Upgrade Instagram shortcode
...
Fixes #7879
2021-06-08 10:30:45 +02:00
Bjørn Erik Pedersen
12530519d8
Fix nested OS env config override when parent does not exist
...
Fixes #8618
2021-06-08 09:57:18 +02:00
Bjørn Erik Pedersen
f55d2f4376
tpl/fmt: Add erroridf template func
...
Fixes #8613
2021-06-07 19:11:03 +02:00
Bjørn Erik Pedersen
282f1aa3db
tpl/data: Print response body on HTTP errors
...
Which makes it easier to debug.
2021-06-07 12:06:27 +02:00
Bjørn Erik Pedersen
fcd63de3a5
tpl/data: Misc header improvements, tests, allow multiple headers of same key
...
Closes #5617
2021-06-06 13:32:12 +02:00
Paul Chamberlain
150d75738b
tpl/data: Allows user-defined HTTP headers with getJSON and getCSV
...
Updates #5617
2021-06-06 13:32:12 +02:00
Bjørn Erik Pedersen
06d295427f
hugofs: Set modTime at creation time
...
As `ModTime()` should return the same value on each invocation.
See #6161
2021-06-05 11:45:56 +02:00
Anthony Fok
26ae12c0c6
Fix invalid timestamp of the "public" folder
...
Special thanks to both Richard Mortimer (@oldelvet) and
Joshua M. Clulow (@jclulow) for their analysis and suggested fix:
* https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088
* https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273
Fixes #6161
2021-06-04 14:50:30 -06:00
卜木
ee733085b7
config: Fix env split to allow = character in values
...
Fixes #8589
2021-05-30 20:25:37 +02:00
Joe Mooring
01758f99b9
Add math.Max and math.Min
...
Closes #8583
2021-05-28 20:38:45 +02:00
satotake
845a7ba4fc
Catch incomplete shortcode error
...
Currently, no name shortcodes (`{{< >}}`) enter unexpected branch and
throw `BUG: template info not set`. This patch checks if shortcode has
name or not earlier and throws specific error.
Closes #6866
2021-05-24 14:59:02 +02:00
Joe Mooring
10f60de89a
Use SPDX license identifier
...
See <https://spdx.org/licenses/ >
Fixes #8555
2021-05-24 11:54:46 +02:00
satotake
785a31b5b8
navigation: Cache and copy Menu for sorting
...
.Site.Menus is mutated when it is sorted for now and this causes concurrency problem (#7594 )
In this patch, each related sort function copies Menu before sorting to prevent
race condition.
Pages already have such a sort and cache logic and this patch is identical to it.
Closes #7594
2021-05-23 10:42:01 +02:00
Bjørn Erik Pedersen
bc1e05286a
deps: Update to LibSASS 3.6.5
...
See https://github.com/sass/libsass/releases/tag/3.6.5
2021-05-23 10:33:56 +02:00
Bjørn Erik Pedersen
f518b4f71e
publisher: Make the HTML element collector more robust
...
Fixes #8530
2021-05-19 20:43:49 +02:00
Bjørn Erik Pedersen
dc6b7a75ff
Revert "publisher: Make the HTML element collector more robust"
...
This reverts commit ef0f1a7269 .
2021-05-19 03:45:36 +02:00
Bjørn Erik Pedersen
3f515f0e33
Revert "publisher: Get the collector in line with the io.Writer interface"
...
This reverts commit a9bcd38181 .
2021-05-19 03:45:30 +02:00
Bjørn Erik Pedersen
a9bcd38181
publisher: Get the collector in line with the io.Writer interface
...
As in: Do not retain the input slice.
2021-05-17 19:39:40 +02:00
Bjørn Erik Pedersen
ef0f1a7269
publisher: Make the HTML element collector more robust
...
Fixes #8530
2021-05-17 17:15:32 +02:00
meehawk
abbc99d4c6
common/maps: Add Scratch.DeleteInMap
...
Add Scratch.DeleteInMap method. This method works similar to Scratch.SetInMap. It takes in two string parameters, key and mapKey and deletes the value mapped to mapKey in key
Closes #8504
2021-05-17 15:45:33 +02:00
Joe Mooring
76c95f55a5
Display version when building site ( #8533 )
...
Closes #8531
2021-05-14 16:45:13 +02:00
Joe Mooring
2c7f5b62f6
docs: Update querify function description and examples
...
The querify function now accepts a slice per #8305 .
2021-05-10 17:18:37 +02:00
Ujjwal Goyal
c46fc838a9
tpl: Allow 'Querify' to take lone slice/interface argument
...
Querify can now take a lone string/interface slice (with string
keys) as a parameter, or multiple string parameters, to build
URL queries.
Querify earlier used 'Dictionary' to add key/value pairs to a
map to build URL queries. Changed to dynamically generate ordered
key/value pairs. Cannot take string slice as key (earlier
possible due to Dictionary).
Added tests and benchmarks for querify.
Closes #6735
2021-05-09 13:14:14 +02:00
Shohei Ueda
504c78da4b
modules/npm: Change SetEscapeHTML to false
...
Closes #8512
2021-05-09 00:20:28 +02:00
Bjørn Erik Pedersen
b660ea8d54
Add a benchmark
2021-05-04 17:59:04 +02:00
Bjørn Erik Pedersen
64f88f3011
readme: Update dependency list
2021-05-03 15:55:28 +02:00
Julien Midedji
7a2c10ae60
tpl: Fix countwords to handle special chars
...
Fixes #8479
2021-05-03 09:10:06 +02:00
hugoreleaser
e1c328df25
releaser: Prepare repository for 0.84.0-DEV
...
[ci skip]
2021-05-02 15:28:40 +00:00
hugoreleaser
5afe0a57d0
releaser: Add release notes to /docs for release of 0.83.1
...
[ci skip]
2021-05-02 14:38:02 +00:00
hugoreleaser
8900e33918
releaser: Bump versions for release of 0.83.1
...
[ci skip]
2021-05-02 14:38:02 +00:00
hugoreleaser
9753e1b9c5
releaser: Add release notes for 0.83.1
...
[ci skip]
2021-05-02 14:38:02 +00:00
Bjørn Erik Pedersen
ececd1b122
langs/i18n: Fix warning regression in i18n
...
Fix this by
1. Making sure that only numerical values are treated as plural counts
2. Making sure that `i18n.pluralFormNotFoundError` is not logged as a warning if `other` resolved.
Note that 2. isn't a new problem, but became visible because of the plural improvements in Hugo `0.83.0`.
Fixes #8492
2021-05-02 16:27:22 +02:00
hugoreleaser
b0ca723eb2
releaser: Prepare repository for 0.84.0-DEV
...
[ci skip]
2021-05-01 12:56:59 +00:00
hugoreleaser
4c65ceccc7
releaser: Add release notes to /docs for release of 0.83.0
...
[ci skip]
2021-05-01 12:10:05 +00:00
hugoreleaser
57a471a0db
releaser: Bump versions for release of 0.83.0
...
[ci skip]
2021-05-01 12:10:05 +00:00
Bjørn Erik Pedersen
9b63af55bd
Update 0.83.0-relnotes.md
2021-05-01 13:53:25 +02:00
Bjørn Erik Pedersen
23fc65832c
docs: Fix shortcode
2021-05-01 13:01:23 +02:00
hugoreleaser
e7b5e36e04
releaser: Add release notes for 0.83.0
...
Rename to *-ready.md to continue.
[ci skip]
2021-05-01 10:23:21 +00:00
Bjørn Erik Pedersen
a9b52b4175
docs: Regenerate docs helper
2021-05-01 12:06:24 +02:00
Bjørn Erik Pedersen
b073a1c972
docs: Regenerate CLI docs
2021-05-01 12:05:31 +02:00
Bjørn Erik Pedersen
4227cc1bd3
commands: Remove all dates from gendoc
...
It creates lots of diffs even if there are no changes.
2021-05-01 12:03:56 +02:00
Bjørn Erik Pedersen
c239c643fe
Squashed 'docs/' changes from fb551cc75..bcc4f9324
...
bcc4f9324 Add transparent background in rgba for search field
fce835fea Trim newlines from .Inner in the 'code' shortcode
9117f54b3 Remove code toggle from netlify.toml
babbb9090 fix version number - 404 error
d28cf15e1 The input search is not displayed correctly in Safari because of the one declaration CSS background property. Safari needs the no-repeat to be after position and size property. Adjusting the search icon to be vertically on center.
f4ef4c146 Repairing link from issue 131 using jamesrhea's comment https://github.com/gohugoio/hugoDocs/issues/131#issuecomment-324083739
7f73f5685 Update related.md (#1436 )
41d24297c Mention `not` (#1432 )
git-subtree-dir: docs
git-subtree-split: bcc4f93242
2021-05-01 11:45:45 +02:00
Bjørn Erik Pedersen
d7b22aee46
Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
2021-05-01 11:45:45 +02:00
Bjørn Erik Pedersen
3cc4fdd6f3
deps: Update getkin/kin-openapi v0.60.0 => v0.61.
2021-04-30 14:27:21 +02:00
Bjørn Erik Pedersen
7eb80a9e6f
langs/i18n: Fix multiple unknown language codes
...
This fixes a bug upstream by temporarily using a patched version of go-i18n.
Closes #7838
2021-04-30 14:26:49 +02:00
Bjørn Erik Pedersen
78c1a6a7c6
deps: Update github.com/evanw/esbuild v0.11.14 => v0.11.16
2021-04-30 12:43:39 +02:00
Joe Mooring
f6745ad358
Remove .Site.Authors from embedded templates
...
Closes #4458
2021-04-29 17:07:05 +02:00
Robert van Gent
f523e9f0fd
deploy: Don't treat a NotFound response for Delete as a fatal error.
2021-04-29 07:07:01 +02:00
Anthony Fok
63cd05ce5a
snap: Switch to deb packages of nodejs and python3-pygments
...
node/14/stable snap package is not available on ppc64el and s390x.
nodejs deb package currently at 10.19.0~dfsg-3ubuntu1
in Ubuntu 20.04 LTS (base: core20)
2021-04-27 09:04:24 -06:00
Anthony Fok
902535ef11
snapcraft.yaml: Install bin/node from node/14/stable
...
Resolves regression introduced in my previous commit 243951e .
Special thanks to @jmooring for reporting the issue!
TODO: Strip the bin/node binary?
2021-04-26 10:17:44 -06:00
dependabot[bot]
70aebba04d
build(deps): bump github.com/getkin/kin-openapi from 0.55.0 to 0.60.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.55.0 to 0.60.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.55.0...v0.60.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-26 10:56:48 +02:00
dependabot[bot]
3e3b7d4474
build(deps): bump github.com/evanw/esbuild from 0.11.13 to 0.11.14
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.11.13 to 0.11.14.
- [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.11.13...v0.11.14 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-26 10:56:03 +02:00
Bjørn Erik Pedersen
c13d368746
resources/page: Fix permalinks pattern detection for some of the sections variants
...
See #8363
2021-04-25 16:57:09 +02:00
Carlos Alexandro Becker
048418ba74
deps: Update to Chroma v0.9.1
2021-04-25 11:14:25 +02:00
Bjørn Erik Pedersen
eebde0c2ac
langs/i18n: Improve plural handling of floats
...
The go-i18n library expects plural counts with floats to be represented as strings.
Fixes #8464
2021-04-25 11:12:30 +02:00
Bjørn Erik Pedersen
e4dc9a82b5
tpl/collections: Fix where on type mismatches
...
Fixes #8353
2021-04-23 18:06:49 +02:00
Bjørn Erik Pedersen
0d86a32d8f
Make the shortcode template lookup for output formats stable
...
Fixes #7774
2021-04-23 15:04:35 +02:00
dependabot[bot]
65c502cc81
build(deps): bump github.com/evanw/esbuild from 0.11.12 to 0.11.13
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.11.12 to 0.11.13.
- [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.11.12...v0.11.13 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-23 09:03:16 +02:00
Bjørn Erik Pedersen
537c905ec1
langs/i18n: Revise the plural implementation
...
There were some issues introduced with the plural counting when we upgraded from v1 to v2 of go-i18n.
This commit improves that situation given the following rules:
* A single integer argument is used as plural count and passed to the i18n template as a int type with a `.Count` method. The latter is to preserve compability with v1.
* Else the plural count is either fetched from the `Count`/`count` field/method/map or from the value itself.
* Any data type is accepted, if it can be converted to an integer, that value is used.
The above means that you can now do pass a single integer and both of the below will work:
```
{{ . }} minutes to read
{{ .Count }} minutes to read
```
Fixes #8454
Closes #7822
See https://github.com/gohugoio/hugoDocs/issues/1410
2021-04-23 07:39:59 +02:00
Anthony Fok
243951ebe9
snapcraft.yaml: Update to "base: core20"
...
That is, switch to using Ubuntu 20.04 LTS as base,
leveraging new features in Snapcraft 4.x, etc.
It is far from complete, with npm temporarily disabled (hence no PostCSS)
and with Pandoc probably not working yet, but would hopefully get our
Hugo Snap build, which stopped working shortly after v0.80.0, working again.
2021-04-22 09:57:40 -06:00
dependabot[bot]
fe2ee02802
build(deps): bump github.com/frankban/quicktest from 1.11.3 to 1.12.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.11.3 to 1.12.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.11.3...v1.12.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-22 15:24:15 +02:00
dependabot[bot]
316d65cd70
build(deps): bump google.golang.org/api from 0.44.0 to 0.45.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.44.0...v0.45.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-22 13:43:11 +02:00
dependabot[bot]
b95229ab49
build(deps): bump github.com/aws/aws-sdk-go from 1.37.11 to 1.38.23
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.37.11 to 1.38.23.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.37.11...v1.38.23 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-22 13:42:15 +02:00
Santiago De la Cruz
0551df090e
Correct function name in comment
...
IsInt to IsNumber
2021-04-22 12:24:12 +02:00
Bjørn Erik Pedersen
bca40cf0c9
Fix Params case handling in where with slices of structs (e.g. Pages)
...
Fixes #7009
2021-04-21 19:28:18 +02:00
Bjørn Erik Pedersen
057e5a22af
deps: Upgraded github.com/evanw/esbuild v0.11.0 => v0.11.12
2021-04-21 13:07:16 +02:00
Bjørn Erik Pedersen
fd96f65a3d
docs: Regen docs helper
2021-04-20 20:23:36 +02:00
Bjørn Erik Pedersen
8f7891e70c
Merge commit '07b8d9466dfb59c429c1b470a0443337bc0aeefe'
2021-04-20 20:22:53 +02:00
Bjørn Erik Pedersen
07b8d9466d
Squashed 'docs/' changes from 9cece6640..fb551cc75
...
fb551cc75 Update index.md
7af894857 Update index.md
d235753ea Hugo 0.82.1
e03e72deb Merge branch 'temp0821'
e62648961 Merge branch 'release-0.82.1'
e1ab0f6eb releaser: Add release notes to /docs for release of 0.82.1
5d354c38d Replaced ``` code blocks with Code Toggler
c9d065c20 Remove duplicate YAML keys (#1420 )
8ae31e701 Add webp image encoding support
848f2af26 Update internal.md (#1407 )
c103a86a4 Fix `ref` shortcode example output (#1409 )
9f8ba56dc Remove leading dot from where function KEY (#1419 )
363251a51 Improve presentation of template lookup order (#1382 )
b73da986d Improve description of Page Resources (#1381 )
4e0bb96d5 Rework robots.txt page (#1405 )
edf893e6f Update migrations.md (#1412 )
450f1580b Add link to `site` function doc (#1417 )
cfffa6e6f Added one extension to the list (#1414 )
05f1665a0 Update theme
5de0b1c6a Update theme
250e20552 Add hugo.IsExtended
dea5e1fd7 Fix typo on merge function page (#1408 )
1bbed2cf3 Update configuration.md
be0b64a46 Omit ISO
cbb5b8367 Fix `dateFormat` documentation
698f15466 Regenerate the docshelper
f9a8a7cb6 Update multilingual.md
a22dc6267 Fix grammar (#1398 )
eb98b0997 Fix pretty URL example (#1397 )
f4c4153dc Mention date var complementation in post scheduling (#1396 )
17fae284c Fix resources.ExecuteAsTemplate argument order (#1394 )
97e2c2abb Use code-toggle shortcode in `multilingual.md` (#1388 )
3a84929bb Harmonize capitalization (#1393 )
17f15daa6 fix file naming used in example (#1392 )
5d97b6a18 Add slice syntax to sections permalinks config
00665b97b Improve description of `site.md`
edcf5e3fc Fix example in `merge.md`
f275ab778 Update postprocess.md
9593e3991 Fix file name
59bd9656f Update postprocess.md
1172fb6d0 Update to theNewDynamic repository (#1263 )
f5b5c1d2c Update Hugo container image
4f2e92f2a Adapt anchorize.md to Goldmark
98aa19073 Directly link to `highlight` shortcode (#1384 )
4c75c2422 Fix header level
f15c06f23 markdownify: add note about render-hooks and .RenderString (#1281 )
69c82eb68 Remove Blackfriday reference from shortcode desc (#1380 )
36de478df Update description of ignoreFiles config setting (#1377 )
6337699d8 Remove "Authors" page from documentation (#1371 )
35e73ca90 fix indent in example (#1372 )
d3f01f19a Remove opening body tag from header example (#1376 )
341a5a7d8 Update index.md
c9bfdbee6 Release 0.82.0
119644949 releaser: Add release notes to /docs for release of 0.82.0
32efaed78 docs: Regenerate docs helper
dea5449a2 docs: Regen CLI docs
eeab18fce Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
d508a1259 Attributes for code fences should be placed after the lang indicator only
c80905cef deps: Update to esbuild v0.9.0
95350eb79 Add support for Google Analytics v4
02d36f9bc Allow markdown attribute lists to be used in title render hooks
7df220a64 Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
d80bf61b7 Fixes #7698 .
git-subtree-dir: docs
git-subtree-split: fb551cc750
2021-04-20 20:21:45 +02:00
dependabot[bot]
d3a64708f4
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.15 to 2.9.16.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.15...v2.9.16 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-20 19:19:07 +02:00
dependabot[bot]
3b56244f42
build(deps): bump golang.org/x/text from 0.3.5 to 0.3.6
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.5...v0.3.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-20 18:06:30 +02:00
Bjørn Erik Pedersen
f5d3d635e6
publisher: Remove some unreachable code
2021-04-20 17:47:09 +02:00
dependabot[bot]
0d3c42da56
build(deps): bump github.com/getkin/kin-openapi from 0.39.0 to 0.55.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.39.0 to 0.55.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.39.0...v0.55.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-20 17:34:05 +02:00
Bjørn Erik Pedersen
ef34dd8f0e
publisher: Some performance tweaks for the HTML elements collector
2021-04-20 17:24:17 +02:00
Dirk Olbrich
bc80022e03
publisher: Exclude comment and doctype elements from writeStats
...
- Reorder code blocks
- Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information
- Expand benchmark to test for minified and unminified content
Fixes #8396
Fixes #8417
2021-04-20 17:24:17 +02:00
Bjørn Erik Pedersen
2bb9496ce2
Merge branch 'release-0.82.1'
2021-04-20 13:48:04 +02:00
hugoreleaser
fda3c4d1ed
releaser: Prepare repository for 0.83.0-DEV
...
[ci skip]
2021-04-20 11:44:34 +00:00
hugoreleaser
60618210b8
releaser: Add release notes to /docs for release of 0.82.1
...
[ci skip]
2021-04-20 11:02:48 +00:00
hugoreleaser
f8b064f3c0
releaser: Bump versions for release of 0.82.1
...
[ci skip]
2021-04-20 11:02:48 +00:00
hugoreleaser
4713e509b6
releaser: Add release notes for 0.82.1
...
[ci skip]
2021-04-20 11:02:48 +00:00
Bjørn Erik Pedersen
6e9d2bf0c9
Regression in media type suffix lookup
...
Introduced in Hugo 0.82.0.
Fixes #8406
2021-04-20 12:52:30 +02:00
Bjørn Erik Pedersen
e73f7a770d
Regression in media type suffix lookup
...
Introduced in Hugo 0.82.0.
Fixes #8406
2021-04-20 12:51:11 +02:00
Joe Mooring
3ddffd064d
build(deps): bump github.com/yuin/goldmark from 1.3.2 to 1.3.5
...
Updated test per <https://github.com/yuin/goldmark/pull/205 >.
Fixes #8377
2021-04-16 09:12:28 +02:00
Joe Mooring
6fc52d185a
Remove duplicate references from release notes
...
Closes #8360
2021-04-15 21:15:20 +02:00
dependabot[bot]
73c3ae818a
build(deps): bump github.com/spf13/afero from 1.5.1 to 1.6.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.5.1...v1.6.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-15 21:08:33 +02:00
dependabot[bot]
7ca118fdfd
build(deps): bump github.com/pelletier/go-toml from 1.8.1 to 1.9.0
...
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v1.8.1...v1.9.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-15 21:05:43 +02:00
Bjørn Erik Pedersen
33d5f80592
Add webp image encoding support
...
Fixes #5924
2021-04-15 17:22:55 +02:00
dependabot[bot]
509d39fa6d
build(deps): bump google.golang.org/api from 0.40.0 to 0.44.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.40.0 to 0.44.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.40.0...v0.44.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-15 16:13:49 +02:00
dependabot[bot]
7725c41d40
build(deps): bump github.com/nicksnyder/go-i18n/v2 from 2.1.1 to 2.1.2
...
Bumps [github.com/nicksnyder/go-i18n/v2](https://github.com/nicksnyder/go-i18n ) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/nicksnyder/go-i18n/releases )
- [Changelog](https://github.com/nicksnyder/go-i18n/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nicksnyder/go-i18n/compare/v2.1.1...v2.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-15 16:13:26 +02:00
dependabot[bot]
5d36d80153
build(deps): bump github.com/rogpeppe/go-internal from 1.6.2 to 1.8.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.6.2 to 1.8.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.6.2...v1.8.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-15 14:44:37 +02:00
Joe Mooring
9b34d42bb2
Remove extraneous space from figure shortcode
...
Fixes #8401
2021-04-15 14:43:32 +02:00
dependabot[bot]
c2d8f87cfc
build(deps): bump github.com/magefile/mage from 1.10.0 to 1.11.0
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/magefile/mage/releases )
- [Changelog](https://github.com/magefile/mage/blob/master/.goreleaser.yml )
- [Commits](https://github.com/magefile/mage/compare/v1.10.0...v1.11.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-14 11:55:38 +02:00
dependabot[bot]
cbc246616e
build(deps): bump github.com/google/go-cmp from 0.5.4 to 0.5.5
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.4...v0.5.5 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-14 11:55:18 +02:00
Niklas Fasching
fa432b17b3
org: Disable broken pretty relative links feature
...
go-org PrettyRelativeLinks rewrites relative org links by
- adding `../` in front
- removing any `.org` suffix
This was meant to play well with hugo pretty urls (which pretty much renders
posts in a subdirectory without the file suffix) and allow use of normal org
file links to reference other posts.
There's a lot of edge cases I didn't consider and multiple bug reports in
go-org [1] later I don't think the complexity of handling those edge cases is
worth it - so let's disable it.
[1]
- https://github.com/niklasfasching/go-org/issues/53
- https://github.com/niklasfasching/go-org/commit/5dadf8c4c2924cbb3b93be45f96e1147596ca6f2 (comment)
- https://github.com/niklasfasching/go-org/issues/51
2021-04-12 08:08:53 +02:00
Niklas Fasching
0cd55c66d3
deps: Update go-org to v1.5.0
2021-04-12 08:08:53 +02:00
dependabot[bot]
0d5cf256e4
build(deps): bump github.com/jdkato/prose from 1.2.0 to 1.2.1
...
Bumps [github.com/jdkato/prose](https://github.com/jdkato/prose ) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/jdkato/prose/releases )
- [Commits](https://github.com/jdkato/prose/compare/v1.2.0...v1.2.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-11 13:54:16 +02:00
dependabot[bot]
36527576b3
build(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.3
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-11 13:53:45 +02:00
Bjørn Erik Pedersen
9b83f45b6d
Add complete dependency list in "hugo env -v"
...
Fixes #8400
2021-04-09 08:07:22 +02:00
Bjørn Erik Pedersen
7fdd2b95e2
Add hugo.IsExtended
...
Fixes #8399
2021-04-09 07:28:27 +02:00
Bjørn Erik Pedersen
3d5dbdcb1a
publisher: Also test minified HTML in the element collector
...
Updates #7567
2021-04-07 16:40:15 +02:00
Bjørn Erik Pedersen
8a308944e4
publisher: Skip script, pre and textarea content when looking for HTML elements
...
Updates #7567
2021-04-07 00:26:02 +02:00
Bjørn Erik Pedersen
7b4ade56dd
output: Only output mediaType once in docshelper JSON
...
Fixes #8379
2021-04-01 19:05:33 +02:00
Joe Mooring
7c7974b711
Fix typo in docshelper.go
...
Fixes #8380
2021-04-01 18:44:39 +02:00
Bjørn Erik Pedersen
5656a908d8
tpl: Remove the FuzzMarkdownify func for now
...
It has gotten us nothing but "build fails" mail and work we don't have time to follow up on.
2021-03-30 20:57:31 +02:00
Bjørn Erik Pedersen
2dc222cec4
Add slice syntax to sections permalinks config
...
Fixes #8363
2021-03-30 07:55:24 +02:00
Bjørn Erik Pedersen
4d22ad580e
deps: Upgrade github.com/evanw/esbuild v0.9.6 => v0.11.0
2021-03-29 12:00:47 +02:00
Bjørn Erik Pedersen
5e2f128911
Try to fix the fuzz build
2021-03-28 21:42:44 +02:00
hugoreleaser
97934779ed
releaser: Prepare repository for 0.83.0-DEV
...
[ci skip]
2021-03-21 18:12:42 +00:00
hugoreleaser
9d96078439
releaser: Add release notes to /docs for release of 0.82.0
...
[ci skip]
2021-03-21 17:28:02 +00:00
hugoreleaser
1efd93c097
releaser: Bump versions for release of 0.82.0
...
[ci skip]
2021-03-21 17:28:02 +00:00
hugoreleaser
584a9b3e2e
releaser: Add release notes for 0.82.0
2021-03-21 18:16:55 +01:00
Bjørn Erik Pedersen
86b4fd35e7
docs: Regenerate docs helper
2021-03-21 13:33:26 +01:00
Bjørn Erik Pedersen
195d108da7
docs: Regen CLI docs
2021-03-21 13:32:12 +01:00
Bjørn Erik Pedersen
81689af799
Squashed 'docs/' changes from bb15e9804..9cece6640
...
9cece6640 Function sort: fix example labels (#1344 )
84444120f Revert "Fix sample data for sort function (#1363 )" (#1364 )
05c8619f4 Fix sample data for sort function (#1363 )
2beb1c0ed Fix "Configure taxonomies" title (#1361 )
cd777b9fb Fix sitemap configuration link (#1360 )
52251fb42 Update the 'Customize Dates' example to not error (#1357 )
1a14cc08a Update quick-start.md
17bb98a94 Add note about image metadata removal
ec4f7bfff Update 404.md
cebfb7a90 explaination that `weight` key is used for sorting
83190ff12 fix typo: "advance settings" → "advanced settings"
75743968c Update quick-start.md
f1c64cd5a Improved documentation.
8af3b236c Update theme
git-subtree-dir: docs
git-subtree-split: 9cece66400
2021-03-21 13:31:17 +01:00
Bjørn Erik Pedersen
c94aa5cf46
Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
2021-03-21 13:31:17 +01:00
Bjørn Erik Pedersen
df8bb8812f
Simplify some config loading code
2021-03-21 13:29:11 +01:00
Bjørn Erik Pedersen
57d8d208ed
deps: Update github.com/evanw/esbuild v0.9.0 => v0.9.6
2021-03-21 11:24:43 +01:00
Bjørn Erik Pedersen
fc06e85082
Apply OS env overrides twice
...
The recent fix for #8346 had an unfortunate side-effect, as it prevented overrides of config options used in the module collector, e.g. `HUGO_MODULE_REPLACEMENTS`.
This commit fixes that by applying the overrides twice.
2021-03-21 10:54:30 +01:00
Bjørn Erik Pedersen
b725253f9e
Attributes for code fences should be placed after the lang indicator only
...
Fixes #8313
2021-03-20 19:15:11 +01:00
Bjørn Erik Pedersen
35dedf15c0
deps: Bump github.com/tdewolff/minify/v2 v2.9.15
...
Fixes #8332
2021-03-20 15:51:20 +01:00
Bjørn Erik Pedersen
7ed56c6941
Fix OS env override for nested config param only available in theme
...
Fixes #8346
2021-03-20 13:34:51 +01:00
Avinash Sonawane
24c716cac3
Fix new theme command description
...
`hugo new theme foo` creates theme `foo` in `./themes` and not in current directory.
2021-03-14 18:47:23 +01:00
Patrick Kollitsch
137d2dab32
github: More explicit support link to discourse
2021-03-14 18:27:15 +01:00
Bjørn Erik Pedersen
ba1d0051b4
media: Make Type comparable
...
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
2021-03-14 15:21:54 +01:00
Bjørn Erik Pedersen
1b1dcf586e
deps: Update to esbuild v0.9.0
2021-03-14 11:51:25 +01:00
Cameron Moore
f6612d8bd8
exif: Fix handling of utf8 runes in nullString()
2021-03-13 21:20:10 +01:00
Cameron Moore
0a2ab3f8fe
exif: Allow more spacing characters in strings
...
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
2021-03-13 21:20:10 +01:00
Bjørn Erik Pedersen
4d24e2a326
media: Add a basic benchmark
2021-03-11 10:08:51 +01:00
Bjørn Erik Pedersen
18074d0c23
Fix output format handling for render hooks
...
Fixes #8176
2021-03-09 13:26:39 +01:00
Bjørn Erik Pedersen
35bfb66222
Rename a test
2021-03-04 13:46:31 +01:00
Bjørn Erik Pedersen
6d21559fb5
Add a debug helper
2021-03-03 20:16:58 +01:00
Daniel Atwood
ba16a14c6e
Add support for Google Analytics v4
2021-03-03 13:30:06 +01:00
Bjørn Erik Pedersen
782c79ae61
Bump go.mod to Go 1.16
...
Fixes #8294
2021-03-03 09:17:57 +01:00
Systemkern
5afcae7e0b
#8210 Upgrade golang version for Dockerfile
...
https://github.com/gohugoio/hugo/issues/8210
relates to: #8210
2021-02-28 14:14:06 +01:00
Bjørn Erik Pedersen
60469f429e
Update CONTRIBUTING.md
2021-02-25 11:50:08 +01:00
Bjørn Erik Pedersen
aed7df62a8
markup: Handle attribute lists in code fences
...
Fixes #8278
2021-02-24 11:16:06 +01:00
Bjørn Erik Pedersen
cd0c5d7ef3
Allow markdown attribute lists to be used in title render hooks
...
Fixes #8270
2021-02-23 18:08:39 +01:00
Bjørn Erik Pedersen
e7e194435b
Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
2021-02-23 17:41:05 +01:00
Bjørn Erik Pedersen
9d31f650da
Squashed 'docs/' changes from d343ebf71..bb15e9804
...
bb15e9804 Update index.md (#1339 )
ffb2f21d1 Update index.md
fc154ac02 Regenerate CLI docs
a0a687738 Update index.md
d0e35a844 Update index.md
86d0cc042 Update index.md
bdaf7e022 Release 0.81.0
b51017445 releaser: Add release notes to /docs for release of 0.81.0
888dd8fcc docs: Regen CLI docs
8c3e8b270 docs: Regen docs helper
79e3e1ebc Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
31f70af7e modules: Add config option modules.vendorClosest
2631df94e markup/goldmark: Add attributes support for blocks (tables etc.)
19dee04ad Update to Dart Sass Protocol beta6
e507721fe Refactor: Write to stdout by default
d204bf160 Refactor: Remove powershell support
91bea48f5 Feat: Add zsh, fish and powershell completion support
9c915ea27 docs: Remove mention of a file size limit for readFile
5acc8b6c7 js: Add Inject config option
45321989e js: Add Shims option
git-subtree-dir: docs
git-subtree-split: bb15e9804a
2021-02-23 17:39:59 +01:00
dependabot[bot]
88a85dcea9
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.7 to 2.2.8
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.7...v2.2.8 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-23 10:55:29 +01:00
Bjørn Erik Pedersen
7f8530039a
tpl: Add method mappings for strings.Contains, strings.ContainsAny
...
Just to confirm/document the function signature.
2021-02-23 09:36:43 +01:00
gzagatti
01dd7c16af
Fixes #7698 .
...
markup: Allow installed arbitrary Asciidoc extension via path validation.
2021-02-22 13:52:04 +01:00
Bjørn Erik Pedersen
c8f45d1d86
commands: Fix autocomplete docs
2021-02-20 14:08:51 +01:00
hugoreleaser
b3504a0ee8
releaser: Prepare repository for 0.82.0-DEV
...
[ci skip]
2021-02-19 17:55:53 +00:00
hugoreleaser
59d15c97d8
releaser: Add release notes to /docs for release of 0.81.0
...
[ci skip]
2021-02-19 17:07:09 +00:00
hugoreleaser
9e2d086ca7
releaser: Bump versions for release of 0.81.0
...
[ci skip]
2021-02-19 17:07:09 +00:00
Bjørn Erik Pedersen
b65518ac63
releaser: Increase build timeout
2021-02-19 17:57:24 +01:00
hugoreleaser
0e9cd8128d
releaser: Add release notes for 0.81.0
2021-02-19 16:52:22 +01:00
Bjørn Erik Pedersen
fe77f7434b
tpl: Make the build green again
2021-02-18 18:17:43 +01:00
Bjørn Erik Pedersen
9e99950c6e
docs: Regen CLI docs
2021-02-18 17:55:38 +01:00
Bjørn Erik Pedersen
1b364b003f
docs: Regen docs helper
2021-02-18 17:54:25 +01:00
Bjørn Erik Pedersen
acb9109df7
Squashed 'docs/' changes from ef9c4913c..d343ebf71
...
d343ebf71 Document ignoreImports
f912ea1cc Fix the github workflow (#1332 )
617894052 Add site function
f3be651f9 Minor typo/markdown fixes (#1328 )
7a95e9db5 Fix a formatting error for Github Actions (#1323 )
260106669 Fix #1120 Use Github Action
d8847a144 docs: Fix HTML code in .RenderString description being stripped out (#1320 )
7a67c38c4 Correct sitemap version (#1318 )
6a163f53a Removed noise. (#1317 )
b02902121 Fix a minor typo (#1314 )
399c74acd Revert "js: Update shims setup"
77def8a8c Revert "Update js.md"
13aeb2c73 Update js.md
704987dc1 js: Update shims setup
git-subtree-dir: docs
git-subtree-split: d343ebf718
2021-02-18 17:52:49 +01:00
Bjørn Erik Pedersen
7d0a261981
Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
2021-02-18 17:52:49 +01:00
Bjørn Erik Pedersen
c60806550a
tpl: Regenerate internal templates
2021-02-18 17:52:32 +01:00
Daniel Atwood
ffd9dac421
tpl: Update date logic of opengraph and schema internal templates
...
* Fix: updated date logic in opengraph template
* Updated date logic in schema template
* Reformatted opengraph and schema
* Wrapped PublishDate and Lastmod in with
2021-02-18 17:51:32 +01:00
Bjørn Erik Pedersen
88b93a09dc
Run go mod tidy
2021-02-18 14:22:25 +01:00
Bjørn Erik Pedersen
29fb456c9e
build: Add arm64 to Darwinextended build and add vendorInfo
...
Closes #8003
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
718fba7d63
Update Travis, GitHub, CircleCI and Snap to Go 1.16 (only)
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
9650e56841
tpl: Add temporary patch to fix template data race
...
Keep this as a separate commit so we can reapply it if needed.
Fixes #7293
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
e77b2e3aa0
Pull in latest Go 1.16 template source
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
b5485aeae7
Add breaking tests for "map read and map write in templates"
...
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.
Updates #7293
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
ccb822eb5a
Pull in latest Go template source
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
21e9eb18ac
Expand template newline testcase to commands
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
ae57ba6a9d
Add a test case for Go 1.16 template action newlines
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
cf3e077da3
tpl/internal: Synch Go templates fork with Go 1.16dev
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
66beac99c6
deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13
...
Fixes #8258
2021-02-18 10:19:22 +01:00
dependabot[bot]
968dd7a711
build(deps): bump github.com/frankban/quicktest from 1.11.2 to 1.11.3
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.11.2...v1.11.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 22:10:33 +01:00
dependabot[bot]
38f29e817f
build(deps): bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.32.0 to 0.39.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.32.0...v0.39.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 21:18:35 +01:00
dependabot[bot]
cd87813aa0
build(deps): bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.36.33 to 1.37.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.36.33...v1.37.11 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 18:43:30 +01:00
dependabot[bot]
4e815b063e
build(deps): bump github.com/sanity-io/litter from 1.3.0 to 1.5.0
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.3.0 to 1.5.0.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.3.0...v1.5.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 18:42:55 +01:00
dependabot[bot]
652a59d385
build(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/olekukonko/tablewriter/releases )
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.4...v0.0.5 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 18:39:44 +01:00
Bjørn Erik Pedersen
84f0ec7f80
deps: Update to esbuild v0.8.46
2021-02-16 18:37:30 +01:00
Bjørn Erik Pedersen
bdfbcf6f4b
modules: Add config option modules.vendorClosest
...
Fixes #8235
Fixes #8242
2021-02-16 16:30:01 +01:00
Bjørn Erik Pedersen
b60e9279ab
js: Fix potential path issue on Windows
2021-02-16 16:10:46 +01:00
dependabot[bot]
a9b0fea6a3
build(deps): bump google.golang.org/api from 0.26.0 to 0.40.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.26.0 to 0.40.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.26.0...v0.40.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-16 16:10:12 +01:00
Anthony Fok
e8df097745
Change version string format and add VendorInfo to help with issue triaging
...
* Change version string format as proposed by @moorereason
1. shorten program name
2. make version string semver compliant with +extended.
The slash is not allowed in semver.
3. Use key=value pairs for BuildDate etc.
* Add optional vendorInfo to version string
to help with issue triaging, e.g. VendorInfo=debian:0.80.0-7
2021-02-16 16:08:24 +01:00
Bjørn Erik Pedersen
3a5ee0d2d6
modules: Allow absolute paths for any modules resolved via project replacement
...
Fixes #8240
2021-02-15 11:11:34 +01:00
Bjørn Erik Pedersen
4ffaeaf155
modules: Throw an error running hugo mod vendor on mountless module
2021-02-15 10:47:32 +01:00
susiwen8
bf55afd71f
Fix some humanize issues
...
Fixes #7912
2021-02-14 18:30:59 +01:00
Anthony Fok
5f621df257
commands: Add PowerShell completion support
...
Revert "Refactor: Remove powershell support" with fixes
Thanks to Ben Mezger (@benmezger) for the original code.
See #8122
This reverts commit a7c515e1b5 .
2021-02-09 13:37:36 -07:00
Anthony Fok
7118f89cf3
Refer to mage instead of make in comment regarding commitHash
2021-02-09 09:57:18 -07:00
Bjørn Erik Pedersen
e6dd312812
markup/goldmark: Fix handling of legacy attribute config
...
See #7548
2021-02-09 09:23:18 +01:00
Bjørn Erik Pedersen
2681633db8
markup/goldmark: Add attributes support for blocks (tables etc.)
...
E.g.:
```
> foo
> bar
{.myclass}
```
There are some current limitations: For tables you can currently only apply it to the full table, and for lists the ul/ol-nodes only, e.g.:
```
* Fruit
* Apple
* Orange
* Banana
{.fruits}
* Dairy
* Milk
* Cheese
{.dairies}
{.list}
```
Fixes #7548
2021-02-08 19:52:55 +01:00
Bjørn Erik Pedersen
1b24728256
deps: Update to Goldmark v1.3.2
...
Closes #8143
2021-02-08 12:16:21 +01:00
Bjørn Erik Pedersen
441b11beec
Update to Dart Sass Protocol beta6
...
Note that this version is not backwards compatible, so you have to update the protocol binary.
2021-02-06 18:34:19 +01:00
Jeremy Epstein
4867cd1dea
tpl/embedded: Exclude pages without Permalink from sitemap
2021-02-06 18:30:09 +01:00
Bjørn Erik Pedersen
92c6c40419
langs/i18n: Support translation files with suffix *.yml
...
Fixes #8212
2021-02-06 18:12:54 +01:00
Ben Mezger
d36fd5b3ee
Refactor: Write to stdout by default
2021-02-04 15:32:51 -07:00
Ben Mezger
a7c515e1b5
Refactor: Remove powershell support
2021-02-04 15:32:51 -07:00
Ben Mezger
216b00f358
Feat: Add zsh, fish and powershell completion support
...
See issue #4296
2021-02-04 15:32:51 -07:00
Bjørn Erik Pedersen
144943798c
github: Enable NPM tests on Windows
...
Fixes #8196
2021-02-01 11:32:17 +01:00
Bjørn Erik Pedersen
440fdb0eb9
deps: Update to esbuild v0.8.39
...
Fixes #8189
2021-02-01 11:28:12 +01:00
Pavlo Matiash
b2a48dce58
Trim whitespace in elements written to hugo_stats.json
...
Fixes #7958
2021-02-01 09:32:39 +01:00
Baris Ceviz
35def0ae45
tpl/data: Add default user-agent header for getJSON requests
2021-02-01 09:31:02 +01:00
dependabot[bot]
2f9dadae40
build(deps): bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.35.0 to 1.36.33.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.35.0...v1.36.33 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-01-28 22:20:00 +01:00
Aleksandr Demakin
ed3071b753
docs: Remove mention of a file size limit for readFile
...
The limit itself was removed in this PR: https://github.com/gohugoio/hugo/pull/8172 .
2021-01-23 14:14:51 +01:00
Aleksandr Demakin
ee9c136763
tpl/os: remove 1mb limit for readFile.
2021-01-23 00:39:14 +01:00
Bjørn Erik Pedersen
32b86076ee
js: Add Inject config option
...
Fixes #8164
2021-01-22 23:43:44 +01:00
Cameron Moore
241b7483ea
tpl: Fix race condition in text template baseof
...
Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.
2021-01-22 19:25:45 +01:00
Bjørn Erik Pedersen
e19a046c4b
js: Add Shims option
...
This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another.
Fixes #8165
2021-01-22 09:03:24 +01:00
Bjørn Erik Pedersen
a1fe552fc9
Fix nilpointer in js.Build error handling
...
Fixes #8162
2021-01-21 10:09:33 +01:00
Bjørn Erik Pedersen
a1a9f088b1
Merge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'
2021-01-20 12:48:39 +01:00
Bjørn Erik Pedersen
e48ffb7635
Squashed 'docs/' changes from 1de7a358c..ef9c4913c
...
ef9c4913c Clean up and removal of outdated examples
46122c9aa add godot tutorials to showcase
06d1d1ea2 Update scss-sass.md
1fc63c100 Spelling fix in 0.79.1 release notes
ad2f50e3d Update plainwords description (#1296 )
33021d451 Update substr examples (#1304 )
6b1cc59bb Release 0.80.0
521db8c6d Merge branch 'tempv0.80.0'
58626c2b3 releaser: Add release notes to /docs for release of 0.80.0
f81d118af dartsass: Dart Sass only supports `expanded` and `compressed`
7da6f54be Add Dart Sass support
b1f2661bb Replace jsconfig.js with jsconfig.json
38de0c1a4 Update index.md
223ceae80 Update index.md
f7ac0e59d Release v0.79.1
2d4583d43 Merge branch 'temp791-2'
1d34e609b releaser: Add release notes to /docs for release of 0.79.1
e26769988 Merge branch 'temp791'
75694d904 Fix Resource.ResourceType so it always returns MIME's main type
0f65d7783 Typo s/adds/add (#1298 )
0b896b2c0 images: Add images.Overlay filter
0d4257dcd Clarify documentation on shimming
fcf601ddf Update index.html
6bf9bc1c1 Update index.html
1ce76bf3a Update index.html
e7d976eec Update index.html
db2996e64 Update index.html
245e5bfc9 news: Add post about Apple M1
3ad4115ed tpl: Add title parameter to YouTube shortcode
76ed976f8 Added two useful extensions to the list (#1243 )
e5a30dd11 Update related.md
25cf8f48b Improve substr examples
e16e57e9a Update path.Split.md
2749b88fd Update path.Split.md
d76cad3ff Release 0.79.0
f5ccfbe98 releaser: Add release notes to /docs for release of 0.79.0
ebf1b87b0 Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'
1f1e8f39c Allow setting the delimiter used for setting config via OS env, e.g. HUGO_
e9b1414dd deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
0f76cf66c docs: Regen docshelper
1ada5d47e Add menu params
1c120aef0 Revert "docs: Regenerate docshelper"
7b60b5624 docs: Regenerate docshelper
git-subtree-dir: docs
git-subtree-split: ef9c4913cd
2021-01-20 12:47:49 +01:00
Robert-André Mauchin
07ad283f68
build(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1
...
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com >
2021-01-19 17:25:20 +01:00
Andreas Richter
2c8b5d9165
pipes: Add external source map support to js.Build and Babel
...
Fixes #8132
2021-01-18 10:38:09 +01:00
Cameron Moore
0004a733c8
tpl: Fix metrics hint tracking
...
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
2021-01-08 20:01:11 +01:00
Cameron Moore
8a26ab0bc5
tpl: Do not return errors in substr for out-of-bounds cases
...
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
2021-01-08 10:13:10 +01:00
Cameron Moore
788e50ad3a
tpl: Add missing test scenario for strings.Substr
2021-01-08 10:13:10 +01:00
Bjørn Erik Pedersen
4d2b6fc4c0
Run go mod tidy
2021-01-03 18:48:35 +01:00
Niklas Fasching
212e5e5542
deps: Update go-org to v1.4.0
...
- Add support for pretty urls [1]. Rewrite file links:
1. replace the `.org` extension with `/` (`/foo.org` -> `/foo/`)
2. prefix unrooted links with `../` as relative links start in the fake
subdirectory `/foo/` rather than `/`
- Fix case-sensitivity of org drawer `🔚 `
[1] https://gohugo.io/content-management/urls/#pretty-urls
2021-01-02 22:29:06 +01:00
Bjørn Erik Pedersen
4fdec67b11
rst: Adjust log level
2021-01-01 11:50:13 +01:00
hugoreleaser
9b681ecfbd
releaser: Prepare repository for 0.81.0-DEV
...
[ci skip]
2020-12-31 13:49:02 +00:00
hugoreleaser
792ef0f41a
releaser: Add release notes to /docs for release of 0.80.0
...
[ci skip]
2020-12-31 13:36:35 +00:00
hugoreleaser
5b3fc1c673
releaser: Bump versions for release of 0.80.0
...
[ci skip]
2020-12-31 13:36:35 +00:00
Bjørn Erik Pedersen
63a33afee7
Update 0.80.0-relnotes.md
2020-12-31 14:26:00 +01:00
hugoreleaser
69aa3d4599
releaser: Add release notes for 0.80.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-12-31 13:09:24 +00:00
Bjørn Erik Pedersen
ffbf5e45fa
Allow Dart Sass transformations to be cached on disk
...
This enbles people to build their sites/themes on servers where the Dart Sass binary is not available.
2020-12-31 11:32:20 +01:00
Bjørn Erik Pedersen
48994ea766
dartsass: Dart Sass only supports expanded and compressed
2020-12-31 11:18:54 +01:00
Bjørn Erik Pedersen
428b0b3294
dartsass: Add missing OutputStyle option
2020-12-31 10:49:59 +01:00
Cameron Moore
1f7e9f7333
Update emoji import paths and version
...
Since emoji is v2, we must import it with the `/v2` suffix. Doing so
allows the Go tools to detect the latest release.
2020-12-30 22:46:19 +01:00
Bjørn Erik Pedersen
cea1574023
Add Dart Sass support
...
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
2020-12-30 17:32:25 +01:00
Horst Gutmann
f9f779786e
GroupByParamDate now supports datetimes
...
Previously, the method only worked for date strings but not (for
instance) full RFC3339 datetime strings.
2020-12-28 17:50:55 +01:00
Bjørn Erik Pedersen
a9718f44cd
para: Skip para test when not on CI
...
Fixes #6963
2020-12-23 19:47:20 +01:00
Bjørn Erik Pedersen
f802bb236a
Update SECURITY.md
2020-12-22 10:09:59 +01:00
hugoreleaser
6c29418278
releaser: Add release notes to /docs for release of 0.79.1
...
[ci skip]
2020-12-19 17:09:29 +01:00
Bjørn Erik Pedersen
10ae7c3210
Improve LookPath
2020-12-19 17:03:07 +01:00
Patrick Kollitsch
ae2d1bd52d
docs: create a SECURITY.md
...
This file is used by Github as a tab on the repos homepage to access information about how to report security issues. The text is kept simple.
Will solve #8074
2020-12-18 17:55:49 +01:00
Bjørn Erik Pedersen
81975f847d
Fix Resource.ResourceType so it always returns MIME's main type
...
The one exception being for the Page, which does not have a MIME type, in which you will get the value `page`.
Fixes #8052
2020-12-17 22:20:12 +01:00
Cameron Moore
8103188b9b
para: Show more detail on failed time test
...
Give us more visibility into how badly a given host is failing in the
time test.
Updates #6963
2020-12-17 22:19:17 +01:00
Bjørn Erik Pedersen
3ba147e702
images: Add images.Overlay filter
...
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
2020-12-17 09:14:18 +01:00
Bjørn Erik Pedersen
a2d146ec32
tpl: Regenerate templates
2020-12-16 12:20:02 +01:00
Maciej Sawicki
d2d493ab5d
tpl: Fix series detection in opengraph
...
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" }}
```
2020-12-16 12:13:30 +01:00
真夜
ce96895deb
hugolib/paths: Fix typo
2020-12-16 12:12:14 +01:00
Phil Davis
04b89857e1
all: Fix minor typos
2020-12-16 12:11:32 +01:00
Bjørn Erik Pedersen
21fa1e86f2
Fix BenchmarkMergeByLanguage
...
Fixes #7914
2020-12-09 17:47:10 +01:00
Anthony Fok
c84ad8db82
deps: Bump github.com/spf13/cobra from 0.15.0 to 0.20.0
...
The substring match in TestExecute deploy test is adjusted accordingly.
2020-12-04 20:43:03 -07:00
Patrick Kollitsch
4e0acb89b7
chore: configure proper link to discourse.gohugo.io ( #8020 )
...
* chore: configure proper link to discourse.gohugo.io
This adds a configuration file to the issue templates for this repo. In this config file, an issue template is added that will look like the existing issue templates, but on click will lead directly to the discourse forum instead of hoping that people read what it says there. The support.md can be deleted.
* chore: remove obsolete support.md configuration
* chore: remove obsolete autoclosing workflow
2020-12-04 10:04:35 +01:00
Bjørn Erik Pedersen
718e09ed4b
tpl/internal/go_templates: Revert formatting
...
Should make future fork synch easier.
2020-12-03 13:47:43 +01:00
Bjørn Erik Pedersen
d90e37e0c6
all: Format code with gofumpt
...
See https://github.com/mvdan/gofumpt
2020-12-03 13:12:58 +01:00
dependabot[bot]
32471b57bd
build(deps): bump github.com/evanw/esbuild from 0.8.15 to 0.8.17
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.15 to 0.8.17.
- [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.8.15...v0.8.17 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-12-02 13:04:16 +01:00
Andrew Zenk
4fc918e02c
tpl: Add title parameter to YouTube shortcode
2020-12-02 12:53:53 +01:00
sth
0ad378b09c
Use --baseURL path for live-reload URL
...
Fixes #6595
2020-12-02 12:52:26 +01:00
ivan-meridianbanc-com
aebfe156fb
Fix RelURL and AbsURL when path starts with language
2020-12-02 12:47:01 +01:00
dependabot[bot]
907d9e9268
build(deps): bump github.com/getkin/kin-openapi from 0.31.0 to 0.32.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.31.0...v0.32.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-12-02 12:26:27 +01:00
Cameron Moore
5862fd2a60
tpl: Fix substr when length parameter is zero
...
When length parameter is zero, always return an empty string.
Updates #7993
2020-12-01 23:20:04 +01:00
Cameron Moore
64789fb5dc
tpl: Refactor and fix substr logic
...
Fix miscalculations when start is negative. Results should now match
PHP substr.
Fixes #7993
2020-11-28 11:53:46 +01:00
hugoreleaser
32d4bf68da
releaser: Prepare repository for 0.80.0-DEV
...
[ci skip]
2020-11-27 09:19:04 +00:00
hugoreleaser
1415efdcd8
releaser: Add release notes to /docs for release of 0.79.0
...
[ci skip]
2020-11-27 09:06:36 +00:00
hugoreleaser
4e6bf7907d
releaser: Bump versions for release of 0.79.0
...
[ci skip]
2020-11-27 09:06:36 +00:00
Bjørn Erik Pedersen
50be4370b0
Update 0.79.0-relnotes.md
2020-11-27 09:55:51 +01:00
hugoreleaser
3d2e6a30d4
releaser: Add release notes for 0.79.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-11-27 08:44:33 +00:00
Bjørn Erik Pedersen
4f1e4bb3fe
Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'
2020-11-27 09:30:05 +01:00
Bjørn Erik Pedersen
9f1265fde4
Squashed 'docs/' changes from 57c1d1a67..1de7a358c
...
1de7a358c Clarify that "with" blocks do not render with empty values (#1287 )
b48de8b0a Update js.md
e0124e4b1 Update js.md
087b39d74 Update hosting-on-render.md (#1286 )
8f02b5412 Update js.md (#1284 )
8dd8a8d1d Add link to "Build Websites with Hugo" book (#1174 )
ae2dc138a Fix typo in page bundles (#1283 )
ab14bfec3 Update configuration directory section
17da77ff1 Update multilingual.md (#1280 )
5bce8db3a Fix for site-hierarchy image, issue #60
9d7a2366d Fix typo
ad4210c41 Fix typo
c88bc0383 Fix orphan branch url (#1262 )
1cf6cf5b3 Hugo 0.78.2
538c3cb86 Merge branch 'tempv0.78.2'
e5e07fc81 releaser: Add release notes to /docs for release of 0.78.2
120a61a47 Fixed wrong var assignment example
4cebbb1a7 Ignore remote JSON errors (for now)
618fcf9ba Add a link to modules config option 'replacements'
e12722779 Fix typo ("wil" -> "will") (#1273 )
0670e9894 Update js.md
5bde834cf Update GH docs to say "main" as default branch
26312f93d Update index.md
eb6f51df1 Update js.md
b890dc84d Merge branch 'tempv0.78.1'
6b73ea450 releaser: Add release notes to /docs for release of 0.78.1
46e582112 Update starter-kits.md (#1268 )
a62786235 Update 404 docs: GitLab auto-detects 404.html (#1173 )
cbd4fd2d9 Fix typo (#1271 )
2ba3f9386 Update js.md
7b5109d90 Update js.md
bc75bc962 Release 0.78.0
0b2e8b0f1 releaser: Add release notes to /docs for release of 0.78.0
9ecba8480 Merge commit 'b74591123eac47a20d1f26ff3e2d291cd9c5cfc0'
60a475df7 js: Add avoidTDZ option
3b895261f Make js.Build fully support modules
git-subtree-dir: docs
git-subtree-split: 1de7a358ca
2020-11-27 09:26:24 +01:00
Bjørn Erik Pedersen
d162bbd799
publisher: Fix memory usage in writeStats
...
```
name old time/op new time/op delta
ClassCollectorWriter-16 72.1µs ± 0% 32.3µs ± 0% -55.17% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
ClassCollectorWriter-16 85.9kB ± 0% 35.1kB ± 0% -59.16% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
ClassCollectorWriter-16 329 ± 0% 149 ± 0% -54.71% (p=0.029 n=4+4)
```
Fixes #7945
2020-11-27 09:13:16 +01:00
dependabot[bot]
17e0bbe821
build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0
...
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-yaml/yaml/releases )
- [Commits](https://github.com/go-yaml/yaml/compare/v2.3.0...v2.4.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-26 21:41:21 +01:00
Bjørn Erik Pedersen
e442cf30a2
Fix server rebuild issue with partials referenced from render hooks
...
Fixes #7990
2020-11-26 20:41:54 +01:00
Bjørn Erik Pedersen
7e223b3baa
Allow setting the delimiter used for setting config via OS env, e.g. HUGO_
...
Fixes #7829
2020-11-25 20:34:34 +01:00
Bjørn Erik Pedersen
8a6e706053
deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
...
Closes #7986
2020-11-25 17:39:51 +01:00
Cameron Moore
34061706e6
output: Add more layout lookup tests
...
Add more tests to cover more cases and to help with documentation and
discussion of template lookup order.
Updates #7964
2020-11-25 12:52:33 +01:00
dependabot[bot]
6f7633df7d
build(deps): bump github.com/google/go-cmp from 0.5.2 to 0.5.3
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.2...v0.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-24 20:20:40 +01:00
Christian Oliff
a546059a9c
examples: Remove unneeded meta tag from blog example
...
```html
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
```
This was only needed for IE10 and lower (which are no longer supported) and chromeframe which was a Google plugin for IE8 and lower and was discontinued many years ago. So this meta tag can be safely removed.
2020-11-24 20:20:04 +01:00
dependabot[bot]
b5d906e31e
build(deps): bump github.com/getkin/kin-openapi from 0.30.0 to 0.31.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.30.0...v0.31.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-24 14:48:09 +01:00
Bjørn Erik Pedersen
fd70bdafe7
docs: Regen docshelper
2020-11-24 13:49:01 +01:00
David Jones
8f5c9a747f
Add menu params
...
Fixes #7951
2020-11-22 22:09:59 +01:00
SatowTakeshi
e4fcb672ed
resources: Preserve url set in frontmatter without sanitizing
...
related #6007 (already closed)
2020-11-21 23:37:58 +01:00
Bjørn Erik Pedersen
18c13adcd4
watcher: Add file deleted by accident
...
See #7972
2020-11-21 17:21:14 +01:00
Bjørn Erik Pedersen
20a35374a3
Revert "docs: Regenerate docshelper"
...
This reverts commit caf16c2085 .
Closes #7972
2020-11-21 12:48:48 +01:00
Bjørn Erik Pedersen
caf16c2085
docs: Regenerate docshelper
2020-11-20 09:32:16 +01:00
Bjørn Erik Pedersen
b298c06e05
deps: Update to Chroma v0.8.2
...
Closes #7970
2020-11-20 09:30:05 +01:00
dependabot[bot]
55e290af41
build(deps): bump github.com/evanw/esbuild from 0.8.8 to 0.8.11
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.8 to 0.8.11.
- [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.8.8...v0.8.11 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-19 09:51:30 +01:00
dependabot[bot]
506a190a82
build(deps): bump github.com/getkin/kin-openapi from 0.26.0 to 0.30.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.26.0 to 0.30.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.26.0...v0.30.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-16 12:33:31 +01:00
dependabot[bot]
fc81de6439
build(deps): bump github.com/evanw/esbuild from 0.8.6 to 0.8.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.6 to 0.8.8.
- [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.8.6...v0.8.8 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-16 12:32:33 +01:00
hugoreleaser
fcaa324e3c
releaser: Prepare repository for 0.79.0-DEV
...
[ci skip]
2020-11-13 10:19:23 +00:00
hugoreleaser
959724f0e0
releaser: Add release notes to /docs for release of 0.78.2
...
[ci skip]
2020-11-13 10:07:00 +00:00
hugoreleaser
a3012d85d1
releaser: Bump versions for release of 0.78.2
...
[ci skip]
2020-11-13 10:07:00 +00:00
hugoreleaser
fc7f739275
releaser: Add release notes for 0.78.2
...
[ci skip]
2020-11-13 10:07:00 +00:00
Bjørn Erik Pedersen
78f227b664
js: Let ESBuild handle all imports from node_modules
...
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
2020-11-13 08:54:29 +01:00
dependabot[bot]
5e03f644a4
build(deps): bump github.com/evanw/esbuild from 0.8.5 to 0.8.6
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.5 to 0.8.6.
- [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.8.5...v0.8.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-12 13:59:18 +01:00
dependabot[bot]
a92ef20ff6
build(deps): bump github.com/evanw/esbuild from 0.8.4 to 0.8.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.4 to 0.8.5.
- [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.8.4...v0.8.5 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-11 23:00:27 +01:00
dependabot[bot]
0d54a84406
build(deps): bump github.com/getkin/kin-openapi from 0.22.1 to 0.26.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.22.1 to 0.26.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.22.1...v0.26.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-08 12:44:01 +01:00
Mackenzie Morgan
943f3c932f
Update GH docs to say "main" as default branch
2020-11-06 20:57:52 +01:00
AdamKorcz
4f20bf29eb
Updated year in header
2020-11-06 13:19:18 +01:00
AdamKorcz
4c613d5d5d
Added first fuzzer
2020-11-06 13:19:18 +01:00
dependabot[bot]
82a182e52c
build(deps): bump github.com/frankban/quicktest from 1.11.1 to 1.11.2
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.11.1...v1.11.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-06 13:18:22 +01:00
dependabot[bot]
dfc662b208
build(deps): bump golang.org/x/text from 0.3.3 to 0.3.4
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.3...v0.3.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-06 09:09:13 +01:00
dependabot[bot]
2f0917cc01
build(deps): bump github.com/evanw/esbuild from 0.8.3 to 0.8.4
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.8.3 to 0.8.4.
- [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.8.3...v0.8.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-11-06 09:01:32 +01:00
hugoreleaser
7565cda1ff
releaser: Prepare repository for 0.79.0-DEV
...
[ci skip]
2020-11-05 09:50:35 +00:00
hugoreleaser
347f2de67d
releaser: Add release notes to /docs for release of 0.78.1
...
[ci skip]
2020-11-05 09:38:59 +00:00
hugoreleaser
210f6d38ac
releaser: Bump versions for release of 0.78.1
...
[ci skip]
2020-11-05 09:38:59 +00:00
hugoreleaser
03f87f8f06
releaser: Add release notes for 0.78.1
...
[ci skip]
2020-11-05 09:38:59 +00:00
Bjørn Erik Pedersen
3437174c3a
Disable NPM test on Travis on Windows
...
For now.
2020-11-05 09:56:22 +01:00
Bjørn Erik Pedersen
f66302ca05
travis: Install nodejs on Windows
2020-11-05 07:51:41 +01:00
Bjørn Erik Pedersen
944150bafb
js: Remove external source map option
...
It was merged by accident and the implementation does not look correct.
Fixes #7932
2020-11-04 23:04:12 +01:00
Bjørn Erik Pedersen
bf2837a314
js: Misc fixes
...
* Fix resolve of package.json deps in submodules
* Fix directory logic for writing assets/jsconfig.json
Fixes #7924
Fixes #7923
2020-11-04 19:21:43 +01:00
hugoreleaser
cf6131dc18
releaser: Prepare repository for 0.79.0-DEV
...
[ci skip]
2020-11-03 13:25:12 +00:00
hugoreleaser
fd62817bba
releaser: Add release notes to /docs for release of 0.78.0
...
[ci skip]
2020-11-03 13:13:12 +00:00
hugoreleaser
3ebe83aea7
releaser: Bump versions for release of 0.78.0
...
[ci skip]
2020-11-03 13:13:12 +00:00
Bjørn Erik Pedersen
0c16debc7f
Update 0.78.0-relnotes.md
2020-11-03 14:03:53 +01:00
hugoreleaser
794e1f9e72
releaser: Add release notes for 0.78.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-11-03 12:23:42 +00:00
Bjørn Erik Pedersen
c64e9504d8
Merge commit 'b74591123eac47a20d1f26ff3e2d291cd9c5cfc0'
2020-11-03 13:05:34 +01:00
Bjørn Erik Pedersen
b74591123e
Squashed 'docs/' changes from d1157b687..57c1d1a67
...
57c1d1a67 Add note about issue with Instagram shortcode
2a4355113 Add example for regional language tags (#1139 )
5e9a60fc0 Format dates with "th", "nd", and "rd". (#1254 )
43df9a7f6 Update index.md
f15f32590 Update index.md
5a15be93d Update configuration.md
e71c1c545 Update configuration.md
5fd0439ff Release Hugo 0.77.0
5b875477c releaser: Add release notes to /docs for release of 0.77.0
09a2a3199 docs: Regen docs helper
bebef9bbe Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7'
f5ed02685 tpl: Refactor time.AsTime location implementation
f3b8eccd2 tpl: Update Hugo time to support optional [LOCATION] parameter
git-subtree-dir: docs
git-subtree-split: 57c1d1a67b
2020-11-03 13:04:56 +01:00
Bjørn Erik Pedersen
3b2fe3cd33
js: Add avoidTDZ option
...
Fixes #7865
2020-11-03 13:04:37 +01:00
Bjørn Erik Pedersen
85e4dd7370
Make js.Build fully support modules
...
Fixes #7816
Fixes #7777
Fixes #7916
2020-11-03 13:04:37 +01:00
Andreas Richter
3089fc0ba1
js.Build: Generate tsconfig files
...
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.
2020-11-03 13:04:37 +01:00
hugoreleaser
e10e36cf70
releaser: Prepare repository for 0.78.0-DEV
...
[ci skip]
2020-10-30 10:24:27 +00:00
hugoreleaser
ef290125c9
releaser: Add release notes to /docs for release of 0.77.0
...
[ci skip]
2020-10-30 10:12:16 +00:00
hugoreleaser
5d2fceecaf
releaser: Bump versions for release of 0.77.0
...
[ci skip]
2020-10-30 10:12:16 +00:00
Bjørn Erik Pedersen
0696df6686
Release 0.77.0
2020-10-30 11:05:21 +01:00
Bjørn Erik Pedersen
5ba49c8778
Update 0.77.0-relnotes.md
...
[ci skip]
2020-10-30 10:39:04 +01:00
hugoreleaser
c3ccda8fab
releaser: Add release notes for 0.77.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-10-30 09:22:42 +00:00
Bjørn Erik Pedersen
beabc8d998
modules: Allow absolute paths for project imports
...
Fixes #7910
2020-10-30 10:14:08 +01:00
Bjørn Erik Pedersen
332b65e4cc
docs: Regen docs helper
2020-10-30 09:52:32 +01:00
Bjørn Erik Pedersen
3553fc533a
Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7'
2020-10-30 09:50:15 +01:00
Bjørn Erik Pedersen
9cabb46f68
Squashed 'docs/' changes from 9abd3043a..d1157b687
...
d1157b687 Fix typo -- missing word in title
34c9a9ff3 Remove Hartwell Insurance subpage broken link
d42f6d8eb Fix strings.Repeat documentation
09b49debb Release 0.76.5
149877735 Merge branch 'tempv0.76.5'
72ffeb026 releaser: Add release notes to /docs for release of 0.76.5
4150d8ae8 Fixed typo: update PrevPage to Prev
c3e630db1 Update index.md
deb7520a8 Release 0.76.4
f58bd7134 Merge branch 'tempv0.76.4'
2581fe4bc releaser: Add release notes to /docs for release of 0.76.4
26d8417fc Release 0.76.3
34c49e06a Merge branch 'tempv0.76.3'
0de2af2ef releaser: Add release notes to /docs for release of 0.76.3
cce12c0f7 Add missing closing quotes and fix code-block lang (#1250 )
8c1c80d9f Update AMP link (#1251 )
7b1211ffa Fix typos in multilingual.md
29e9d70fd Update index.md
172a5480b Release 0.76.2
93ff424d3 Merge branch 'temp762'
3cad3c23a releaser: Add release notes to /docs for release of 0.76.2
610221964 Update index.md
8a9d31709 Release 0.76.1
64b245aa4 Merge branch 'temp761'
f19469ff8 releaser: Add release notes to /docs for release of 0.76.1
97f0ed030 Update front-matter.md
cca71f263 Update index.md
23c64f6a3 Fix typo in 0.76.0 release note
5f79e034d Update index.md
b66567de2 netlify: Bump to Hugo 0.76.0
a3e30300d Release 0.76.0
3b057e8fe releaser: Add release notes to /docs for release of 0.76.0
7fa1cd912 docs: Regen docshelper
769712aec Merge commit 'e5568488051a571df48401e03f1304b95dbc9028'
70ce6ae33 pagemeta: Make BuildConfig.Render an enum
a78d3849f Allow cascade to be a slice with a _target discriminator
705fea656 Add force flag to server redirects config
04e4e1cc1 tpl: Add Do Not Track (dnt) option to Vimeo shortcode
025c19fe1 Fix CLI example for PostCSS 8
0c70c47b2 markup/asciidocext: Add preserveTOC option
git-subtree-dir: docs
git-subtree-split: d1157b687e
2020-10-30 09:49:15 +01:00
Bjørn Erik Pedersen
173187e263
Add module.replacements
...
Fixes #7904
Fixes #7908
2020-10-30 09:41:05 +01:00
Bjørn Erik Pedersen
8a1c637c44
Fix setting HUGO_MODULE_PROXY etc. via env vars
...
Fixes #7903
2020-10-30 09:41:04 +01:00
Cameron Moore
6d95dc9d74
tpl: Fix reflection bug in merge
...
Value.Type().Key() must only be called on map values.
Fixes #7899
2020-10-29 19:19:41 +01:00
José Moreira
56a343507c
deploy: Do not call CDN service invalidation when executing a dry run deployment
...
Currently, if cache invalidation is enabled when running `hugo deploy --dryRun` with , the deployer does not take the dry run flag into consideration and triggers CloudFront/GoogleCloudCDN cache invalidation if any of those services are configured.
This change will instead print a feedback message if a dry run is in effect and quiet mode is not enabled.
Fixes #7884
2020-10-28 11:19:40 +01:00
Bhavin Gandhi
d48a98c477
create: Pass editor arguments from newContentEditor correctly
...
If newContentEditor has editor name with arguments like `emacsclient
-n`, it fails with `executable file not found in $PATH`. This change
parses the value correctly and passes it to the given editor.
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com >
2020-10-24 20:34:03 +02:00
Anthony Fok
3261678f63
deps: Bump github.com/spf13/cobra from 0.0.7 to 1.1.1
...
Cobra 1.1.1 fixes internal formatting for go-md2man v2 (which caused
man page generation e.g. "hugo gen man" to be broken since Cobra 0.0.6).
See spf13/cobra#1049 for context.
2020-10-24 03:39:53 -06:00
Eric Hagman
f465c5c307
build: Allow optional "nodeploy" tag to exclude deploy command from bin
...
Fixes #7826
2020-10-23 09:03:41 +02:00
Gareth Watts
3400aff258
Allow cascade _target to work with non toml fm
...
The TOML lib unmarshals slices of string maps to []map[string]interface{}
whereas YAML and JSON decode to []interface{}
The existing tests only check for TOML working correctly, and _target
with cascade did not work at all for frontmatter defined in other formats.
Add a function to normalize those slices
Fixes #7874
2020-10-22 23:00:19 +02:00
Bjørn Erik Pedersen
fdfa4a5fe6
Allow getJSON errors to be ignored
...
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
2020-10-22 09:09:29 +02:00
dependabot[bot]
8cbe2bbfad
build(deps): bump github.com/evanw/esbuild from 0.7.15 to 0.7.18
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.15 to 0.7.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.7.15...v0.7.18 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-21 10:19:40 +02:00
Cameron Moore
807db97af8
tpl: Refactor time.AsTime location implementation
2020-10-21 09:49:25 +02:00
Mark Johnson
26eeb29147
tpl: Update Hugo time to support optional [LOCATION] parameter
2020-10-21 09:49:25 +02:00
Bjørn Erik Pedersen
b886fa46bb
Revert "Add benchmark for building docs site"
...
We already have a lot of site building benchmarks. The main problem with adding the "Hugo site docs" to the list is that it cannot easiliy be compared to any previous release, because its content/template/whatever has changed.
This reverts commit 837e084bbe .
2020-10-17 00:37:42 +02:00
Cameron Moore
14bce18a6c
highlight: Avoid making unnecessary allocation
...
Avoid creating a local copy of the highlight configuration when no
options are passed.
Benchmarks of building the docs site:
name old time/op new time/op delta
DocsSite-2 1.94s ± 4% 1.93s ± 4% ~ (p=0.841 n=5+5)
name old alloc/op new alloc/op delta
DocsSite-2 666MB ± 1% 656MB ± 0% -1.48% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
DocsSite-2 8.85M ± 0% 8.76M ± 0% -1.04% (p=0.029 n=4+4)
2020-10-16 21:14:02 +02:00
Cameron Moore
837e084bbe
Add benchmark for building docs site
2020-10-16 21:13:39 +02:00
Cameron Moore
08e4f9ff9c
embedded: Always show page number when 5 pages or less
...
Fixes #7523
2020-10-16 16:16:49 +02:00
Cameron Moore
acfa153863
output: Improve layout path construction
2020-10-15 20:54:47 +02:00
dependabot[bot]
f033d9f01d
build(deps): bump github.com/frankban/quicktest from 1.11.0 to 1.11.1
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.11.0...v1.11.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-15 00:01:45 +02:00
dependabot[bot]
59fe279424
build(deps): bump github.com/evanw/esbuild from 0.7.14 to 0.7.15
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.14 to 0.7.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.7.14...v0.7.15 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-14 21:59:26 +02:00
Bjørn Erik Pedersen
62119022d1
Merge branch 'release-0.76.5'
2020-10-14 17:44:47 +02:00
hugoreleaser
2f3f41f736
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-14 15:28:16 +00:00
hugoreleaser
60f0725b3e
releaser: Add release notes to /docs for release of 0.76.5
...
[ci skip]
2020-10-14 15:15:22 +00:00
hugoreleaser
dcf70ea5a5
releaser: Bump versions for release of 0.76.5
...
[ci skip]
2020-10-14 15:15:22 +00:00
hugoreleaser
7487c0abf2
releaser: Add release notes for 0.76.5
...
[ci skip]
2020-10-14 15:15:22 +00:00
Bjørn Erik Pedersen
79a022a15c
Render aliases even if render=link
...
Fixes #7832
2020-10-14 17:06:34 +02:00
Bjørn Erik Pedersen
ead5799f7e
Render aliases even if render=link
...
Fixes #7832
2020-10-14 16:59:37 +02:00
dependabot[bot]
d57be11324
build(deps): bump github.com/spf13/afero from 1.4.0 to 1.4.1
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.4.0...v1.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-12 22:54:09 +02:00
dependabot[bot]
d070596694
build(deps): bump github.com/evanw/esbuild from 0.7.9 to 0.7.14
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.9 to 0.7.14.
- [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.7.9...v0.7.14 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-12 22:51:34 +02:00
Daniel Sutton
f5ea359dd3
docker: Update to Go 1.15 and Alpine 3.12
2020-10-12 22:51:08 +02:00
Cameron Moore
78b26d538c
output: Test all lookup permutations in TestLayout
2020-10-12 22:24:47 +02:00
Cameron Moore
28179bd556
output: Reformat TestLayout table
2020-10-12 22:24:47 +02:00
hugoreleaser
fef057b489
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-12 08:45:25 +00:00
hugoreleaser
50dfe40b91
releaser: Add release notes to /docs for release of 0.76.4
...
[ci skip]
2020-10-12 08:32:44 +00:00
hugoreleaser
1ef4211fea
releaser: Bump versions for release of 0.76.4
...
[ci skip]
2020-10-12 08:32:44 +00:00
hugoreleaser
b148063ec0
releaser: Add release notes for 0.76.4
...
[ci skip]
2020-10-12 08:32:44 +00:00
Anthony Fok
e9a7ebaf67
snap: Install postcss v8 explicitly as it is now a peer dependency
...
Fix Snap build failures since 2020-09-21
2020-10-09 12:23:38 -06:00
Bjørn Erik Pedersen
506820435c
lang/i18n: Fix for language code case issue with pt-br etc.
...
Fixes #7804
2020-10-09 18:02:43 +02:00
Bjørn Erik Pedersen
49972d0792
Merge branch 'release-0.76.3'
2020-10-08 19:33:23 +02:00
Bjørn Erik Pedersen
c98132e30e
Add merge helper
2020-10-08 19:32:53 +02:00
hugoreleaser
af19253f43
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-08 17:20:03 +00:00
hugoreleaser
e96234590d
releaser: Add release notes to /docs for release of 0.76.3
...
[ci skip]
2020-10-08 17:07:29 +00:00
hugoreleaser
d62bc74770
releaser: Bump versions for release of 0.76.3
...
[ci skip]
2020-10-08 17:07:29 +00:00
hugoreleaser
1b1d62fdc9
releaser: Add release notes for 0.76.3
...
[ci skip]
2020-10-08 17:07:29 +00:00
Bjørn Erik Pedersen
33e9d79b78
langs/i18n: Add workaround for known language, but missing plural rule error
...
Closes #7798
2020-10-08 14:20:18 +02:00
Bjørn Erik Pedersen
fc6abc39c7
langs/i18n: Fix for bare TOML keys
...
Hugo 0.76.0 updated go-i18n from v1 to v2. This allowed us to set the TOML unmarshaler to use, so we set the one we use in other places in Hugo.
But that does not support dotted bare keys, which caused some breakage in the wild.
This commit fixes that by:
* Using go-toml for language files
* Updating go-toml to the latest version
2020-10-08 14:20:18 +02:00
hugoreleaser
18ed22be5c
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-07 09:11:54 +00:00
hugoreleaser
207913f349
releaser: Add release notes to /docs for release of 0.76.2
...
[ci skip]
2020-10-07 08:59:11 +00:00
hugoreleaser
830b1a94de
releaser: Bump versions for release of 0.76.2
...
[ci skip]
2020-10-07 08:59:11 +00:00
hugoreleaser
605cff4071
releaser: Add release notes for 0.76.2
...
[ci skip]
2020-10-07 08:59:11 +00:00
Bjørn Erik Pedersen
6dd60fca73
Revert "deps: Update to github.com/tdewolff/minify v2.9.4"
...
Closes #7792
This reverts commit b254532b52 .
2020-10-07 10:46:19 +02:00
hugoreleaser
138a025916
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-07 07:45:26 +00:00
hugoreleaser
58ac83a98c
releaser: Add release notes to /docs for release of 0.76.1
...
[ci skip]
2020-10-07 07:33:10 +00:00
hugoreleaser
2b8e8e6d96
releaser: Bump versions for release of 0.76.1
...
[ci skip]
2020-10-07 07:33:10 +00:00
hugoreleaser
aef8369865
releaser: Add release notes for 0.76.1
...
[ci skip]
2020-10-07 07:33:10 +00:00
Bjørn Erik Pedersen
f9e798e8c4
langs/i18n: Fix i18n .Count regression
...
Fixes #7787
2020-10-07 00:32:21 +02:00
digitalcraftsman
ee56efffcb
Fix typo in 0.76.0 release note
2020-10-06 19:03:36 +02:00
hugoreleaser
2c4e76e962
releaser: Prepare repository for 0.77.0-DEV
...
[ci skip]
2020-10-06 15:42:25 +00:00
hugoreleaser
9c7d6e475c
releaser: Add release notes to /docs for release of 0.76.0
...
[ci skip]
2020-10-06 15:29:25 +00:00
hugoreleaser
4482958f96
releaser: Bump versions for release of 0.76.0
...
[ci skip]
2020-10-06 15:29:25 +00:00
Bjørn Erik Pedersen
e1ec3bc2b2
Release 0.76.0
2020-10-06 17:21:35 +02:00
hugoreleaser
1cfa63b9ec
releaser: Add release notes for 0.76.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-10-06 17:21:23 +02:00
Bjørn Erik Pedersen
b9318e4315
docs: Regen docshelper
2020-10-06 16:25:23 +02:00
Bjørn Erik Pedersen
5e39eb20a6
Merge commit 'e5568488051a571df48401e03f1304b95dbc9028'
2020-10-06 16:24:00 +02:00
Bjørn Erik Pedersen
e556848805
Squashed 'docs/' changes from 4895c29c5..9abd3043a
...
9abd3043a Add docs for shimming JS libraries
6a1c8dcd7 Update sitemap-template.md (#1245 )
37c397332 Update frontends.md
a0f86f6df Update configuration.md
bb00cb2c1 Update page-bundles.md
773212de6 Restructure and simplify
fcba7dddf Some minor clarifications of weight sorting
759b967fc Update configuration-markup.md
56708f0b7 module import path remove slash at end
59f4f4acd Doc: Fix typo in hugo command
faacf2e97 Clarify pagination documentation (#1208 )
d8eb60887 netlify: Bump to 0.75.1
8cedf6231 Merge branch 'temp751'
188e2bf56 releaser: Add release notes to /docs for release of 0.75.1
c96d4b7a3 Update index.md
1a9d192f7 Update index.md
32731b916 Update index.md
a5bfa0c9a Restore the ... home page
b6850bf96 Release 0.75.0
d6e5e624f releaser: Add release notes to /docs for release of 0.75.0
8cd6b4f47 typo: already -> already
2cb2b22bb Merge commit '534ae9c57a902aea9ed6e62390dec11fa74b7122'
e3525de23 docs: Regen docs helper
fd746dd83 docs: Regenerate CLI docs
e20127980 Add "hugo mod npm pack"
8e82c7ce1 markup/highlight: Add support to linkable line anchors on Chroma
21e94911b markup/asciidocext: Fix AsciiDoc TOC with code
50b8dace5 modules: Add noVendor to module config
d05b541fe modules: Make ignoreVendor a glob pattern
c946082e7 docs: Update replaceRE func
149054341 docs: Update replace func
d917567df docs: Update merge function
f1e093c92 docs: Regen CLI docs
c7bac967d docs: Regen docs helper
7a38f7a45 Merge commit '7d7771b673e5949f554515a2c236b23192c765c8'
1a5a7263a markup/asciidoc: Add support for .TableOfContents
git-subtree-dir: docs
git-subtree-split: 9abd3043a9
2020-10-06 16:22:20 +02:00
Bjørn Erik Pedersen
634938908e
pagemeta: Make BuildConfig.Render an enum
...
Allowing links on pages without rendering them.
Fixes #7783
2020-10-06 14:06:10 +02:00
Bjørn Erik Pedersen
c63db7f1f6
Allow cascade to be a slice with a _target discriminator
...
Fixes #7782
2020-10-06 14:06:10 +02:00
Bjørn Erik Pedersen
5e2a547cb5
Add force flag to server redirects config
...
Fixes #7778
2020-10-05 22:20:00 +02:00
dependabot[bot]
ee090c0940
build(deps): bump github.com/evanw/esbuild from 0.7.8 to 0.7.9
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.8 to 0.7.9.
- [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.7.8...v0.7.9 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-05 12:13:46 +02:00
Josh Gerdes
edc5c4741c
tpl: Add Do Not Track (dnt) option to Vimeo shortcode
...
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
2020-10-02 23:02:38 +02:00
dependabot[bot]
05e358fd33
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.5 to 2.9.7
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.5 to 2.9.7.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.5...v2.9.7 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-02 14:09:16 +02:00
dependabot[bot]
a2e85d9a75
build(deps): bump github.com/aws/aws-sdk-go from 1.34.34 to 1.35.0
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.34 to 1.35.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.34...v1.35.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-01 12:13:53 +02:00
dependabot[bot]
4fba78dd0e
build(deps): bump github.com/getkin/kin-openapi from 0.22.0 to 0.22.1
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.22.0...v0.22.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-01 12:13:30 +02:00
dependabot[bot]
c011b4667f
build(deps): bump github.com/aws/aws-sdk-go from 1.34.33 to 1.34.34
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.33 to 1.34.34.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.33...v1.34.34 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-30 12:13:40 +02:00
dependabot[bot]
35348b4b34
build(deps): bump github.com/evanw/esbuild from 0.7.7 to 0.7.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.7 to 0.7.8.
- [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.7.7...v0.7.8 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-30 12:13:00 +02:00
dependabot[bot]
34915777c2
build(deps): bump github.com/aws/aws-sdk-go from 1.34.27 to 1.34.33
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.27 to 1.34.33.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.27...v1.34.33 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-29 19:48:58 +02:00
dependabot[bot]
0f4a837ed1
build(deps): bump github.com/evanw/esbuild from 0.7.4 to 0.7.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.4 to 0.7.7.
- [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.7.4...v0.7.7 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-29 19:48:21 +02:00
dependabot[bot]
b395d686e9
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.4 to 2.9.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.9.4 to 2.9.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.9.4...v2.9.5 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-29 19:47:59 +02:00
Bjørn Erik Pedersen
97987e5c02
langs/i18n: Upgrade to go-i18n v2
...
Fixes #5242
2020-09-29 17:48:07 +02:00
Bjørn Erik Pedersen
111344113b
publisher: Fix writeStats with quote inside quotes
...
Fixes #7746
2020-09-28 22:17:36 +02:00
dependabot[bot]
4855c186d8
build(deps): bump github.com/evanw/esbuild from 0.7.2 to 0.7.4
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.2 to 0.7.4.
- [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.7.2...v0.7.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-24 10:36:14 +02:00
Andrey Sitnik
0c3d2b67e0
Fix CLI example for PostCSS 8
2020-09-22 19:31:02 +02:00
dependabot[bot]
6f07ec7e9e
build(deps): bump github.com/aws/aws-sdk-go from 1.34.26 to 1.34.27
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.26 to 1.34.27.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.26...v1.34.27 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-21 13:24:10 +02:00
dependabot[bot]
4318dc72f8
build(deps): bump github.com/alecthomas/chroma from 0.8.0 to 0.8.1
...
Bumps [github.com/alecthomas/chroma](https://github.com/alecthomas/chroma ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v0.8.0...v0.8.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-21 13:23:46 +02:00
dependabot[bot]
acdc27a32d
build(deps): bump github.com/evanw/esbuild from 0.7.1 to 0.7.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.7.1 to 0.7.2.
- [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.7.1...v0.7.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-21 13:23:01 +02:00
Bjørn Erik Pedersen
3acde9ae04
Make sure CSS is rebuilt when postcss.config.js or tailwind.config.js changes
...
Fixes #7715
2020-09-20 13:35:41 +02:00
Joe Mooring
473b6610d5
Fix typo in redirect error message
2020-09-19 22:06:54 +02:00
dependabot[bot]
0bce97703c
build(deps): bump github.com/aws/aws-sdk-go from 1.34.22 to 1.34.26
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.22 to 1.34.26.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.22...v1.34.26 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-19 21:18:16 +02:00
Bjørn Erik Pedersen
b254532b52
deps: Update to github.com/tdewolff/minify v2.9.4
2020-09-19 21:17:02 +02:00
Anthony Fok
05a2289292
snap: Bump bundled Node.js from v12.18.3 to v12.18.4
...
due to CVE-2020-8201, CVE-2020-8251 and CVE-2020-8252,
see https://nodejs.org/en/blog/vulnerability/september-2020-security-releases/
2020-09-18 12:13:31 -06:00
Helder Pereira
8e553dcdef
markup/asciidocext: Add preserveTOC option
2020-09-17 10:50:25 +02:00
dependabot[bot]
d4fc70a3b3
build(deps): bump github.com/frankban/quicktest from 1.10.2 to 1.11.0
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.10.2 to 1.11.0.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.10.2...v1.11.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-17 09:55:45 +02:00
dependabot[bot]
d905abc002
build(deps): bump github.com/evanw/esbuild from 0.6.32 to 0.7.1
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.6.32 to 0.7.1.
- [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.6.32...v0.7.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-16 20:52:20 +02:00
dependabot[bot]
8f3946746d
build(deps): bump github.com/rogpeppe/go-internal from 1.5.1 to 1.6.2
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.5.1 to 1.6.2.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.5.1...v1.6.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-16 20:50:54 +02:00
dependabot[bot]
b01b2564ee
build(deps): bump github.com/jdkato/prose from 1.1.1 to 1.2.0
...
Bumps [github.com/jdkato/prose](https://github.com/jdkato/prose ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/jdkato/prose/releases )
- [Commits](https://github.com/jdkato/prose/compare/v1.1.1...v1.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-16 20:50:25 +02:00
dependabot[bot]
9fa5ebe2c4
build(deps): bump github.com/spf13/afero from 1.2.2 to 1.4.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.2.2 to 1.4.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.2.2...v1.4.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-16 20:48:25 +02:00
hugoreleaser
efaed306b1
releaser: Prepare repository for 0.76.0-DEV
...
[ci skip]
2020-09-15 07:00:54 +00:00
hugoreleaser
a4a7bab734
releaser: Add release notes to /docs for release of 0.75.1
...
[ci skip]
2020-09-15 06:45:52 +00:00
hugoreleaser
2a9dce423f
releaser: Bump versions for release of 0.75.1
...
[ci skip]
2020-09-15 06:45:52 +00:00
hugoreleaser
30159b58e9
releaser: Add release notes for 0.75.1
...
[ci skip]
2020-09-15 06:45:52 +00:00
Bjørn Erik Pedersen
cd00f7f966
resources/image: Fix nilpointer for images with no Exif
...
E.g. PNG files.
Fixes #7688
2020-09-15 07:54:24 +02:00
Bjørn Erik Pedersen
214afe4c1b
modules/npm: Preserve the original package.json if it exists
...
Fixes #7690
2020-09-15 01:04:31 +02:00
Evgeny Kuznetsov
cd830bb027
tpl: Fix grammar in the new 'requires non-zero' error message
2020-09-14 19:54:48 +02:00
hugoreleaser
a8458bfb25
releaser: Prepare repository for 0.76.0-DEV
...
[ci skip]
2020-09-14 09:31:44 +00:00
hugoreleaser
fef924baf1
releaser: Add release notes to /docs for release of 0.75.0
...
[ci skip]
2020-09-14 09:19:06 +00:00
hugoreleaser
07b5e602f8
releaser: Bump versions for release of 0.75.0
...
[ci skip]
2020-09-14 09:19:06 +00:00
Bjørn Erik Pedersen
70f16e84e2
Release 0.75.0
2020-09-14 11:08:48 +02:00
hugoreleaser
abadf29542
releaser: Add release notes for 0.75.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-09-14 08:51:14 +00:00
Bjørn Erik Pedersen
377ad87a51
Set PWD in environment when running the Node apps
...
E.g. PostCSS and Babel.
This is in line with what we do when running Go.
2020-09-14 10:22:24 +02:00
Daniel Holbach
292b0e26ec
typo: already -> already
2020-09-14 10:15:59 +02:00
Bjørn Erik Pedersen
534ae9c57a
Squashed 'docs/' changes from d3eb97a33..4895c29c5
...
4895c29c5 Document strings.Count function
git-subtree-dir: docs
git-subtree-split: 4895c29c5b
2020-09-13 21:58:53 +02:00
Bjørn Erik Pedersen
df56682a10
Merge commit '534ae9c57a902aea9ed6e62390dec11fa74b7122'
2020-09-13 21:58:53 +02:00
Bjørn Erik Pedersen
be2404c8b1
docs: Regen docs helper
2020-09-13 21:58:38 +02:00
Bjørn Erik Pedersen
c8da8eb1f5
docs: Regenerate CLI docs
2020-09-13 21:58:10 +02:00
Bjørn Erik Pedersen
787da6bd5f
releaser: Drop 32-bit for MacOS
...
Fixes #7576
2020-09-13 21:07:08 +02:00
Bjørn Erik Pedersen
85ba9bfffb
Add "hugo mod npm pack"
...
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
2020-09-13 20:55:29 +02:00
Andreas Richter
9df60b62f9
Print layout name if it was specified when showing missing layout file error
...
Fixes #7617
2020-09-13 20:36:37 +02:00
dependabot[bot]
4fad43c8bd
build(deps): bump github.com/aws/aws-sdk-go from 1.34.21 to 1.34.22
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.21 to 1.34.22.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.21...v1.34.22 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-13 18:39:37 +02:00
Fernando Jorge Mota
fb0f2cc718
markup/highlight: Add support to linkable line anchors on Chroma
...
Fixes #7622
2020-09-13 11:00:16 +02:00
Anthony Fok
748fd4cb0d
snap: Bump bundled Node.js from v8.12.0 to v12.18.3
...
Fixes #7278
2020-09-12 00:01:16 -06:00
Anthony Fok
b82f440c59
Revert "snap: Change confinement from strict to classic"
...
We need to wait until classic confinement review process at
https://forum.snapcraft.io/t/request-for-classic-confinement-for-hugo-snap/19892
is completed before "confinement: classic" uploads to the Snap Store
are accepted.
This reverts commit 6f4ff1a461 .
2020-09-11 23:56:29 -06:00
dependabot[bot]
c8143efa5d
build(deps): bump github.com/getkin/kin-openapi from 0.14.0 to 0.22.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.14.0 to 0.22.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.14.0...v0.22.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-11 22:08:53 +02:00
dependabot[bot]
c80132bbe5
build(deps): bump github.com/aws/aws-sdk-go from 1.34.20 to 1.34.21
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.34.20 to 1.34.21.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.20...v1.34.21 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-11 22:07:18 +02:00
dependabot[bot]
75fa4c5c95
build(deps): bump github.com/spf13/viper from 1.6.1 to 1.7.1
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.6.1 to 1.7.1.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.6.1...v1.7.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-11 22:06:42 +02:00
Bjørn Erik Pedersen
fd7969e0b0
deps: Run "go mod tidy"
2020-09-11 07:50:07 +02:00
Bjørn Erik Pedersen
b7fa3c4bba
deps: Update to Goldmark v1.2.1
2020-09-11 07:49:35 +02:00
Helder Pereira
6a848cbc3a
markup/asciidocext: Fix AsciiDoc TOC with code
...
Fixes #7649
2020-09-10 21:53:13 +02:00
dependabot[bot]
746ba803af
build(deps): bump github.com/aws/aws-sdk-go from 1.27.1 to 1.34.20
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.27.1 to 1.34.20.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.27.1...v1.34.20 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-10 21:42:13 +02:00
dependabot[bot]
612b7d376f
build(deps): bump github.com/mitchellh/mapstructure from 1.1.2 to 1.3.3
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.1.2 to 1.3.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.1.2...v1.3.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-10 21:39:36 +02:00
Anthony Fok
6f4ff1a461
snap: Change confinement from strict to classic
...
See gohugoio/hugoDocs#1222
2020-09-10 09:40:28 -06:00
dependabot[bot]
ddeca45933
build(deps): bump github.com/spf13/cobra from 0.0.5 to 0.0.7
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 0.0.5 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/0.0.5...0.0.7 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-10 15:11:20 +02:00
dependabot[bot]
31f2091f58
build(deps): bump github.com/sanity-io/litter from 1.2.0 to 1.3.0
...
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/sanity-io/litter/releases )
- [Changelog](https://github.com/sanity-io/litter/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sanity-io/litter/compare/v1.2.0...v1.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-10 15:09:08 +02:00
Bjørn Erik Pedersen
d4611c4322
modules: Add noVendor to module config
...
Fixes #7647
2020-09-10 08:47:05 +02:00
Bjørn Erik Pedersen
20af9a0781
modules: Add ignoreImports to module imports config
...
Fixes #7646
2020-09-10 08:47:05 +02:00
Bjørn Erik Pedersen
9a1e6d15a3
modules: Make ignoreVendor a glob pattern
...
Fixes #7642
2020-09-10 08:47:05 +02:00
dependabot[bot]
84adecf97b
build(deps): bump github.com/gorilla/websocket from 1.4.1 to 1.4.2
...
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.1...v1.4.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-09 22:39:47 +02:00
dependabot[bot]
573558a078
build(deps): bump github.com/fsnotify/fsnotify from 1.4.7 to 1.4.9
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.4.7 to 1.4.9.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.4.7...v1.4.9 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-09 22:39:25 +02:00
dependabot[bot]
8b10c22f82
build(deps): bump github.com/kyokomi/emoji
...
Bumps [github.com/kyokomi/emoji](https://github.com/kyokomi/emoji ) from 2.2.1+incompatible to 2.2.4+incompatible.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.1...v2.2.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-09 22:39:02 +02:00
dependabot[bot]
195bd1243b
build(deps): bump github.com/markbates/inflect from 1.0.0 to 1.0.4
...
Bumps [github.com/markbates/inflect](https://github.com/markbates/inflect ) from 1.0.0 to 1.0.4.
- [Release notes](https://github.com/markbates/inflect/releases )
- [Commits](https://github.com/markbates/inflect/compare/v1.0.0...v1.0.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-09 22:11:16 +02:00
dependabot[bot]
6a544ece24
build(deps): bump github.com/frankban/quicktest from 1.7.2 to 1.10.2
...
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest ) from 1.7.2 to 1.10.2.
- [Release notes](https://github.com/frankban/quicktest/releases )
- [Commits](https://github.com/frankban/quicktest/compare/v1.7.2...v1.10.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-09 22:10:25 +02:00
Ralph Slooten
4b430d456a
Encode & in livereload injected code
2020-09-09 22:09:40 +02:00
dependabot[bot]
b9f10c75cb
build(deps): bump github.com/niklasfasching/go-org from 1.3.1 to 1.3.2
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/niklasfasching/go-org/releases )
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.3.1...v1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-08 19:53:15 +02:00
dependabot[bot]
537c598e9a
build(deps): bump github.com/bep/golibsass from 0.6.0 to 0.7.0
...
Bumps [github.com/bep/golibsass](https://github.com/bep/golibsass ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/bep/golibsass/releases )
- [Commits](https://github.com/bep/golibsass/compare/v0.6.0...v0.7.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-08 19:52:29 +02:00
dependabot[bot]
67348676f7
build(deps): bump golang.org/x/text from 0.3.2 to 0.3.3
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.2...v0.3.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-08 19:52:10 +02:00
dependabot[bot]
f9cc0ec76e
build(deps): bump github.com/evanw/esbuild from 0.6.5 to 0.6.32
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.6.5 to 0.6.32.
- [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.6.5...v0.6.32 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-08 19:51:50 +02:00
dependabot[bot]
b5483eed6e
build(deps): bump github.com/nicksnyder/go-i18n from 1.10.0 to 1.10.1
...
Bumps [github.com/nicksnyder/go-i18n](https://github.com/nicksnyder/go-i18n ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/nicksnyder/go-i18n/releases )
- [Changelog](https://github.com/nicksnyder/go-i18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nicksnyder/go-i18n/compare/v1.10.0...v1.10.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-08 19:48:51 +02:00
Bjørn Erik Pedersen
90285f4750
Revert "Update dependabot.yml"
...
This reverts commit c0655ba6ce .
2020-09-08 10:28:16 +02:00
Bjørn Erik Pedersen
4949bdc2ef
markup/asciidocext: Fix broken test
2020-09-08 10:00:57 +02:00
Cameron Moore
f7c1b5fe1c
docs: Update replaceRE func
...
Updates for #7604
2020-09-07 22:45:14 +02:00
Cameron Moore
183e862607
docs: Update replace func
...
Updates for #7602
2020-09-07 22:45:14 +02:00
Cameron Moore
f50ee6bbe5
docs: Update merge function
...
Updates for #7601
2020-09-07 22:45:14 +02:00
Bjørn Erik Pedersen
c0655ba6ce
Update dependabot.yml
2020-09-07 22:08:03 +02:00
Bjørn Erik Pedersen
a2dda22c36
Create dependabot.yml
2020-09-07 21:51:49 +02:00
Bjørn Erik Pedersen
910d81a692
Remove Pygments from requirements.txt
2020-09-07 21:47:54 +02:00
Bjørn Erik Pedersen
8c490a73b3
docs: Regen CLI docs
2020-09-07 21:46:30 +02:00
Bjørn Erik Pedersen
e6cd9da42d
docs: Regen docs helper
2020-09-07 21:45:16 +02:00
Bjørn Erik Pedersen
dcf25c0b49
markup/asciidocext: Revert trace=true
2020-09-07 21:44:11 +02:00
Bjørn Erik Pedersen
7d7771b673
Squashed 'docs/' changes from 7297c1172..d3eb97a33
...
d3eb97a33 Document .IsSection page variable
a068bcf5c Ace and Amber support was removed with #6609
5cd9ca4b2 Mention MacPorts also on the Installing page (#1215 )
0ae8f5c19 Add instructions for using Macports
d50aba8f0 Revise ref and relref function pages
a17e25d6f Update quick-start.md: move notice about drafts up
cf87a5da2 Update macOS tarball installation instructions (#1203 )
2e701f8f3 Corrected the url for index function link
736bd59e0 Clarify treatment of zero weights (#1207 )
42a19f479 Fix example of output from urlize function
34f8de26d Revise content-management/cross-references
252435a95 Rewrite Translation of Strings
f0882bc14 Remove note that has been outdated by v0.71.0
dfe28ceb5 Improve mounts module config
58029627d Fix erroneous example code piping to if
git-subtree-dir: docs
git-subtree-split: d3eb97a332
2020-09-07 21:37:51 +02:00
Bjørn Erik Pedersen
b9e4f5898b
Merge commit '7d7771b673e5949f554515a2c236b23192c765c8'
2020-09-07 21:37:51 +02:00
Bjørn Erik Pedersen
e820b366b9
Update to Go 1.15.1 and 1.14.8
...
Fixes #7627
2020-09-07 21:37:34 +02:00
Bjørn Erik Pedersen
4055c12184
Fix some change detection issues on server reloads
...
* 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
2020-09-07 21:06:44 +02:00
Nicolas Piganeau
3ba7c92530
markup/asciidoc: Add support for .TableOfContents
...
Fill the .TableOfContents template variable when writing Asciidoc content.
This is done by letting Asciidoc render its TOC as HTML, then extract this
HTML rendered TOC, parse it into a tableofcontents.Root and finally remove
it from the HTML content.
This aims to stay in the logic that the Asciidoc parsing is entirely done
by the external helper.
See #1687
2020-09-06 11:34:32 +02:00
Bjørn Erik Pedersen
19ef27b98e
markup/goldmark: Add a test case
...
Updates #7619
2020-09-04 10:23:02 +02:00
Andreas Richter
c6b661de82
js.Build: Add SourceMap flag with inline option
...
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
2020-09-01 16:19:08 +02:00
Cameron Moore
cdfd1c99ba
tpl: Add limit support to replaceRE
...
Go stdlib doesn't contain a limited replace in the regexp package, but
we can accomplish the same thing with ReplaceAllStringFunc.
Fixes #7586
2020-08-28 18:57:56 +02:00
Cameron Moore
047af7cfe5
tpl: Extend merge to accept multiple parameters
...
Fixes #7595
2020-08-28 09:54:51 +02:00
Cameron Moore
f9ebaaed1b
tpl: Add limit option to replace template function
...
Updates #7586
2020-08-28 08:55:58 +02:00
Jeff Warner
d39636a5fc
commands: Remove logic that hides 'Building Sites' message after build completes
...
Append newline to the message instead.
Fixes #7579
2020-08-22 09:56:43 +02:00
Aurken Bilbao
ad01aea3f4
Fixed misspelled words
2020-08-20 22:34:35 +02:00
Bjørn Erik Pedersen
ec37420468
Improve stderr logging for PostCSS and simlilar
...
Fixes #7584
2020-08-20 22:32:20 +02:00
Bjørn Erik Pedersen
ae63c2b5c9
Fail on partials with return when given none or a zero argument
...
We need to make a proper fix for this, but it is better with an error than just silently continue.
Fixes #7572
Updates #7528
2020-08-19 10:01:16 +02:00
Bjørn Erik Pedersen
e627449c0a
Update to Go 1.15
...
Fixes #7554
2020-08-16 21:37:26 +02:00
Bjørn Erik Pedersen
c2235c6a62
Revert "Update stale.yml"
...
This reverts commit 4f69ade711 .
2020-08-16 18:25:14 +02:00
Bjørn Erik Pedersen
4f69ade711
Update stale.yml
2020-08-15 00:21:08 +02:00
Bjørn Erik Pedersen
f8b8b091fc
Merge commit 'cb39847dee488c373dd5bc2a3706385342a59355'
2020-08-14 18:31:40 +02:00
Bjørn Erik Pedersen
cb39847dee
Squashed 'docs/' changes from a26d0e610..7297c1172
...
7297c1172 Add note about caching for Hugo Pipes.
c91be3403 minor markdown, capitalization and spelling fixes (#1183 )
fd4a103bf Fix several 404 errors (#1162 )
69378bc20 Update related.md
28c24e95f Add note on setting baseURL
7b1502c99 minor typo fix (#1180 )
33abeb4fe Update related.md
4887563f6 Update js.md
ee5f1de2e Hugo 0.74.3
986ea0c8e releaser: Add release notes to /docs for release of 0.74.3
3299b44bd Fix Asciidoctor args
bcb950347 resources/js: Add option for setting bundle format
3f8324918 resources/js: Add es5 build target
git-subtree-dir: docs
git-subtree-split: 7297c11727
2020-08-14 18:31:01 +02:00
Kyle Anderson
5f42590144
Remove trailing whitespace and tabs from RSS templates
...
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.
2020-08-12 09:25:16 +02:00
Fabian Tamp
f3cb0be35a
Fix a typo in CONTRIBUTING.md
...
The URL `git://github.com/USERNAME/hugo.git` is invalid; it should instead be either `https://github.com/USERNAME/hugo.git ` or `git@github.com:USERNAME/hugo.git`. I chose the latter for this PR.
2020-08-07 19:35:48 +02:00
Joe Mooring
bffc4e12fe
Revert "Fix ellipsis display logic in pagination template"
...
This reverts commit 2fa851e650 .
2020-08-06 13:42:08 +02:00
satotake
12f6a1cdc0
Respect mediatypes for deploy
...
Fixes #6861
2020-08-03 19:06:18 +02:00
Joe Mooring
2fa851e650
Fix ellipsis display logic in pagination template
...
Closes #7523
2020-07-31 16:08:23 +02:00
Ricardo N Feliciano
21dbfa1f11
mage: Add uninstall target
2020-07-30 08:44:51 +02:00
Joe Mooring
e5591e89d3
deps: Update Chroma to 0.8.0
...
Closes #7517
2020-07-27 22:12:54 +02:00
Niklas Fasching
88929bc23f
deps: Update go-org to v1.3.1
...
fixes a bug in list item parsing
2020-07-24 19:48:44 +02:00
hugoreleaser
850c18bfe4
releaser: Prepare repository for 0.75.0-DEV
...
[ci skip]
2020-07-23 16:33:19 +00:00
hugoreleaser
da0437b481
releaser: Add release notes to /docs for release of 0.74.3
...
[ci skip]
2020-07-23 16:21:21 +00:00
hugoreleaser
90fe00df07
releaser: Bump versions for release of 0.74.3
...
[ci skip]
2020-07-23 16:21:21 +00:00
hugoreleaser
02efadc243
releaser: Add release notes for 0.74.3
...
[ci skip]
2020-07-23 16:21:21 +00:00
Bjørn Erik Pedersen
00e00da233
publisher: Collect transition attributes as classes
...
Fixes #7509
2020-07-23 16:21:58 +02:00
Helder Pereira
45c665d396
Fix Asciidoctor args
...
* Fix Asciidoctor args
* Fix Asciidoctor args documentation
* Update AsciiDoc documentation
Co-authored-by: Derk Muenchhausen <derk@muenchhausen.de >
Fixes #7493
2020-07-23 15:59:48 +02:00
Joe Mooring
a06c06a5c2
Fix date format in internal schema template
...
Prior to this change, the offset indicator for dates with positive
offsets was rendered as + instead of +.
Fixes #7495
2020-07-23 15:57:20 +02:00
Bjørn Erik Pedersen
0256959a35
resources/js: Add option for setting bundle format
...
Fixes #7503
2020-07-22 10:13:30 +02:00
Bjørn Erik Pedersen
eded9ac2a0
resources/js: Simplify options handling
...
Mostly to minify cache hash breakage.
Updates #7499
2020-07-22 10:13:30 +02:00
Philipp Klose
8d72512825
make sure documentation intro text only appears once
2020-07-21 00:47:55 +02:00
Bjørn Erik Pedersen
e81aef0a95
resources/js: Add es5 build target
2020-07-20 22:26:38 +02:00
Bjørn Erik Pedersen
673e622fa9
Merge commit '28bd06265e88454b061810578919d891909a83ad'
2020-07-20 22:20:33 +02:00
Bjørn Erik Pedersen
28bd06265e
Squashed 'docs/' changes from c3b4f8410..a26d0e610
...
a26d0e610 Add documentation to js.Build (#1175 )
439a22c3e Update index.md
7a779b39a Hugo 0.74.2
07cb5740c Merge branch 'temp742'
abcea676c releaser: Add release notes to /docs for release of 0.74.2
e0dcdbfea Revert "Adding an issue link to the issue creation workflow (#1023 )"
21c7131f1 Adding an issue link to the issue creation workflow (#1023 )
922afb18b Update index.md
b9512b192 Update index.md
b7af5993c Update index.md
816f864b6 Release 0.74.1
1732f3461 Merge branch 'temp741'
d473f21c1 releaser: Add release notes to /docs for release of 0.74.1
bb234e9cd Add release notes 0.74.0
5cb3166d4 releaser: Add release notes to /docs for release of 0.74.0
7f35a3800 Merge commit '823ce055ed3356da37e9ec4ac70446bdbbaa8de8'
4b7054be5 docs: Regenerate docs helper
1d86f0aed Merge commit '6aa5c9117fd34644459ea9bcfb1b3f5010658d5d'
068b2ab28 Update formats.md doc for new allowed extensions.
d71ed99d3 Add support for inline partials
efe0e549c Rework external asciidoctor integration
git-subtree-dir: docs
git-subtree-split: a26d0e6104
2020-07-20 22:19:42 +02:00
Bjørn Erik Pedersen
9f9191471e
deps: esbuild v0.6.5
2020-07-20 22:19:08 +02:00
hugoreleaser
3727a9d111
releaser: Prepare repository for 0.75.0-DEV
...
[ci skip]
2020-07-17 17:35:17 +00:00
hugoreleaser
48565de62f
releaser: Add release notes to /docs for release of 0.74.2
...
[ci skip]
2020-07-17 17:22:42 +00:00
hugoreleaser
808e126216
releaser: Bump versions for release of 0.74.2
...
[ci skip]
2020-07-17 17:22:42 +00:00
hugoreleaser
aa85a46dc6
releaser: Add release notes for 0.74.2
...
[ci skip]
2020-07-17 17:22:42 +00:00
Bjørn Erik Pedersen
35011bcb26
Add .Defines to js.Build options
...
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
2020-07-17 19:09:09 +02:00
hugoreleaser
084624baac
releaser: Prepare repository for 0.75.0-DEV
...
[ci skip]
2020-07-13 19:06:13 +00:00
hugoreleaser
15163266c1
releaser: Add release notes to /docs for release of 0.74.1
...
[ci skip]
2020-07-13 18:52:36 +00:00
hugoreleaser
a74f7d3cc0
releaser: Bump versions for release of 0.74.1
...
[ci skip]
2020-07-13 18:52:36 +00:00
hugoreleaser
cb84d98169
releaser: Add release notes for 0.74.1
...
[ci skip]
2020-07-13 18:52:36 +00:00
Bjørn Erik Pedersen
c91dbe4ce9
Fix baseof block regression
...
From Hugo 0.74.0.
Fixes #7478
2020-07-13 20:45:09 +02:00
hugoreleaser
6e0452e189
releaser: Prepare repository for 0.75.0-DEV
...
[ci skip]
2020-07-13 10:42:11 +00:00
hugoreleaser
d2b1162680
releaser: Add release notes to /docs for release of 0.74.0
...
[ci skip]
2020-07-13 10:30:11 +00:00
hugoreleaser
6265184309
releaser: Bump versions for release of 0.74.0
...
[ci skip]
2020-07-13 10:30:11 +00:00
Bjørn Erik Pedersen
797127010d
Release 0.74.0
2020-07-13 12:20:41 +02:00
hugoreleaser
1672a332da
releaser: Add release notes for 0.74.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-07-13 09:47:04 +00:00
Bjørn Erik Pedersen
823ce055ed
Squashed 'docs/' changes from cfd74b57d..c3b4f8410
...
c3b4f8410 Update theme
0aaecc16c Remove unnecessary period. (#1168 )
git-subtree-dir: docs
git-subtree-split: c3b4f84106
2020-07-13 11:01:55 +02:00
Bjørn Erik Pedersen
5f7a65a080
Merge commit '823ce055ed3356da37e9ec4ac70446bdbbaa8de8'
2020-07-13 11:01:55 +02:00
Bjørn Erik Pedersen
25e3da3343
docs: Regenerate docs helper
2020-07-13 11:01:38 +02:00
Bjørn Erik Pedersen
9df98ec49c
Add proper Media Type handling in js.Build
...
See #732
2020-07-13 10:56:23 +02:00
Remko Tronçon
2fc3380707
Add js.Build asset bundling
...
Fixes #7321
2020-07-13 10:56:23 +02:00
Bjørn Erik Pedersen
f1916f114b
Merge commit '6aa5c9117fd34644459ea9bcfb1b3f5010658d5d'
2020-07-07 07:00:01 +02:00
Bjørn Erik Pedersen
6aa5c9117f
Squashed 'docs/' changes from ac2c4a487..cfd74b57d
...
cfd74b57d Add a config file update step.
5957d8815 Wrap cache configuration in code-toggle
914405c0e capitalization and indentation fix for taxonomies page (#1159 )
223b80f42 Fix page kinds shortcode not rendering on Taxonomies page (#1158 )
a9b6fa984 Clarify weight description.
29e121681 Warn about zero weights in front matter.
27ce7ba8c Release 0.73.0
e9596b2ee Merge branch 'temp73'
074a270cd releaser: Add release notes to /docs for release of 0.73.0
4f56a9fc0 width fix of expanding code box in documentation (#1156 )
f27254d60 css fix of expanding code box in documentation (#1155 )
43b576178 Fix incorrect directory name in quick-start (#1154 )
16726eacf Add GroupByLastmod
73c31758e Fix for broken link again (#1151 )
d07067295 Fix broken link (#1144 )
bc0b484d1 Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy
674d71842 Fix Typo on Docker section of installation page
b87778165 Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171'
c7cdebed3 tpl/crypto: Add hmac
260130cc0 Allow hook template per section/type
1f70519d8 releaser: Add release notes to /docs for release of 0.72.0
8516d540c Merge commit '9e1dcefc5f559944b70d2fa520f6acd5c56a69f2'
c49195c69 common/maps: Add Scratch.Values
78072df81 Add redirect support to the server
90ca0af6b Fix typo in install instructions
git-subtree-dir: docs
git-subtree-split: cfd74b57d9
2020-07-07 06:58:43 +02:00
Bjørn Erik Pedersen
12a65e76df
Add openapi3.Unmarshal
...
Fixes #7442
Fixes #7443
2020-07-06 20:03:36 +02:00
Joe Mooring
58c0f5e617
Remove trailing hyphen from auto heading ID
...
Applicable when autoHeadingIDType is either `github` or `github-ascii`.
When autoHeadingIDType is `blackfriday`, the existing code removes
trailing whitespace while iterating through the characters, using
a boolean "futureDash" mechanism.
Fixes #6798
2020-07-05 14:13:02 +02:00
Robert van Gent
a1c3e3c1f3
deploy: Ensure that non-trivial default flag values are passed through.
2020-07-04 21:19:25 +02:00
Bjørn Erik Pedersen
42e150fbfa
Fix server reload when non-HTML shortcode changes
...
Fixes #7448
2020-07-03 23:31:51 +02:00
Bjørn Erik Pedersen
028b356787
tpl/strings: Add strings.Count
...
Fixes #7453
2020-07-03 10:35:46 +02:00
Bryan Klein
e9f87c4e3f
Update formats.md doc for new allowed extensions.
...
This PR documents the changes made in https://github.com/gohugoio/hugo/pull/7447/files adding two other extensions to the Allowed list.
2020-07-03 01:27:51 +02:00
Bjørn Erik Pedersen
defd7106bf
tpl: Add debug.Dump
...
Fixes #3957
2020-07-02 09:04:46 +02:00
Bryan Klein
beb6c03bc8
Update config.go to add two Asciidoctor extensions
...
Added two common extensions to allow my Hugo+Asciidoctor site to build with the new configuration.
2020-07-02 07:57:43 +02:00
Bjørn Erik Pedersen
4a3efea7ef
Add support for inline partials
...
Fixes #7444
2020-07-01 23:10:21 +02:00
Sebastian Boehm
c66dc6c74f
Add support for native Org dates in frontmatter
2020-06-30 10:30:55 +02:00
Niklas Fasching
127d5feb32
deps: Update go-org to v1.3.0
...
- Add support for image links (i.e. link with image as description)
- Kinda breaking: Wrap headlines and headline+content in containers as emacs
Org mode does. Could break people's styles - I don't expect it, but who knows
what counts as sane when it comes to css.
Before:
```
<h2 id="headline-1">FOO</h2>
foo bar
```
After:
```
<div id="outline-container-headline-1" class="outline-2">
<h2 id="headline-1">FOO</h2>
<div id="outline-text-headline-1" class="outline-text-2">
foo bar
</div>
</div>
```
2020-06-29 18:08:06 +02:00
Niklas Fasching
2d42ba912b
deps: Update go-org to v1.2.0
...
- Add support for #+MACRO
- fix a bug with #+LINK (edge case, should never happen anyways :TM:)
- Make title export optional (add export option)
- Remove cosmetic whitespace added by go-org (for easier visual
diffing) inside p tags (<p>\nfoo\n</p> => <p>foo</p>)
(should make `white-space: pre` on p look more in line with expectations)
- implement table separators via multiple tbodies (the html spec is ok with
that)
2020-06-27 13:28:01 +02:00
Bjørn Erik Pedersen
5b7b5dea1f
Update bug_report.md
2020-06-26 21:03:09 +02:00
Bjørn Erik Pedersen
ccfaeb678b
hugolib: Add missing zero check on file
2020-06-26 13:27:01 +02:00
Bjørn Erik Pedersen
057b1377c5
cache: Remove some unused code
2020-06-25 17:34:58 +02:00
Bjørn Erik Pedersen
48dbb593f7
commands: Add an option to print memory usage at intervals
...
Use it with `hugo --print-mem
2020-06-25 12:19:21 +02:00
Derk Muenchhausen
f0266e2ef3
Rework external asciidoctor integration
...
This commit solves the relative path problem with asciidoctor tooling. An include will resolve relatively, so you can refer easily to files in the same folder.
Also `asciidoctor-diagram` and PlantUML rendering works now, because the created temporary files will be placed in the correct folder.
This patch covers just the Ruby version of asciidoctor. The old AsciiDoc CLI EOLs in Jan 2020, so this variant is removed from code.
The configuration is completely rewritten and now available in `config.toml` under the key `[markup.asciidocext]`:
```toml
[markup.asciidocext]
extensions = ["asciidoctor-html5s", "asciidoctor-diagram"]
workingFolderCurrent = true
trace = true
[markup.asciidocext.attributes]
my-base-url = "https://example.com/ "
my-attribute-name = "my value"
```
- backends, safe-modes, and extensions are now whitelisted to the popular (ruby) extensions and valid values.
- the default for extensions is to not enable any, because they're all external dependencies so the build would break if the user didn't install them beforehand.
- the default backend is html5 because html5s is an external gem dependency.
- the default safe-mode is safe, explanations of the modes: https://asciidoctor.org/man/asciidoctor/
- the config is namespaced under asciidocext_config and the parser looks at asciidocext to allow a future native Go asciidoc.
- `uglyUrls=true` option and `--source` flag are supported
- `--destination` flag is required
Follow the updated documentation under `docs/content/en/content-management/formats.md`.
This patch would be a breaking change, because you need to correct all your absolute include pathes to relative paths, so using relative paths must be configured explicitly by setting `workingFolderCurrent = true`.
2020-06-25 09:51:33 +02:00
Bjørn Erik Pedersen
77aa385b84
Enable the embedded template test when race detector is off
...
See #5926
2020-06-25 09:16:28 +02:00
Bjørn Erik Pedersen
545a1c1ced
Merge branch 'release-0.73.0'
2020-06-23 18:45:33 +02:00
hugoreleaser
47aaa52e39
releaser: Prepare repository for 0.74.0-DEV
...
[ci skip]
2020-06-23 16:42:50 +00:00
hugoreleaser
428907cc34
releaser: Add release notes to /docs for release of 0.73.0
...
[ci skip]
2020-06-23 16:29:21 +00:00
hugoreleaser
a78b3e3415
releaser: Bump versions for release of 0.73.0
...
[ci skip]
2020-06-23 16:29:21 +00:00
Bjørn Erik Pedersen
cfcb014515
Release 0.73.0
2020-06-23 18:21:12 +02:00
Mateusz Szczyrzyca
0b579db80f
Updated installation instruction about Sass/SCSS support
2020-06-23 17:08:29 +02:00
hugoreleaser
ee5d027cd5
releaser: Add release notes for 0.73.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-06-23 08:57:01 +00:00
Bjørn Erik Pedersen
4a340ba254
Remove some old release notes
2020-06-23 09:37:25 +02:00
Nico
3466884e36
Create robots.txt in the domain root directory
...
Before a robots.txt is created in every Site. So in public/robots.txt if there are no languages (was correct). But if there are multiple languages in every language directory, too (was wrong). If defaultContentLanguageInSubdir is true, no language is created into the root directory, so no robots.txt is in the root directory (was wrong). If multihosts are configured for each language, that is the only case where one robots.txt must be created in each language directory (was correct).
I've changed the behaviour, that only in the multihost case the robots.txt is created in the language directories. In any other case it is created in public/robots.txt. I've also added tests that files are not created in the wrong directories.
Fixes #5160
See also #4193
2020-06-20 17:13:26 +02:00
Bjørn Erik Pedersen
6ff435aa3f
Make GroupByParamDate work with string params
...
Fixes #3983
2020-06-19 11:58:58 +02:00
Bjørn Erik Pedersen
82abca32fa
Add GroupByLastmod
...
Fixes #7408
2020-06-19 11:58:58 +02:00
Bjørn Erik Pedersen
fc045e12a9
Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy
...
And we have taken great measures to limit potential site breakage:
* For `disableKinds` and `outputs` we try to map from old to new values if possible, if not we print an ERROR that can be toggled off if not relevant.
* The layout lookup is mostly compatible with more options for the new `term` kind.
That leaves:
* Where queries in site.Pages using taxonomy/taxonomyTerm Kind values as filter.
* Other places where these kind value are used in the templates (classes etc.)
Fixes #6911
Fixes #7395
2020-06-18 09:09:56 +02:00
Helder Pereira
9679023f2b
Fix aliases with path in baseURL
2020-06-17 10:52:35 +02:00
Bjørn Erik Pedersen
0a9172672a
Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171'
2020-06-16 14:19:31 +02:00
Bjørn Erik Pedersen
efa74c5c6e
Squashed 'docs/' changes from 9be494de3..ac2c4a487
...
ac2c4a487 Update documentation for Ugly URLs (#1082 )
88bdec17a Change 072.0 to 0.72.0 in release post's description
2aa7d7818 Update rss.md (#1104 )
c80677aeb Update quick-start.md (#1076 )
d04196bbd Minor spelling and capitalization fixes
837d2feba Fixed spelling mistake
67dc78e12 Update installing.md
ce280c5d6 Update relurl.md
bb4d0e703 Capitalization and Redirecting URL fixes
e1fecada0 Update partials.md
1d99bb182 Typos and whitespacing issues fixed
b20dba125 actually fix index function link this time
f47d6f1e3 Fixing typos, whitespace issues and links
dc82309b9 fix link to the index function
1eab0cbea add missing word (#1130 )
9c3ee62ae more fixes
e9bc5880a whitespace, typos and HTTPS fixes
93b806493 Add missing word to Module section
80ced9062 Display image on page bundles page.
727029b0a Update index.md
51fc48e4d Release 0.72.0
1ff68ac3b releaser: Add release notes to /docs for release of 0.72.0
f74a25b92 common/maps: Add Scratch.Values
2fd83db96 Add redirect support to the server
bdfccf9f4 Fix typo in install instructions
e12737ea6 Create SUPPORT.md
git-subtree-dir: docs
git-subtree-split: ac2c4a4871
2020-06-16 14:18:51 +02:00
Bjørn Erik Pedersen
6408c1cbc8
Fix server data race/nil pointer in withMaps
...
Fixes #7392
2020-06-16 11:48:10 +02:00
Bjørn Erik Pedersen
522ba1cd98
Fix order of GetTerms
...
Preserve the order from front matter, which would be behaviour when doing this manually (before GetTerms).
Fixes #7213
2020-06-15 22:23:02 +02:00
Cameron Moore
889dc47ceb
Add genDocsHelper mage target
...
Expose the functionality of the hidden `hugo gen docshelper` command as
a mage target.
2020-06-15 20:07:28 +02:00
Helder Pereira
f720fe56db
Fix aliases with uglyURLs
2020-06-15 12:19:59 +02:00
Bjørn Erik Pedersen
d6ed17c60f
Fix crash for closing shortcode with no .Inner set
...
Fixes #6857
Closes #7330
2020-06-14 20:19:08 +02:00
Helder Pereira
145b3fcce3
Fix aliases with relativeURLs
2020-06-14 14:08:41 +02:00
Bjørn Erik Pedersen
01e249e97c
Regenerate templates
2020-06-12 11:29:04 +02:00
Joe Mooring
4b560cc119
Beautify HTML generated by pagination template
...
Fixes #7199 .
2020-06-12 11:27:20 +02:00
Bjørn Erik Pedersen
e3e627e6b7
Add a nested data dir test
...
Ref. a discussion.
2020-06-12 09:14:20 +02:00
Raphael Krupinski
83d03a5201
hugofs: Use os.PathError in RootMappingFs.doLstat
2020-06-11 14:59:01 +02:00
Bjørn Erik Pedersen
fc0f13b684
commands: Fix URL rewrites vs fast render server mode
...
Fixes #7357
2020-06-06 12:37:42 +02:00
Edouard
7eeebe1e5a
tpl/crypto: Add hmac
2020-06-05 20:04:11 +02:00
Alexandros
740fa4a91d
Remove credit ( #7347 )
2020-06-02 19:31:15 +02:00
Bjørn Erik Pedersen
f8c67f93e1
Allow hook template per section/type
...
Fixes #7349
2020-06-02 19:02:10 +02:00
Sam Smith
3d9235e8fc
tpl: Fix bad rounding in NumFmt
...
strconv.FormatFloat doesn't round properly sometimes, this adds a
different method of rounding, fixes #7116
2020-06-02 17:20:36 +02:00
hugoreleaser
f7d909f394
releaser: Prepare repository for 0.73.0-DEV
...
[ci skip]
2020-05-31 12:16:50 +00:00
hugoreleaser
8a7ef3cf4e
releaser: Add release notes to /docs for release of 0.72.0
...
[ci skip]
2020-05-31 12:05:36 +00:00
hugoreleaser
2dfe242ea6
releaser: Bump versions for release of 0.72.0
...
[ci skip]
2020-05-31 12:05:36 +00:00
Bjørn Erik Pedersen
7a1464e547
Release 0.72.0
2020-05-31 13:48:27 +02:00
hugoreleaser
41d50b4dd3
releaser: Add release notes for 0.72.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-05-31 11:03:50 +00:00
Bjørn Erik Pedersen
4d53ae697e
releaser: Adjust the "thanks" section
2020-05-31 12:46:18 +02:00
Bjørn Erik Pedersen
626b16e024
Merge commit '9e1dcefc5f559944b70d2fa520f6acd5c56a69f2'
2020-05-31 12:43:33 +02:00
Bjørn Erik Pedersen
9e1dcefc5f
Squashed 'docs/' changes from 6c2195936..9be494de3
...
9be494de3 Clean up the markup config
c3e123133 Remove JustComment
bc1b02bc5 Add Smart to Anchor section
49e796409 Added where .RegularPagesRecursive was added
a92296e31 Fixed the new-in shortcode in pages-vs-site-pages
051e1267c Documented .RegularPagesRecursive
5bcec88a3 Fix broken link in RSS templates page
3db79d433 Correct pull request link on migrations.md
55c347168 Release 0.71.1
11a4e36c3 Merge branch 'temp711'
481fc8ed6 releaser: Add release notes to /docs for release of 0.71.1
40ba83c26 Update site.md
382632b58 Use-modules: More help how to get started importing a theme (#1107 )
06751d465 Addition of hugefastsearch to search options (#1118 )
8346d3b18 Add example of how to set the permalinks option for pages in "root"
ebb3b4f3a Refine highlight shortcode options
1075a172a Update index.md
7cc927ea6 Fix typo in v0.71.0 release notes
4121da273 Pull in latest theme version to get link hooks
4809be651 Document render-heading feature
2078a3bd1 Release 0.71.0
c09f6899e releaser: Add release notes to /docs for release of 0.71.0
90ffe2b50 Merge commit 'c9403cbceaaeff53ff4833561f4eefe1dc1a405e'
bf3dd0837 Add math.Pow
git-subtree-dir: docs
git-subtree-split: 9be494de3a
2020-05-31 12:43:23 +02:00
Bjørn Erik Pedersen
2919a6a503
common/maps: Add Scratch.Values
...
Fixes #7335
2020-05-29 19:51:49 +02:00
Bjørn Erik Pedersen
432885c499
deps: Update Goldmark to improve Typographer
...
See https://github.com/yuin/goldmark/releases/tag/v1.1.31
See #7289
2020-05-29 19:02:30 +02:00
Bjørn Erik Pedersen
6a3e89743c
Add redirect support to the server
...
Fixes #7323
2020-05-28 16:25:34 +02:00
Yash Murty
9613e3e8a8
Fix typo in install instructions
2020-05-27 13:54:11 +02:00
Bjørn Erik Pedersen
c950c86b4e
publisher: Fix tag collector for nested table elements
...
Fixes #7318
2020-05-27 11:10:48 +02:00
Anthony Fok
915202494b
snap: Fix build error: my previous commits did not fix it
...
- Revert to legacy snap and my custom plugin x-nodejs for now
- Quote "@babel/cli" and add "@babel/core"
- Change bin/babel.js to bin/babel
2020-05-25 11:26:26 -06:00
hugoreleaser
b3e4f911f4
releaser: Prepare repository for 0.72.0-DEV
...
[ci skip]
2020-05-25 09:21:10 +00:00
hugoreleaser
a301f6b2ae
releaser: Add release notes to /docs for release of 0.71.1
...
[ci skip]
2020-05-25 09:08:55 +00:00
hugoreleaser
646bc85088
releaser: Bump versions for release of 0.71.1
...
[ci skip]
2020-05-25 09:08:55 +00:00
hugoreleaser
5c0d10045d
releaser: Add release notes for 0.71.1
...
[ci skip]
2020-05-25 09:08:55 +00:00
Bjørn Erik Pedersen
81f5633245
Add some more date test cases
...
See #7310
2020-05-24 14:35:49 +02:00
Bjørn Erik Pedersen
9698b0dab1
Fix RenderString vs render hooks
...
Fixes #7265
2020-05-24 13:20:57 +02:00
Bjørn Erik Pedersen
32344fe3db
Prevent WARNINGs in RenderString
2020-05-24 12:49:45 +02:00
Bjørn Erik Pedersen
4d7fa9f114
Fix IsAncestor/IsDescendant for taxonomies
...
Fixes #7305
2020-05-24 12:35:45 +02:00
Bjørn Erik Pedersen
a985efcecf
Fix GetPage on section/bundle name overlaps
...
In the internal Radix we stored the directory based nodes without a traling slash, e.g. `/blog`.
The original motivation was probably to make it easy to do prefix searching: Give me all ancestors.
This, however have lead to some ambigouty with overlapping directory names.
This particular problem was, however, not possible to work around in an easy way, so from now we store these as `/blog/`.
Fixes #7301
2020-05-24 12:35:45 +02:00
Bjørn Erik Pedersen
6c3c6686f5
Fix Go template script escaping
...
Fixes #6695
2020-05-23 22:00:34 +02:00
Bjørn Erik Pedersen
c34bf48560
Add a test helper
2020-05-22 10:57:25 +02:00
hugoreleaser
833d16d467
releaser: Prepare repository for 0.72.0-DEV
...
[ci skip]
2020-05-18 16:18:12 +00:00
hugoreleaser
06150c87be
releaser: Add release notes to /docs for release of 0.71.0
...
[ci skip]
2020-05-18 16:05:47 +00:00
hugoreleaser
330e52ebe6
releaser: Bump versions for release of 0.71.0
...
[ci skip]
2020-05-18 16:05:47 +00:00
Bjørn Erik Pedersen
9e78235374
Release 0.71
2020-05-18 17:57:12 +02:00
hugoreleaser
7cd66c53b9
releaser: Add release notes for 0.71.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-05-18 15:47:00 +00:00
Bjørn Erik Pedersen
723ec555e7
Fix Babel on Windows
...
Fixes #7251
2020-05-18 16:57:13 +02:00
Bjørn Erik Pedersen
518d149646
commands: Use WARN log level also for the early initialization
...
Fixes #7285
2020-05-18 16:52:45 +02:00
Bjørn Erik Pedersen
e0e81b280f
Merge commit 'c9403cbceaaeff53ff4833561f4eefe1dc1a405e'
2020-05-18 15:25:26 +02:00
Bjørn Erik Pedersen
c9403cbcea
Squashed 'docs/' changes from ec0abe052..6c2195936
...
6c2195936 Update featured.png
109a0fcca add len function to navigation side menu
39a356bc5 Revert "Add some rickrolls redirects"
b8393b1b5 Add some rickrolls redirects
2ce21c34b Update configuration-markup.md (add rel="noopener")
95bd7974e Disambiguate global and page resources
5e233dc4b Update base.md
959b9dc3a Fix typo on "where" page
aff8059a1 Release 0.70.0
44a172ac0 releaser: Add release notes to /docs for release of 0.70.0
1b01c8988 Release 0.70.0
5ece21c6c Merge commit '89044b8f8795f17c36396c67823183a20fc88139'
0894aec5b Rename transpileJS to babel
5da27c7a6 resources: Add JavaScript transpiling solution
git-subtree-dir: docs
git-subtree-split: 6c21959360
2020-05-18 15:24:58 +02:00
Bjørn Erik Pedersen
3cc41523be
Update to Go 1.14.3 and Go 1.13.11
2020-05-16 23:25:45 +02:00
Bjørn Erik Pedersen
2fd0a5a678
Improve error message when no Babel installed
2020-05-16 12:51:35 +02:00
Cameron Little
6e051c053e
Add test for headings render hook
2020-05-15 21:12:43 +02:00
Eli W. Hunter
423b8f2fb8
Add render template hooks for headings
...
This commit also
* Renames previous types to be non-specific. (e.g. hookedRenderer rather
than linkRenderer)
Resolves #6713
2020-05-15 21:12:43 +02:00
Joe Mooring
991934497e
Add math.Pow
...
Closes #7266
2020-05-14 10:00:31 +02:00
John Weldon
558c09305e
deploy: Do not suppress .well-known/ directory
...
Deployments ignore directories with a leading `.`, but should not ignore
certain well known 'hidden' directories like `.well-known/`
Fixes #6691
2020-05-14 09:56:53 +02:00
Anthony Fok
b69a36140f
snap: Quote "@babel/cli" to solve build error
...
Cannot parse snapcraft.yaml from ~gohugoio/hugo/+git/hugo:master:
while scanning for the next token found character ‘@’ that cannot
start any token in “”, line 70, column 34: node-packages:
[postcss-cli, @babel/cli] ^
Also:
- Upgrade to snapcraft 3.x by adding "base: core"
- Add "license: Apache-2.0"
2020-05-12 14:29:57 -06:00
Anthony Fok
a0103864ab
snap: Remove custom x-nodejs plugin
...
My changes have been merged into snapcraft upstream.
https://bugs.launchpad.net/snapcraft/+bug/1795531
https://bugs.launchpad.net/snapcraft/+bug/1797374
Revert "snap: Add custom x-nodejs plugin to support ppc64el and s390x"
This reverts commit 91f49c0700 .
2020-05-12 14:27:57 -06:00
Cameron Little
b342e8fbdb
Upgrade chroma to 0.7.3 to fix invalid css
...
The new version of chroma includes a fix to not emit styles for tokens
without a class (which is invalid).
Fixes #7207
2020-05-09 17:05:14 +02:00
Daniel Tipping
6205d56b85
Use .Lastmod for og:updated_time
...
.Lastmod is the time at which the website was most recently updated,
rather than .Date which is the time at which the website content file
was created.
2020-05-07 18:42:20 +02:00
hugoreleaser
a5039dddaf
releaser: Prepare repository for 0.71.0-DEV
...
[ci skip]
2020-05-06 11:29:18 +00:00
hugoreleaser
7f47b99ea9
releaser: Add release notes to /docs for release of 0.70.0
...
[ci skip]
2020-05-06 11:16:40 +00:00
hugoreleaser
b98e2f66b0
releaser: Bump versions for release of 0.70.0
...
[ci skip]
2020-05-06 11:16:40 +00:00
Bjørn Erik Pedersen
57ebab7c23
Release 0.70.0
2020-05-06 13:06:10 +02:00
hugoreleaser
0e314925fb
releaser: Add release notes for 0.70.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-05-06 10:24:22 +00:00
Bjørn Erik Pedersen
e4621446ce
Merge commit '89044b8f8795f17c36396c67823183a20fc88139'
2020-05-06 12:12:57 +02:00
Bjørn Erik Pedersen
89044b8f87
Squashed 'docs/' changes from 19f44e150..ec0abe052
...
ec0abe052 Update index.md
ed44339cd Update bio.md
cef04eb95 Minor edits
4d45dcc8d Submitting Digital.gov to the Hugo Showcase
d35126af7 Azure uses storage containers, not buckets; edited accordingly. (#1078 )
9c249cc89 fix grammatical error
9728699a3 Release Hugo 0.69.2
cccabed0c Merge branch 'temp692'
3d0a740c4 releaser: Add release notes to /docs for release of 0.69.2
b760aceb1 HTTPS external links in docs
49e4631b0 Release 0.69.1
01f3da870 Merge branch 'temp691'
8280d85aa releaser: Add release notes to /docs for release of 0.69.1
40ea44d24 fix typo (#1088 )
725f53643 Rebuild cache
80ee1efd9 Add KeyCDN Showcase
f253e906e docs: Fix typo in Hugo's Security Model
b3ffd1ad3 Mentioning a range is equivalent to foreach (#1086 )
0c396911f Update jsonify function docs
376befc9a Fix typo (#1084 )
4bdc9bc72 Mark .Page.UniqueID as deprecated and add .File.UniqueID
30a7b7bf2 Update hosting-on-github.md
c5db4ba2b Update postprocess.md
1121f74a5 Update install guide with Scoop extended
8988aa6fa Merge branch 'postprocess'
225d3f9c7 Release Hugo 0.69.0
4caf7a89a releaser: Add release notes to /docs for release of 0.69.0
664b2a0fa Document resources.PostProcess and buildStats
9737b34e9 docs: Regen docs helper
0fab3ba24 Merge commit 'da3c3e5fbd0de65f956618cd2e35401460a3cd02'
96dad83b1 Update hosting-on-aws-amplify.md
57eb27897 Merge commit 'c494c37a4523fbf2db6274dc87e0877fd5bec24b'
dcc7afef7 fix typo in getting started
git-subtree-dir: docs
git-subtree-split: ec0abe052b
2020-05-06 12:12:21 +02:00
Piotr Perzyna
01befcce35
deps: Update minify to v2.6.2
...
Fixes #6699
2020-05-03 17:29:26 +02:00
Tom
04b1a6d997
Add support for sort by boolean
2020-05-02 11:57:34 +02:00
Bjørn Erik Pedersen
dd31e80007
deps: Update to Libsass 3.6.4
...
Fixes #7231
2020-05-01 19:14:04 +02:00
Bjørn Erik Pedersen
6add6d77b4
Rename transpileJS to babel
...
And add a test.
Updates #5764
2020-04-29 10:51:33 +02:00
Niek de Wit
2a171ff1c5
resources: Add JavaScript transpiling solution
...
Add a new pipe called TranspileJS which uses the Babel cli. This makes it possible for users to write ES6 JavaScript code and transpile it to ES5 during website generation so that the code still works with older browser versions.
Fixes #5764
2020-04-29 10:51:33 +02:00
Bjørn Erik Pedersen
67f920419a
Disable a test locally
...
It has started to fail in LiteIDE for some reason (works from the shell and on CI).
2020-04-28 12:24:02 +02:00
Bjørn Erik Pedersen
c03ea2b660
Fix some missing JS class collector cases
...
Fixes #7216
2020-04-27 19:06:29 +02:00
Michael Lynch
fe60b7d9e4
Add diagnostic hints to init timeout message
...
Expand the text in the init timeout message to give the reader more hints as to what may be causing the issue.
The current error sent me on a wild goose chase trying to debug my shortcodes, but it turned out that the issue was just that I wasn't caching my resources/ directory on my build server. Once I found this blog post, I solved the issue in minutes:
https://www.henriksommerfeld.se/hugo-timeout-not-a-circular-loop-in-shortcode/
Googling the error message yields several additional posts from users who focus on loops in their shortcode when the problem seems to be overly-expensive builds.
2020-04-27 13:23:35 +02:00
hugoreleaser
c2d9fd1ebe
releaser: Prepare repository for 0.70.0-DEV
...
[ci skip]
2020-04-24 08:00:48 +00:00
hugoreleaser
ec9dcf3048
releaser: Add release notes to /docs for release of 0.69.2
...
[ci skip]
2020-04-24 07:48:07 +00:00
hugoreleaser
03802ff3cb
releaser: Bump versions for release of 0.69.2
...
[ci skip]
2020-04-24 07:48:07 +00:00
hugoreleaser
5e31198c98
releaser: Add release notes for 0.69.2
...
[ci skip]
2020-04-24 07:48:07 +00:00
Takayama Fumihiko
8d5766d417
Fix IsAncestor and IsDescendant when the same page is passed
2020-04-23 20:23:42 +02:00
SatowTakeshi
5c41f41ad4
deps: Update goldmark-highlighting
...
Recreate #7027
Fixes #6596
2020-04-23 18:48:52 +02:00
Takayama Fumihiko
27a4c4410c
Fix IsAncestor and IsDescendant under subsection
2020-04-23 18:12:13 +02:00
hugoreleaser
ade27699e5
releaser: Prepare repository for 0.70.0-DEV
...
[ci skip]
2020-04-22 08:07:03 +00:00
hugoreleaser
17661debb6
releaser: Add release notes to /docs for release of 0.69.1
...
[ci skip]
2020-04-22 07:55:01 +00:00
hugoreleaser
8549189e8e
releaser: Bump versions for release of 0.69.1
...
[ci skip]
2020-04-22 07:55:01 +00:00
hugoreleaser
c2c7a4ce5b
releaser: Add release notes for 0.69.1
...
[ci skip]
2020-04-22 07:55:01 +00:00
Panagiotis Koursaris
49e6c8cb4e
hugolib/filesystems: Fix typo in test suite
2020-04-21 23:16:36 +02:00
Bjørn Erik Pedersen
f37e77f2d3
Fix class collector when running with --minify
...
Also add a related stresstest.
Fixes #7161
2020-04-21 21:00:52 +02:00
Bjørn Erik Pedersen
27af5a339a
related: Fix toLower
...
Don't change the slice.
Fixes #7198
2020-04-21 17:46:26 +02:00
Bjørn Erik Pedersen
b3c825756f
Fix broken test
2020-04-21 16:44:35 +02:00
BurtonQin
5146dc614f
tpl/tmplimpl/template: Change defer RLock to RUnlock
2020-04-21 13:23:31 +02:00
Boqin Qin
736f84b2d5
hugolib: Add Unlock before panic
2020-04-20 17:47:34 +02:00
Onur Yaman
cd4d820201
docs: Fix typo in Hugo's Security Model
2020-04-18 14:16:42 +02:00
Niklas Fasching
2b28e5a9cb
deps: Update go-org to v1.1.0
...
- inline source blocks and exports
- result blocks and source block :exports parameter
- fix: html escaping in example blocks
- #+LINK based links
2020-04-17 22:07:52 +02:00
Steve
102ec2da7a
commands: Modify gen chromastyles to output all CSS classes
...
Chroma was updated to include a new function to output all CSS
classes without skipping any considered redundant with the current
style.
This will modify the `hugo gen chromastyles` command to use this new
function by default, which avoids potential problems if the style is
later modified.
Also includes requires the updated Chroma (v0.7.2).
Resolves #7167
2020-04-13 18:31:33 +02:00
Bjørn Erik Pedersen
feaa582cbe
deps: Update to goldmark v1.1.28
...
Fixes #7113
2020-04-13 16:55:23 +02:00
Bjørn Erik Pedersen
ee67dbeff5
Fix query parameter handling in server fast render mode
...
There may be a simpler way to get to the raw path, but this will have to do for now.
Fixes #7163
2020-04-12 19:18:54 +02:00
hugoreleaser
4a3f2427ed
releaser: Prepare repository for 0.70.0-DEV
...
[ci skip]
2020-04-10 09:19:20 +00:00
hugoreleaser
4205844bce
releaser: Add release notes to /docs for release of 0.69.0
...
[ci skip]
2020-04-10 09:08:37 +00:00
hugoreleaser
9b55d13589
releaser: Bump versions for release of 0.69.0
...
[ci skip]
2020-04-10 09:08:37 +00:00
Bjørn Erik Pedersen
6f56a636f6
Update 0.69.0-relnotes.md
2020-04-10 10:58:36 +02:00
hugoreleaser
5ec7fa343a
releaser: Add release notes for 0.69.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-04-10 08:25:47 +00:00
Bjørn Erik Pedersen
b7ff4dc23e
docs: Regen docs helper
2020-04-10 09:07:41 +02:00
Bjørn Erik Pedersen
da3c3e5fbd
Squashed 'docs/' changes from 20d77860b..19f44e150
...
19f44e150 fix typo (#1077 )
b66478084 Fix build listing improvements version
git-subtree-dir: docs
git-subtree-split: 19f44e150f
2020-04-10 09:06:04 +02:00
Bjørn Erik Pedersen
30748decf1
Merge commit 'da3c3e5fbd0de65f956618cd2e35401460a3cd02'
2020-04-10 09:06:04 +02:00
Bjørn Erik Pedersen
095bf64c99
Collect HTML elements during the build to use in PurgeCSS etc.
...
The main use case for this is to use with resources.PostProcess and resources.PostCSS with purgecss.
You would normally set it up to extract keywords from your templates, doing it from the full /public takes forever for bigger sites.
Doing the template thing misses dynamically created class names etc., and it's hard/impossible to set up in when using themes.
You can enable this in your site config:
```toml
[build]
writeStats = true
```
It will then write a `hugo_stats.json` file to the project root as part of the build.
If you're only using this for the production build, you should consider putting it below `config/production`.
You can then set it up with PostCSS like this:
```js
const purgecss = require('@fullhuman/postcss-purgecss')({
content: [ './hugo_stats.json' ],
defaultExtractor: (content) => {
let els = JSON.parse(content).htmlElements;
return els.tags.concat(els.classes, els.ids);
}
});
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...(process.env.HUGO_ENVIRONMENT === 'production' ? [ purgecss ] : [])
]
};
```
Fixes #6999
2020-04-09 22:57:26 +02:00
Elliott Sales de Andrade
7791a804e2
deps: Update to latest emoji package
2020-04-08 12:56:14 +02:00
Helicer
c774b230e9
Update hosting-on-aws-amplify.md
...
AWS Amplify now supports a GUI method for using the latest `hugo` version. Please feel free to modify my wording here, etc.
2020-04-07 22:48:55 +02:00
Bjørn Erik Pedersen
2f721f8ec6
Add basic "post resource publish support"
...
Fixes #7146
2020-04-07 21:59:20 +02:00
Cameron Moore
8568928aa8
tpl: Extend Jsonify to support options map
...
Add support for prefix and indent options used by json.MarshalIndent
from the Go stdlib.
2020-04-07 20:01:57 +02:00
Cameron Moore
1bc93021e3
tpl: Extend Jsonify to support optional indent parameter
...
Fixes #5040
2020-04-07 20:01:57 +02:00
Robert Fekete
7eba37ae9b
Typo correction
2020-04-07 19:47:44 +02:00
Jay Williams
efc61d6f3b
commands: Use semver for min_version per recommendations
...
See https://github.com/gohugoio/hugoThemes#themetoml
2020-04-07 19:42:45 +02:00
Bjørn Erik Pedersen
d8d6a25b57
modules: Fix hugo mod vendor for regular file mounts
...
Fixes #7140
2020-04-07 10:13:55 +02:00
Bjørn Erik Pedersen
9f12be54ee
Revert "Revert "common/herrors: Fix typos in comments""
...
OK, I'm getting tired. Sorry for the noise.
This reverts commit 4437e918cd .
2020-04-06 01:07:57 +02:00
Bjørn Erik Pedersen
4437e918cd
Revert "common/herrors: Fix typos in comments"
...
This reverts commit 1123711b09 .
2020-04-06 01:06:27 +02:00
Shubham Shahare
4de3ecdc26
deps: Updateto gitmap v1.1.2
...
Fixes #6985
2020-04-04 23:24:33 +02:00
rnazmo
1123711b09
common/herrors: Fix typos in comments
2020-04-02 22:06:22 +02:00
Bjørn Erik Pedersen
3d84ef9720
Merge commit 'c494c37a4523fbf2db6274dc87e0877fd5bec24b'
2020-03-31 22:11:54 +02:00
Bjørn Erik Pedersen
c494c37a45
Squashed 'docs/' changes from 2a0ea423d..20d77860b
...
20d77860b Remove the calibre image action
58f53654d Improve image metadata formatting (#1067 )
c569f3657 Update theme
80e6d362e Update theme
d5806cca5 Update theme
efc5cb227 Remove broken link on "where" page (#1058 )
443266076 Comments Alternatives (#1036 )
9b480ebb7 Fix typo
1402365ee Fix included typo in build-options.md
3b5a76de1 Update index.md
1196c7695 Update index.md
1887ea1ed Update index.md
d0666e74e Hugo 0.68.3
d514cfac9 Merge branch 'temp683'
49e57362b releaser: Add release notes to /docs for release of 0.68.3
fa0ac3bf1 Merge branch 'temp682'
46993c209 Release 0.68.2
4c8d6d242 releaser: Add release notes to /docs for release of 0.68.2
9694f4d36 Update index.md
368a03754 Update index.md
0d997010c Merge branch 'temp681'
24138a9cd releaser: Add release notes to /docs for release of 0.68.1
7dd6cc788 Update index.md
b6125b4a8 Update build-options.md
a2dead37a Release 0.68.0
7cff41348 Merge branch 'temp680'
b3b37959c releaser: Add release notes to /docs for release of 0.68.0
0f98184b0 Some minify configuration adjustments
02219f787 Add minify config
efeea7be0 Allow headless bundles to list pages via $page.Pages and $page.RegularPages
7950d0ad1 Mention `resources` folder in the "Directory structure" docs.
git-subtree-dir: docs
git-subtree-split: 20d77860b2
2020-03-31 22:10:45 +02:00
SatowTakeshi
9c9987535f
helpers: Fix TrimShortHTML
...
Where some tags are siblings of p tag.
Fixes #7081
2020-03-28 11:10:25 +01:00
Bjørn Erik Pedersen
4a39564efe
Fix IsDescendant/IsAncestor for overlapping section names
...
Fixes #7096
2020-03-26 16:11:36 +01:00
Stéphane Wirtel
b6e097cfe6
fix typo in getting started
2020-03-24 17:31:37 +01:00
hugoreleaser
19a8accc9f
releaser: Prepare repository for 0.69.0-DEV
...
[ci skip]
2020-03-24 12:16:13 +00:00
hugoreleaser
157669a0e6
releaser: Add release notes to /docs for release of 0.68.3
...
[ci skip]
2020-03-24 12:04:27 +00:00
hugoreleaser
8f49df946a
releaser: Bump versions for release of 0.68.3
...
[ci skip]
2020-03-24 12:04:27 +00:00
hugoreleaser
1a68ad4e31
releaser: Add release notes for 0.68.3
...
[ci skip]
2020-03-24 12:04:27 +00:00
Bjørn Erik Pedersen
523d51948f
Fix _build.list.local logic
...
Fixes #7089
2020-03-24 12:47:42 +01:00
hugoreleaser
971b28904b
releaser: Prepare repository for 0.69.0-DEV
...
[ci skip]
2020-03-24 08:33:02 +00:00
hugoreleaser
63bbb40dfb
releaser: Add release notes to /docs for release of 0.68.2
...
[ci skip]
2020-03-24 08:21:09 +00:00
hugoreleaser
73ae6d581d
releaser: Bump versions for release of 0.68.2
...
[ci skip]
2020-03-24 08:21:09 +00:00
hugoreleaser
e18a2ad3f4
releaser: Add release notes for 0.68.2
...
[ci skip]
2020-03-24 08:21:09 +00:00
Bjørn Erik Pedersen
cfa73050a4
Fix cache reset for a page's collections on server live reload
...
Fixes #7085
2020-03-23 23:14:39 +01:00
hugoreleaser
244e49c0ea
releaser: Prepare repository for 0.69.0-DEV
...
[ci skip]
2020-03-22 10:47:54 +00:00
hugoreleaser
98dc46e1a9
releaser: Add release notes to /docs for release of 0.68.1
...
[ci skip]
2020-03-22 10:36:42 +00:00
hugoreleaser
87dd5725de
releaser: Bump versions for release of 0.68.1
...
[ci skip]
2020-03-22 10:36:42 +00:00
hugoreleaser
8c6a03a92b
releaser: Add release notes for 0.68.1
...
[ci skip]
2020-03-22 10:36:42 +00:00
Bjørn Erik Pedersen
1ce3e7d521
releaser: Include "Revert" commits in change log
2020-03-21 18:51:29 +01:00
Bjørn Erik Pedersen
c9dc316ad1
Revert "resources: Add data context to the key in ExecuteAsTemplate"
...
This reverts commit 18cb21ff2e .
Fixes #7064
2020-03-21 18:38:19 +01:00
hugoreleaser
1664a0e893
releaser: Prepare repository for 0.69.0-DEV
...
[ci skip]
2020-03-21 11:59:39 +00:00
hugoreleaser
1e67854b1a
releaser: Add release notes to /docs for release of 0.68.0
...
[ci skip]
2020-03-21 11:47:37 +00:00
hugoreleaser
e1b609af9b
releaser: Bump versions for release of 0.68.0
...
[ci skip]
2020-03-21 11:47:37 +00:00
Bjørn Erik Pedersen
8e5566af6e
Release 0.68.0
2020-03-21 12:41:25 +01:00
Bjørn Erik Pedersen
1005f754e0
Update 0.68.0-relnotes.md
...
[ci skip]
2020-03-21 12:40:46 +01:00
hugoreleaser
efde7078ed
releaser: Add release notes for 0.68.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-03-21 11:33:28 +00:00
Bjørn Erik Pedersen
2ebb9f5484
Fix Go build version
2020-03-21 12:25:03 +01:00
Bjørn Erik Pedersen
7204b354a9
Some minify configuration adjustments
2020-03-20 20:35:57 +01:00
SatowTakeshi
574c2959b8
Add minify config
...
Fixes #6750
Updates #6892
2020-03-20 20:35:57 +01:00
Bjørn Erik Pedersen
99958f90fe
Allow headless bundles to list pages via $page.Pages and $page.RegularPages
...
Fixes #7075
2020-03-20 18:28:55 +01:00
Bjørn Erik Pedersen
1d91d8e14b
Update to Go 1.14.1 and 1.13.9
...
Fixes #7078
2020-03-20 18:25:54 +01:00
Carl Johnson
95f492114e
Fix GetTerms nil pointer
...
Fixes #7061
2020-03-20 14:35:41 +01:00
Bjørn Erik Pedersen
c947351d7c
Merge commit 'aa54803a84208816e9c678359bd3f86760484ce0'
2020-03-20 09:19:29 +01:00
Bjørn Erik Pedersen
aa54803a84
Squashed 'docs/' changes from 988f7d5c2..2a0ea423d
...
2a0ea423d Wrap cascade ex in code toggle
841573e3e Correcting reference for YouTube shortcode (#1055 )
8f9378f93 Release 0.67.1
178759468 Merge branch 'temp671'
1b5ae9cb1 releaser: Add release notes to /docs for release of 0.67.1
a87aa44ec Don't set GOPATH when building from source
bd35dfbd8 Update hugo-deploy.md
527cf3b2b Adding a commercial search service
709844459 Add languageDirection to language configuration
523be23eb Fix include typo on v67 Release Notes
fdd7cc66c Adjust relase notes
613ba75e8 releaser: Add release notes to /docs for release of 0.67.0
3fb1376d1 docs: Doument the server config
6408a9b4e Merge commit '14e369b961943a0b977776899e24e8bea63834df'
10457ca46 deploy: Add include and exclude support for remote
git-subtree-dir: docs
git-subtree-split: 2a0ea423d7
2020-03-20 09:18:47 +01:00
Evan Anderson
cc2a5d52a4
Pass directory name to filters in LstatIfPossible in the same way as Readdir
2020-03-19 20:09:34 +01:00
Elliott Sales de Andrade
52c159c452
Update to goldmark 1.1.25.
...
This fixes a bug, so there's a small change to tests.
2020-03-19 12:26:19 +01:00
Bjørn Erik Pedersen
c7b6d74e89
resources: Fix scss vs css import regexp
...
Fixes #7063
2020-03-17 08:03:25 +01:00
Bjørn Erik Pedersen
1a8af7d4f0
Add workaround for regular CSS imports in SCSS
...
Fixes #7059
2020-03-16 23:21:44 +01:00
Bjørn Erik Pedersen
03b93bb988
Add .RegularPagesRecursive
...
Fixes #6411
2020-03-16 17:37:36 +01:00
hugoreleaser
94fb4dc3dd
releaser: Prepare repository for 0.68.0-DEV
...
[ci skip]
2020-03-15 19:41:55 +00:00
hugoreleaser
4f44227bd8
releaser: Add release notes to /docs for release of 0.67.1
...
[ci skip]
2020-03-15 19:30:34 +00:00
hugoreleaser
99d36237c0
releaser: Bump versions for release of 0.67.1
...
[ci skip]
2020-03-15 19:30:33 +00:00
hugoreleaser
e371162c3f
releaser: Add release notes for 0.67.1
...
[ci skip]
2020-03-15 19:30:33 +00:00
Bjørn Erik Pedersen
5eadc4c0a8
metrics: Fix --templateMetricsHints
...
Also improve non-string comparisons.
Fixes #7048
2020-03-12 19:26:19 +01:00
Bjørn Erik Pedersen
18cb21ff2e
resources: Add data context to the key in ExecuteAsTemplate
...
Fixes #7046
2020-03-11 22:21:16 +01:00
Bjørn Erik Pedersen
df298558a5
Improve Tailwind/PostCSS error messages
...
Fixes #7041
Fixes #7042
2020-03-11 14:13:03 +01:00
Bjørn Erik Pedersen
b1106f8715
deps: Update Blackfriday
...
Fixes #7039
2020-03-10 13:06:23 +01:00
Bjørn Erik Pedersen
c0177fe2b2
resources: Try to fix a Go 1.15 go vet error
2020-03-10 12:29:09 +01:00
Tan Yuanhong
5914f91b6c
Add languageDirection to language configuration
...
Fixes #6550
2020-03-10 10:10:58 +01:00
hugoreleaser
5b4659fa0b
releaser: Prepare repository for 0.68.0-DEV
...
[ci skip]
2020-03-09 20:47:30 +00:00
hugoreleaser
7f1da3efcd
releaser: Add release notes to /docs for release of 0.67.0
...
[ci skip]
2020-03-09 20:35:43 +00:00
hugoreleaser
f7d4b01c6d
releaser: Bump versions for release of 0.67.0
...
[ci skip]
2020-03-09 20:35:43 +00:00
Bjørn Erik Pedersen
b809b9680d
Update 0.67.0-relnotes.md
2020-03-09 21:26:43 +01:00
hugoreleaser
a9c91361c2
releaser: Add release notes for 0.67.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-03-09 20:11:33 +00:00
Bjørn Erik Pedersen
63393230c9
docs: Doument the server config
2020-03-09 20:36:00 +01:00
Bjørn Erik Pedersen
6b61f2a5bb
Merge commit '14e369b961943a0b977776899e24e8bea63834df'
2020-03-09 20:21:17 +01:00
Bjørn Erik Pedersen
14e369b961
Squashed 'docs/' changes from 341ecabb2..988f7d5c2
...
988f7d5c2 Document default `enableInlineShortcodes` value
0f604a345 Fix typo in 0.66.0 release note
26fc74fe3 How to access individual EXIF data tags
d5d3bad9a Fix localhost links
fa6921213 Update index.md
5bf558f78 Release 0.66.0
74ccdaaf5 Merge branch 'temp660'
75faa478b releaser: Add release notes to /docs for release of 0.66.0
c4a4a9922 docs: Regen CLI docs
0624ac198 Add build.UseResourceCacheWhen
58a8d7cd1 Add build options documentation
d926c595e fix typo
99713d44b resources: Add basic @import support to resources.PostCSS
224b96cf7 deploy: Implement include/exclude filters for deploy
eb1a00050 Adjusting description; WordPress with capitalized P
91d8efa22 Add another tool for migration from the Wordpress
a6938a4ac Adjust showcase description
a9c0a0a69 Adjust showcase
e5af08aa6 Adding Aether as a proposed showcase item.
0013daa34 Add hugo.IsProduction function
34c419ef3 tpl: Add math.Sqrt
5bdab0ebd Update minification.md
9039332e2 Hugo 0.65.3
1400caf3a Merge branch 'temp653'
9796bb337 releaser: Add release notes to /docs for release of 0.65.3
65b26598f Fix typo
23aa57d80 Fix crashes for 404 in IsAncestor etc.
42c54bc6c 0.65.2
67fd5c1f6 Merge branch 'temp652'
d820ac017 releaser: Add release notes to /docs for release of 0.65.2
51f0888ff Release 0.65.1
91e95260c releaser: Add release notes to /docs for release of 0.65.1
1880ebf05 fix broken link on internal.md
ffaa33889 Update migrations.md
de4d64675 Another tool for migration from Medium platform
90b178d77 releaser: Add release notes to /docs for release of 0.65.1
6925cda30 Handle corner case with rendering text as code in URL
3cb4b19dd Release 0.65.0
7a600cb99 Merge branch 'temp650'
ef9531ff6 releaser: Add release notes to /docs for release of 0.65.0
9bc19606f docs: Regenerate CLI docs
d4a886ed2 Add Page.GetTerms
a3bf273a5 fix broken link on use-modules.md
001f52f4e Fix mage URL in development.md
eef72e887 Merge commit '4b670bc8cc38103c2c60e5090c2f56bf30832b8d'
b18a76631 commands: Support "hugo mod get -u ./..."
git-subtree-dir: docs
git-subtree-split: 988f7d5c2d
2020-03-09 20:19:32 +01:00
Bjørn Erik Pedersen
6cceef65c2
Fix ambigous error on site.GetPage
...
Fixes #7016
2020-03-09 16:11:50 +01:00
Bjørn Erik Pedersen
ffcb4aeb8e
Fix handling of HTML files without front matter
...
This means that any HTML file inside /content will be treated as a regular file.
If you want it processes with shortcodes and a layout, add front matter.
The defintion of an HTML file here is:
* File with extension .htm or .html
* With first non-whitespace character "<" that isn't a HTML comment.
This is in line with the documentation.
Fixes #7030
Fixes #7028
See #6789
2020-03-09 15:01:55 +01:00
satotake
8279d2e227
Support unComparable args of uniq/complement/in
...
Fixes #6105
2020-03-09 13:32:38 +01:00
Sam Smith
c4fa2f0799
tpl: Fix error with unicode in file paths
...
Add url.QueryUnescape before reading file which allows files with
unicode in their paths to be read.
Fixes #6996
2020-03-09 13:31:04 +01:00
Bjørn Erik Pedersen
108314444b
Add HTTP header support for the dev server
...
Fixes #7031
2020-03-08 19:57:30 +01:00
David Jones
51e178a6a2
deploy: Add include and exclude support for remote
2020-03-08 17:35:32 +01:00
hugoreleaser
cb12f41a96
releaser: Prepare repository for 0.67.0-DEV
...
[ci skip]
2020-03-03 15:31:19 +00:00
hugoreleaser
78c3c78fca
releaser: Add release notes to /docs for release of 0.66.0
...
[ci skip]
2020-03-03 15:19:36 +00:00
hugoreleaser
713132cd4b
releaser: Bump versions for release of 0.66.0
...
[ci skip]
2020-03-03 15:19:36 +00:00
Bjørn Erik Pedersen
bbaefd7e3e
Update 0.66.0-relnotes.md
2020-03-03 16:10:42 +01:00
hugoreleaser
cc1a718860
releaser: Add release notes for 0.66.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-03-03 14:55:26 +00:00
Bjørn Erik Pedersen
6a34f88dcc
Skip some tests on CircleCI
2020-03-03 15:45:13 +01:00
Carl Johnson
ae383f04c8
{{ in }} should work with html.Template type
...
Fixes #7002
2020-03-03 13:37:42 +01:00
Bjørn Erik Pedersen
ee31e61fb0
docs: Regen CLI docs
2020-03-03 13:36:35 +01:00
Bjørn Erik Pedersen
760a87a45a
commands: Add --all flag to hugo mod clean
2020-03-03 13:29:58 +01:00
Bjørn Erik Pedersen
3d3fa5c3fe
Add build.UseResourceCacheWhen
...
Fixes #6993
2020-03-03 13:29:58 +01:00
Anthony Fok
ee3d02134d
Update dependency list in README.md
...
to include only runtime dependencies,
i.e. what is in the released binary.
2020-03-02 22:51:20 -07:00
Bjørn Erik Pedersen
8947c3fa0b
Fix ref/relref short lookup for pages in sub-folder
...
Fixes #6952
2020-03-02 21:08:28 +01:00
Sam Smith
d7798906d8
tpl: Change error message on missing resource
...
Fixes #6942
2020-03-02 18:46:14 +01:00
Bjørn Erik Pedersen
305ce1c9ec
resources: Add full filename to image when processing fails
...
Fixes #7000
2020-03-02 12:39:26 +01:00
Bjørn Erik Pedersen
3e9db2ad95
hugolib: Fix error handling in page collector
...
Fixes #6988
2020-03-02 11:07:09 +01:00
Anthony Fok
449deb7f9c
Update dependency list in README
2020-03-02 01:10:42 -07:00
Bjørn Erik Pedersen
1746e8a9b2
Fix ref/relRef regression for relative refs from bundles
...
Fixes #6952
2020-02-29 18:32:06 +01:00
Bjørn Erik Pedersen
6f48146e75
identity: Fix potential infinite recursion in server change detection
...
Fixes #6986
2020-02-29 15:12:56 +01:00
Bjørn Erik Pedersen
b0d850321e
Fix rebuild logic when editing template using a base template
...
We have been doing too much work in that case.
Fixes #6968
2020-02-28 14:14:55 +01:00
Bjørn Erik Pedersen
b66d38c419
resources: Add basic @import support to resources.PostCSS
...
This commit also makes the HUGO_ENVIRONMENT environment variable available to Node.
Fixes #6957
Fixes #6961
2020-02-27 11:47:24 +01:00
Robert van Gent
05a74eaec0
deploy: Implement include/exclude filters for deploy
...
Fixes #6922
2020-02-27 07:26:05 +01:00
Bjørn Erik Pedersen
33ae621083
Update to Go 1.14 and 1.13.8
...
Fixes #6958
2020-02-26 17:33:11 +01:00
Joshua Wong
1352bc880d
Add hugo.IsProduction function
...
Fixes #6873
2020-02-25 17:58:07 +01:00
Chris Dennis
d184e5059c
tpl: Add math.Sqrt
...
Fixes #6941
2020-02-24 23:45:04 +01:00
hugoreleaser
322c285ba2
releaser: Prepare repository for 0.66.0-DEV
...
[ci skip]
2020-02-23 10:09:29 +00:00
hugoreleaser
211ba42a95
releaser: Add release notes to /docs for release of 0.65.3
...
[ci skip]
2020-02-23 09:58:31 +00:00
hugoreleaser
0ac528d746
releaser: Bump versions for release of 0.65.3
...
[ci skip]
2020-02-23 09:58:31 +00:00
hugoreleaser
d8bde266c1
releaser: Add release notes for 0.65.3
...
[ci skip]
2020-02-23 09:58:31 +00:00
Bjørn Erik Pedersen
0bd6356c6d
Fix panic when home page is drafted
...
Fixes #6927
2020-02-23 00:11:10 +01:00
satotake
ca68abf0bc
Fix goldmark toc rendering
...
Previously gordmark-based TOC renderes only `KindText` and `KindString`
This commit expands target node with Goldmark's renderer
I am not sure of what are expected results as TOC contents in some (rare) cases
but Blackfriday's behaviours are fundamentally respected.
For example,
- image `[image text](link)` is rendered as `<img>` tag
- GFM AutoLink `gohugo.io` is rendered as text
* Render AutoLink as <a> tag as Blackfriday does
Fixes #6736
Fixes #6809
2020-02-22 18:06:30 +01:00
Bjørn Erik Pedersen
a524124beb
Fix crashes for 404 in IsAncestor etc.
...
Fixes #6931
2020-02-22 13:36:04 +01:00
hugoreleaser
c1eb625124
releaser: Add release notes to /docs for release of 0.65.2
...
[ci skip]
2020-02-21 10:10:11 +00:00
hugoreleaser
1510f07780
releaser: Bump versions for release of 0.65.2
...
[ci skip]
2020-02-21 10:10:11 +00:00
hugoreleaser
aa2ef45421
releaser: Add release notes for 0.65.2
...
[ci skip]
2020-02-21 10:10:11 +00:00
Bjørn Erik Pedersen
76b2afe642
Apply missing go fmt
2020-02-21 10:12:33 +01:00
Bjørn Erik Pedersen
f460530347
Fix panic on no output formats
...
A page needs its output formats even if it should not be rendered or its resources should not be published.
Fixes #6924
2020-02-21 09:41:39 +01:00
Bjørn Erik Pedersen
4c2a0de412
Fix panic in 404.Parent
...
Fixes #6924
2020-02-21 08:14:08 +01:00
hugoreleaser
6be6684cc5
releaser: Add release notes to /docs for release of 0.65.1
...
[ci skip]
2020-02-20 13:42:26 +00:00
hugoreleaser
dbaa15d40f
releaser: Bump versions for release of 0.65.1
...
[ci skip]
2020-02-20 13:42:26 +00:00
hugoreleaser
a449e87da7
releaser: Add release notes for 0.65.1
...
[ci skip]
2020-02-20 13:42:26 +00:00
Bjørn Erik Pedersen
7ef5a4c83e
hugolib: Fix 2 Paginator.Pages taxonomy regressions
...
Fixes #6921
Fixes #6918
2020-02-20 14:13:04 +01:00
Bjørn Erik Pedersen
a70bbd0696
hugolib: Fix deletion of orphaned sections
...
Avoid deleting inside the recursive walk.
Fixes #6920
2020-02-20 13:40:16 +01:00
hugoreleaser
24afe2b822
releaser: Add release notes to /docs for release of 0.65.0
...
[ci skip]
2020-02-20 08:11:06 +00:00
hugoreleaser
9fd7d3957e
releaser: Bump versions for release of 0.65.0
...
[ci skip]
2020-02-20 08:11:06 +00:00
hugoreleaser
c45025cb90
releaser: Add release notes for 0.65.0
2020-02-20 09:01:06 +01:00
Bjørn Erik Pedersen
a5ebdf7d17
docs: Regenerate CLI docs
2020-02-19 22:28:06 +01:00
Bjørn Erik Pedersen
9bdedb251c
Fix lazy publishing with publishResources=false
...
Fixes #6914
2020-02-19 18:22:41 +01:00
Bjørn Erik Pedersen
dce210ab56
modules: Improve "hugo mod clean"
...
* Only clean project modules
* Optional glob pattern of module paths to clean
Closes #6907
2020-02-19 17:14:35 +01:00
Bjørn Erik Pedersen
0b96aba022
commands: Add "hugo mod verify"
...
See #6907
2020-02-19 17:14:35 +01:00
Bjørn Erik Pedersen
fa520a2d98
Add Page.GetTerms
...
Fixes #6905
2020-02-19 14:52:23 +01:00
Bjørn Erik Pedersen
4b670bc8cc
Squashed 'docs/' changes from 16753a78d..341ecabb2
...
341ecabb2 Update lookup-order.md
bfabd8ce8 Update homepage.md
7a1e0b742 Update shortcodes.md
e8bf22497 HTTPS links to Vimeo embeds
a9d0e7c68 Revise the wildly inaccurate types doc
af33bb724 netlify: Bump version
f4251583e Merge branch 'temp641'
4dcda861d releaser: Add release notes to /docs for release of 0.64.1
92bd0b1f5 Update errorf.md
git-subtree-dir: docs
git-subtree-split: 341ecabb29
2020-02-19 09:16:56 +01:00
Bjørn Erik Pedersen
82029c1ec9
Merge commit '4b670bc8cc38103c2c60e5090c2f56bf30832b8d'
2020-02-19 09:16:56 +01:00
Bjørn Erik Pedersen
7489a86459
Add a list terms benchmark
...
See #6905
2020-02-19 09:08:32 +01:00
Bjørn Erik Pedersen
da54787cfa
Handle disabled RSS even if it's defined in outputs
...
See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587947078
2020-02-19 09:08:31 +01:00
Elliott Sales de Andrade
c7975b48b6
Fix goMinorVersion on non-final Go releases
...
This should work for alpha/beta/rc releases.
2020-02-19 08:46:21 +01:00
Bjørn Erik Pedersen
b2dcd53e3c
Use the tree for taxonomy.Pages()
2020-02-18 19:47:45 +01:00
Bjørn Erik Pedersen
36983e6189
Add some cagegories to the site collections benchmarks
2020-02-18 18:52:35 +01:00
Bjørn Erik Pedersen
d73e37387c
tpl: Adjust the RSS taxonomy logic
...
See #6909
2020-02-18 17:29:46 +01:00
Bjørn Erik Pedersen
aa3e183056
tpl: Fix RSS template for the terms listing
...
Fixes #6909
2020-02-18 16:55:30 +01:00
Bjørn Erik Pedersen
1b7acfe763
Fix taxonomy
...
Recently introduced in master.
See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587499907
2020-02-18 16:43:36 +01:00
Bjørn Erik Pedersen
19e12caf8c
Fix RenderString for pages without content
...
Fixes #6882
2020-02-18 14:08:59 +01:00
Bjørn Erik Pedersen
20f2211fce
modules: Do not try to get local themes in "hugo mod get"
...
Fixes #6893
2020-02-18 14:08:58 +01:00
satotake
a21a9373e0
deps: Update goldmark-highlighting
...
See #6901
2020-02-18 14:08:46 +01:00
Bjørn Erik Pedersen
775c7c2474
commands: Support "hugo mod get -u ./..."
...
Fixes #6828
2020-02-18 12:17:16 +01:00
Bjørn Erik Pedersen
eada236f87
Introduce a tree map for all content
...
This commit introduces a new data structure to store pages and their resources.
This data structure is backed by radix trees.
This simplies tree operations, makes all pages a bundle, and paves the way for #6310 .
It also solves a set of annoying issues (see list below).
Not a motivation behind this, but this commit also makes Hugo in general a little bit faster and more memory effective (see benchmarks). Especially for partial rebuilds on content edits, but also when taxonomies is in use.
```
name old time/op new time/op delta
SiteNew/Bundle_with_image/Edit-16 1.32ms ± 8% 1.00ms ± 9% -24.42% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16 1.28ms ± 0% 0.94ms ± 0% -26.26% (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16 33.9ms ± 2% 21.8ms ± 1% -35.67% (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16 40.6ms ± 1% 37.7ms ± 3% -7.20% (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16 56.7ms ± 0% 51.7ms ± 1% -8.82% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16 19.9ms ± 2% 18.3ms ± 3% -7.64% (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16 37.9ms ± 4% 34.0ms ± 2% -10.28% (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16 10.7ms ± 0% 10.6ms ± 0% -1.15% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 10.8ms ± 0% 10.7ms ± 0% -1.05% (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16 43.2ms ± 1% 39.6ms ± 1% -8.35% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 47.6ms ± 1% 47.3ms ± 0% ~ (p=0.057 n=4+4)
SiteNew/Deep_content_tree-16 73.0ms ± 1% 74.2ms ± 1% ~ (p=0.114 n=4+4)
SiteNew/Many_HTML_templates-16 37.9ms ± 0% 38.1ms ± 1% ~ (p=0.114 n=4+4)
SiteNew/Page_collections-16 53.6ms ± 1% 54.7ms ± 1% +2.09% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Bundle_with_image/Edit-16 486kB ± 0% 430kB ± 0% -11.47% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16 265kB ± 0% 209kB ± 0% -21.06% (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16 13.6MB ± 0% 8.8MB ± 0% -34.93% (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16 66.5MB ± 0% 63.9MB ± 0% -3.95% (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16 28.8MB ± 0% 25.8MB ± 0% -10.55% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16 6.16MB ± 0% 5.56MB ± 0% -9.86% (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16 16.9MB ± 0% 16.0MB ± 0% -5.19% (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16 2.28MB ± 0% 2.29MB ± 0% +0.35% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 2.07MB ± 0% 2.07MB ± 0% ~ (p=0.114 n=4+4)
SiteNew/Tags_and_categories-16 14.3MB ± 0% 13.2MB ± 0% -7.30% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 69.1MB ± 0% 69.0MB ± 0% ~ (p=0.343 n=4+4)
SiteNew/Deep_content_tree-16 31.3MB ± 0% 31.8MB ± 0% +1.49% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16 10.8MB ± 0% 10.9MB ± 0% +1.11% (p=0.029 n=4+4)
SiteNew/Page_collections-16 21.4MB ± 0% 21.6MB ± 0% +1.15% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Bundle_with_image/Edit-16 4.74k ± 0% 3.86k ± 0% -18.57% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16 4.73k ± 0% 3.85k ± 0% -18.58% (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16 301k ± 0% 198k ± 0% -34.14% (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16 389k ± 0% 373k ± 0% -4.07% (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16 338k ± 0% 262k ± 0% -22.63% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16 102k ± 0% 88k ± 0% -13.81% (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16 176k ± 0% 152k ± 0% -13.32% (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16 26.8k ± 0% 26.8k ± 0% +0.05% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 26.8k ± 0% 26.8k ± 0% +0.05% (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16 273k ± 0% 245k ± 0% -10.36% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 396k ± 0% 398k ± 0% +0.39% (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16 317k ± 0% 325k ± 0% +2.53% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16 146k ± 0% 147k ± 0% +0.98% (p=0.029 n=4+4)
SiteNew/Page_collections-16 210k ± 0% 215k ± 0% +2.44% (p=0.029 n=4+4)
```
Fixes #6312
Fixes #6087
Fixes #6738
Fixes #6412
Fixes #6743
Fixes #6875
Fixes #6034
Fixes #6902
Fixes #6173
Fixes #6590
2020-02-18 09:49:42 +01:00
Bjørn Erik Pedersen
e5329f13c0
Another benchmark rename
2020-02-18 09:48:36 +01:00
Bjørn Erik Pedersen
5b145ddc4c
Rename the Edit benchmarks
...
To make them easier to filter out.
2020-02-18 09:45:21 +01:00
satotake
3c568ad013
markup/highlight: Fix chroma highlight
...
* Use chroma.Coalesce
* Escape code strings if lexer is nil
Fixes #6877
Fixes #6856
2020-02-17 14:59:26 +01:00
Bjørn Erik Pedersen
54bdcaacae
Refactor a benchmark to make it runnable as test
2020-02-17 09:24:15 +01:00
Bjørn Erik Pedersen
1622510a5c
Add benchmark for content edits
2020-02-17 09:05:37 +01:00
Bjørn Erik Pedersen
56d0b65887
Add "go mod verify" to build scripts
2020-02-16 00:15:58 +01:00
Jaymo Kang
75c3787fc2
Add git to Dockerfile
...
Needed for GitInfo.
2020-02-14 16:49:20 +01:00
Bjørn Erik Pedersen
9babb1f0c4
deps: Update go.sum
2020-02-14 10:18:56 +01:00
Mark Rosemaker
8a5124d6b3
commands: Rename doWithCommandeer to cfgInit/cfgSetAndInit
...
This will make it clearer what it does and make the code more consistent.
2020-02-13 00:37:49 +01:00
Bjørn Erik Pedersen
898a0a96af
deps: Update golibsass
...
Fixes #6885
2020-02-12 18:56:47 +01:00
Bjørn Erik Pedersen
3b721110d5
Shuffle test files before insertion
2020-02-10 12:03:41 +01:00
Bjørn Erik Pedersen
40ba7e6d63
Update to LibSass v3.6.3
...
Fixes #6862
2020-02-10 10:42:05 +01:00
hugoreleaser
4f43c9022a
releaser: Prepare repository for 0.65.0-DEV
...
[ci skip]
2020-02-09 20:53:18 +00:00
hugoreleaser
c327e75d05
releaser: Add release notes to /docs for release of 0.64.1
...
[ci skip]
2020-02-09 20:44:34 +00:00
hugoreleaser
8bd8d4fe9a
releaser: Bump versions for release of 0.64.1
...
[ci skip]
2020-02-09 20:44:34 +00:00
hugoreleaser
ad7c38cd66
releaser: Add release notes for 0.64.1
...
[ci skip]
2020-02-09 20:44:34 +00:00
Bjørn Erik Pedersen
b78576fd38
hugofs: Fix mount with hole regression
...
Fixes #6854
2020-02-09 21:35:39 +01:00
Bjørn Erik Pedersen
18888e09bb
Fix bundle resource ordering regression
...
Introduced in Hugo 0.64.0
Fixes #6851
2020-02-09 21:35:39 +01:00
Bjørn Erik Pedersen
1e5eb8679e
Merge commit '3c0036805d64fdd8290f1c4a31371780ff3ea365'
2020-02-06 13:03:30 +01:00
Bjørn Erik Pedersen
3c0036805d
Squashed 'docs/' changes from bd0e15bb6..16753a78d
...
16753a78d remove kaiju from comments.md
25906f6ad Hugo 0.64.0
aacc7a130 releaser: Add release notes to /docs for release of 0.64.0
2243afe90 Explain Ace/Amber support has been removed
293c9496a Document the hugo function
479890f9b Update comments.md
ceab41097 Update theme
9a95876c7 Remove note
696543e13 Update usage.md
a04bab2b9 Release 0.63.2
ccaed74b5 Merge branch 'temp632'
623b363c5 releaser: Add release notes to /docs for release of 0.63.2
39ce6f50e releaser: Add release notes to /docs for release of 0.63.2
9175ac2ca Another theme fix
88c264251 Rebuild _vendor
e739dc3a8 Release 0.63.1
129ecac84 Merge branch 'temp631'
bcd7c1154 releaser: Add release notes to /docs for release of 0.63.1
e4f0d9285 releaser: Add release notes to /docs for release of 0.63.1
6a40124d6 Update theme
c486747de Params cleanup
c408c4334 netlify: Bump to 0.63.0
7e8a48be8 Adjust base template docs
a5920e9aa Adjust release notes
d4d25c524 Merge branch 'temp63'
16d981721 releaser: Add release notes to /docs for release of 0.63.0
08ab681d1 releaser: Add release notes to /docs for release of 0.63.0
90feaac39 docs, output: Add base template lookup variant to docs.json
afe2b4399 docs, output: Add base template lookup variant to docs.json
1f7466a76 docs: Regen docs helper
7ceefb94a docs: Regen docs helper
ee14087cd Remove typo from RenderString.md
6daf333d3 Remove the calibreapp action
682f710d7 docs: Updating 'submodule add' command in "Host on GitHub" to use https instead of ssh.
ef57b2dae Improve documentation on slug behavior
835ddd9c2 Fix broken link
137a32f90 Fixed typo in content-management/page-resources
936633e25 Fixed spelling error, "wich" -> "which"
a559d41e3 Using a Different Version of Hugo in AWS Amplify
2ee83402d Update rss.md
f900a2ce0 Add render-image code example and edit wording
bd0a0207c Change wording on Page Resources documentation
d213b4599 linuxbrew was renamed to homebrew (#1004 )
dcb0925f8 Update index.md
789416a08 Release 0.62.2
2dc66f13c releaser: Add release notes to /docs for release of 0.62.2
813fbc865 releaser: Add release notes to /docs for release of 0.62.2
ed5b07df3 docs: Document the new autoHeadingIDType setting
02d4747e5 docs: Document the new autoHeadingIDType setting
406a8a9a6 docs: Regenerate docshelper
065319786 docs: Regenerate docshelper
61d540021 Merge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'
7cac5909b releaser: Add release notes to /docs for release of 0.62.1
6e30e01a2 releaser: Add release notes to /docs for release of 0.62.0
2694dcdd8 Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226'
115dd6782 docs: More on hooks
f4460fd54 tpl: Do not return any value in errorf
3587d2998 tpl: Add a warnf template func
7c9b02e30 docs: Regen docshelper
a7bfdeb24 Fix incorrect MIME type from image/jpg to image/jpeg
1a6089cfe Preserve HTML Text for link render hooks
4544a998c docs: Footnote
c42733258 Add render template hooks for links and images
0d8bec78a Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a'
3974c326c markup/tableofcontents: Add config option for ordered list
8c2bd1a62 releaser: Add release notes to /docs for release of 0.61.0
f00b2d507 releaser: Add release notes to /docs for release of 0.60.1
9a5109838 releaser: Add release notes to /docs for release of 0.60.0
d2c222f71 Add Goldmark as the new default markdown handler
df96f9efa Update homepage.md
f17e67b4b tpl/collections: Allow dict to create nested structures
5f923768a Merge commit 'efc0b1bb6c6564f54d596467dbc6a18cb206954e'
8a861bf16 Support Go time format strings in permalinks
bbb8c4fea releaser: Add release notes to /docs for release of 0.59.1
9d9070dda releaser: Add release notes to /docs for release of 0.59.0
98716176b Merge commit '5ac0f751aa47e52625662215f66efa99a6abfc2e'
2057ba4c5 Merge commit '5070ba6c9e6c492deade3c30cfe769b9dbf7151d'
c98bcff07 Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs'
git-subtree-dir: docs
git-subtree-split: 16753a78d8
2020-02-06 13:02:49 +01:00
Cameron Moore
7f0ebd4a3c
CONTRIBUTING: Fix note about CGO
2020-02-06 09:09:08 +01:00
Bjørn Erik Pedersen
23ea43180b
Update Go version requirement
...
We run tests on current + (current -1) (we also test on the latest Go source), which means that the current supported Go versions are Go 1.12 and 1.13.
Closes #6853
2020-02-04 23:48:31 +01:00
hugoreleaser
6a74cbe916
releaser: Prepare repository for 0.65.0-DEV
...
[ci skip]
2020-02-04 09:16:38 +00:00
hugoreleaser
241db8f78a
releaser: Add release notes to /docs for release of 0.64.0
...
[ci skip]
2020-02-04 09:07:21 +00:00
hugoreleaser
7624ab0281
releaser: Bump versions for release of 0.64.0
...
[ci skip]
2020-02-04 09:07:21 +00:00
Bjørn Erik Pedersen
8490a0aa9d
Update 0.64.0-relnotes.md
2020-02-04 09:59:09 +01:00
hugoreleaser
bd731d27be
releaser: Add release notes for 0.64.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-02-04 08:45:30 +00:00
Bjørn Erik Pedersen
80dd6ddde2
Fix module mount in sub folder
...
This addresses a specific issue, but is a also a major simplification of the filesystem file mounts.
Fixes #6730
2020-02-04 00:17:10 +01:00
Bjørn Erik Pedersen
2997310124
Mention a "no CGO rule"
...
See #6842
2020-02-01 10:27:26 +01:00
Bjørn Erik Pedersen
2bbc865f7b
commands: Fix config environment handling
...
Fixes #6503
Fixes #6824
2020-01-31 16:36:36 +01:00
Bjørn Erik Pedersen
0792cfa9fa
Update to Go 1.13.7 and Go 1.12.16
...
Fixes #6830
2020-01-31 14:18:48 +01:00
Bjørn Erik Pedersen
b3f0674b80
transform/livereloadinject: Add defer to livereload script tag
...
In #6821 we moved the loading from end of body to head to make Turbolinks and similar work.
This commit adds a defer attribute to avoid page parse blocking.
2020-01-31 08:15:22 +01:00
Bjørn Erik Pedersen
ef78a0d18a
transform/livereloadinject: Don't use document.write to inject livereload
...
I suspect the person who originally implemented it saw examples using location.host etc. to build the URL.
We have all that information ready at build (static) time.
Fixes #6507
2020-01-31 08:02:53 +01:00
Bjørn Erik Pedersen
5859586453
hubolig: Add a render hook whitespace test
...
See #6832
2020-01-31 07:51:05 +01:00
Bjørn Erik Pedersen
2d159e9cc7
Do not render alias paginator pages for non-HTML outputs
...
Update #6797
2020-01-30 23:45:19 +01:00
Bjørn Erik Pedersen
f45cb31728
Fix base template handling with preceding comments
...
Fixes #6816
2020-01-30 23:44:42 +01:00
Bjørn Erik Pedersen
49ef647203
modules: Fix "hugo mod get -u" with no arguments
...
Fixes #6826
Closes #6825
2020-01-30 17:15:35 +01:00
Bjørn Erik Pedersen
8f08cdd0ac
transform/livereloadinject: Inject livereload script right after head if possible
...
We used to insert the livereload script right before the closing body.
This dord not work when combined with tools such as Turbolinks.
This commit changes it So we try to inject the script as early as possible.
Fixes #6821
2020-01-29 21:12:07 +01:00
Bhavin Gandhi
281abb18ee
deps: Update goldmark to v1.1.22
...
v1.1.22 has a fix for issue where links with newline in the title
don't get parsed correctly. Reference:
https://github.com/yuin/goldmark/issues/94
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com >
2020-01-29 19:48:33 +01:00
hugoreleaser
d8e685154d
releaser: Prepare repository for 0.64.0-DEV
...
[ci skip]
2020-01-27 12:22:47 +00:00
hugoreleaser
934ee21fac
releaser: Add release notes to /docs for release of 0.63.2
...
[ci skip]
2020-01-27 12:13:04 +00:00
hugoreleaser
c7427a50ed
releaser: Bump versions for release of 0.63.2
...
[ci skip]
2020-01-27 12:13:04 +00:00
hugoreleaser
49e2931eb2
releaser: Add release notes for 0.63.2
...
[ci skip]
2020-01-27 12:13:04 +00:00
Bjørn Erik Pedersen
e8831a056b
hubolib: Revert to .Type = "page" when empty
...
This was changed with good intentions in 0.63.0.
This behaviour was not documented, but it was of course in use.
This commit rolls back to how it behaved before:
For `Page.Type` you will get:
* `type` from front matter if set.
* `.Section`
* If none of the above returns anything, return "page"
Fixes #6805
2020-01-27 12:33:33 +01:00
Bjørn Erik Pedersen
74b6c4e5ff
And now finally fix the 404 templates
...
Fixes #6795
2020-01-27 12:30:31 +01:00
Bjørn Erik Pedersen
8df5d76e70
Fix 404 with base template regression
...
Fixes #6795
2020-01-26 13:14:08 +01:00
hugoreleaser
8ae2c9c3d6
releaser: Prepare repository for 0.64.0-DEV
...
[ci skip]
2020-01-23 20:17:44 +00:00
hugoreleaser
ce9aceb749
releaser: Add release notes to /docs for release of 0.63.1
...
[ci skip]
2020-01-23 20:08:10 +00:00
hugoreleaser
fd32849bfe
releaser: Bump versions for release of 0.63.1
...
[ci skip]
2020-01-23 20:08:10 +00:00
hugoreleaser
417f9ddf55
releaser: Add release notes for 0.63.1
...
[ci skip]
2020-01-23 20:08:10 +00:00
Bjørn Erik Pedersen
0df7bd62df
deps: Make the build flags shared between sites
...
Updates #6789
2020-01-23 20:11:53 +01:00
Bjørn Erik Pedersen
f441f67512
Fix baseof with regular define regression
...
Fixes #6790
2020-01-23 19:54:06 +01:00
Bjørn Erik Pedersen
7ed22e9fb6
Revert to minify v2.6.1
...
Closes #6791
2020-01-23 17:03:23 +01:00
hugoreleaser
fb974ae87f
releaser: Prepare repository for 0.64.0-DEV
...
[ci skip]
2020-01-23 12:48:39 +00:00
hugoreleaser
745ddcbbab
releaser: Add release notes to /docs for release of 0.63.0
...
[ci skip]
2020-01-23 12:39:31 +00:00
hugoreleaser
3b3f5a2596
releaser: Bump versions for release of 0.63.0
...
[ci skip]
2020-01-23 12:39:31 +00:00
Bjørn Erik Pedersen
d10ed683c5
Release 0.63.0
2020-01-23 13:30:04 +01:00
hugoreleaser
19e387d181
releaser: Add release notes for 0.63.0
...
Rename to *-ready.md to continue.
[ci skip]
2020-01-23 11:12:11 +00:00
Bjørn Erik Pedersen
cafb1d53c0
docs, output: Add base template lookup variant to docs.json
2020-01-23 11:59:52 +01:00
Bjørn Erik Pedersen
4f466db666
docs: Regen docs helper
2020-01-23 11:55:08 +01:00
Bjørn Erik Pedersen
17af79a03e
Fix 0.62.1 server rebuild slowdown regression
...
Fixes #6784
2020-01-23 11:50:02 +01:00
Bjørn Erik Pedersen
2fefc01606
tpl/compare: Fix eq when > 2 args
...
Fixes #6786
2020-01-23 10:48:28 +01:00
Tan Yuanhong
0c251be66b
Allow multiple arguments in ne/ge/gt/le/lt functions
...
Treat op arg1 arg2 arg3 ... as (arg1 op arg2) && (arg1 op arg3)
and so on for ne/ge/gt/le/lt.
Closes #6619
2020-01-23 10:36:35 +01:00
Bjørn Erik Pedersen
836c24261f
hugolib: Disable a test assertion on ARM
...
See #6655
2020-01-22 11:44:29 +01:00
Bjørn Erik Pedersen
c6d650c8c8
tpl/tplimpl: Rework template management to get rid of concurrency issues
...
This more or less completes the simplification of the template handling code in Hugo started in v0.62.
The main motivation was to fix a long lasting issue about a crash in HTML content files without front matter.
But this commit also comes with a big functional improvement.
As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.
This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others:
```
layouts
├── _default
│ ├── baseof.html
│ ├── list.html
│ └── single.html
└── blog
└── baseof.html
```
Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.
These benchmarks looks suspiciously good, but I have repeated the below with ca. the same result. Compared to master:
```
name old time/op new time/op delta
SiteNew/Bundle_with_image-16 13.1ms ± 1% 10.5ms ± 1% -19.34% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 13.0ms ± 0% 10.7ms ± 1% -18.05% (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16 46.4ms ± 2% 43.1ms ± 1% -7.15% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 52.2ms ± 2% 47.8ms ± 1% -8.30% (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16 77.9ms ± 1% 70.9ms ± 1% -9.01% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16 43.0ms ± 0% 37.2ms ± 1% -13.54% (p=0.029 n=4+4)
SiteNew/Page_collections-16 58.2ms ± 1% 52.4ms ± 1% -9.95% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Bundle_with_image-16 3.81MB ± 0% 2.22MB ± 0% -41.70% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 3.60MB ± 0% 2.01MB ± 0% -44.20% (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16 19.3MB ± 1% 14.1MB ± 0% -26.91% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 70.7MB ± 0% 69.0MB ± 0% -2.40% (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16 37.1MB ± 0% 31.2MB ± 0% -15.94% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16 17.6MB ± 0% 10.6MB ± 0% -39.92% (p=0.029 n=4+4)
SiteNew/Page_collections-16 25.9MB ± 0% 21.2MB ± 0% -17.99% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Bundle_with_image-16 52.3k ± 0% 26.1k ± 0% -50.18% (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16 52.3k ± 0% 26.1k ± 0% -50.16% (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16 336k ± 1% 269k ± 0% -19.90% (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16 422k ± 0% 395k ± 0% -6.43% (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16 401k ± 0% 313k ± 0% -21.79% (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16 247k ± 0% 143k ± 0% -42.17% (p=0.029 n=4+4)
SiteNew/Page_collections-16 282k ± 0% 207k ± 0% -26.55% (p=0.029 n=4+4)
```
Fixes #6716
Fixes #6760
Fixes #6768
Fixes #6778
2020-01-22 09:39:49 +01:00
Niklas Fasching
8585b388d2
deps: Update go-org
...
Not really a new major version but it's used in production and apparently that
means it should be a 1+. Will try to follow semver better from now on.
Changes:
- `#+OPTIONS: toc:1` now supports not just true/false but numbers to limit
headline levels included in table of conents
- bug fix latex fragment parsing
2020-01-21 10:21:57 +01:00
Jonathan Ling
d61bee5e09
examples: Fix blog not building
...
The example blog had not been updated for some time and I had to restructure it a little bit.
Fixes #6752
Changed tag and category directory structure
2020-01-19 14:42:27 +01:00
Joshua Wong
21ca2e9ce4
Add support for newline characters in raw string shortcode
2020-01-18 11:24:10 +01:00
Ghislain Bourgeois
3efa1d8121
deps: Update github.com/alecthomas/chroma
...
This new release improves YAML syntax highlighting.
2020-01-16 20:57:02 +01:00
Bjørn Erik Pedersen
65ec8fe827
deps: Update minify to v2.7.2
...
Fixes #6756
2020-01-15 16:04:44 +01:00
Matt Riggott
d3e8ab2e39
deps: Update Goldmark to v1.1.21
...
This is the first version of Goldmark that supports all the
Smartypants-style typographic punctuation transformations. Now, a
straight single quote in the middle of a word is translated into a curly
quote (e.g. "that's" becomes "that’s"). Earlier versions leave
them untouched. This brings Goldmark in line with Blackfriday.
Fixes #6571 .
2020-01-15 12:07:25 +01:00
Joshua Wong
da81455656
Allow raw string literals in shortcode params
2020-01-15 09:27:19 +01:00
Bjørn Erik Pedersen
0c0bb37285
deps: Update github.com/gohugoio/testmodBuilder
2020-01-14 17:09:11 +01:00
Bjørn Erik Pedersen
ddd75f2121
hugolib: Some more benchmark adjustments
2020-01-13 16:47:10 +01:00
Bjørn Erik Pedersen
4ed6ebef4c
hugolib: Adjust site benchmarks
2020-01-13 16:39:33 +01:00
Bjørn Erik Pedersen
94cfdf6bef
deps: Update direct dependencies
...
Closes #6719
2020-01-07 20:12:20 +01:00
Bjørn Erik Pedersen
4513801778
minifiers: Update to new CSS config
...
Update #6719
2020-01-07 18:06:22 +01:00
Bjørn Erik Pedersen
56354a63bb
deps: Update to Minify v2.7.0
...
Updates ##6719
2020-01-07 16:13:38 +01:00
Bjørn Erik Pedersen
b9b73a2f63
Revert "Add support for freebsd/arm64"
...
golang.org/x/sys is an indirect dependency and needs to be updates as such.
This reverts commit aead8108b8 .
2020-01-07 13:42:43 +01:00
Dmitri Goutnik
aead8108b8
Add support for freebsd/arm64
...
Update #6719 6719
2020-01-07 13:21:19 +01:00
Bjørn Erik Pedersen
1cf235412f
tpl: Put Go's internal template funcs in Hugo's map
...
```
name old time/op new time/op delta
SiteNew/Many_HTML_templates-16 43.4ms ± 0% 42.7ms ± 0% -1.71% (p=0.016 n=4+5)
name old alloc/op new alloc/op delta
SiteNew/Many_HTML_templates-16 17.5MB ± 0% 17.5MB ± 0% ~ (p=0.690 n=5+5)
name old allocs/op new allocs/op delta
SiteNew/Many_HTML_templates-16 247k ± 0% 247k ± 0% ~ (p=0.310 n=5+5)
```
Fixes #6717
2020-01-07 13:18:19 +01:00
Bjørn Erik Pedersen
df6e9efd8f
Update releasenotes_writer.go
2020-01-07 13:15:22 +01:00
Bjørn Erik Pedersen
ea05c0e845
hugolib: Add a benchmark with lots of templates
2020-01-07 10:48:17 +01:00
hugoreleaser
273047b5ba
releaser: Prepare repository for 0.63.0-DEV
...
[ci skip]
2020-01-05 18:58:55 +00:00