Commit Graph
13874 Commits
Author SHA1 Message Date
whs 2710142579 Update netify hugo version to 0.83.1 2021-05-26 13:18:59 +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
Shohei Ueda 14199cff13 Add pull_request event
- Add pull_request event
- Add filter to deploy with a default branch only
2021-05-17 17:27:24 +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 7dc282eaf9 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
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
Valentin Heidelberger 0c33b05de5 Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457) 2021-05-13 20:50:41 +09:00
Facundo Giuliani e47b6c33a4 Hugo Modules plural typo (#1266) 2021-05-11 21:26:58 +09:00
Bjørn Erik Pedersen 0f2bbacdd0 Add node_modules to .gitignore 2021-05-11 11:17:29 +02:00
Joe Mooring b9cd77171d docs: Update querify function description and examples
The querify function now accepts a slice per #8305.
2021-05-10 17:18:37 +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
Salim BandRegis Philibert 1d645d79f5 Overhaul scratch.md (#1451)
* Overhaul scratch.md

* Tweak scratch.md

* Small fixes

* Add link

* Use local Scratch in all examples

* Simplify intro and context vs local examples

I think this doc page was getting closer to blog post. All the history is not very relevant now that we're on 0.83.0. I took the liberty of simplifying. Let me know what you think...

* Remove redundancies and be more consistent

* Add history note

* Fix syntax error in example

Co-authored-by: Regis Philibert <login@regisphilibert.com>
2021-05-05 10:23:32 -04:00
Bjørn Erik Pedersen b660ea8d54 Add a benchmark 2021-05-04 17:59:04 +02:00
Thomas Jensen 5727668891 Add link to golang regex syntax, change modified date 2021-05-04 09:27:13 +02:00
Thomas Jensen 21b0c74594 Add info about contentType config
Add `contentType`to deploy config example, and a note that matching stops on first match.
2021-05-04 09:27:13 +02:00
Joe Mooring de7d96fa28 Document Go template's multiline support
Closes #764
2021-05-03 21:38:07 +02:00
Salim B 0c8f2dcb13 Avoid scratch usage 2021-05-03 21:08:23 +02:00
Salim B 696fa92e11 Rename scratch var 2021-05-03 21:08:23 +02:00
Salim B 44193f267d Update usage instructions 2021-05-03 21:08:23 +02:00
Salim B 4230f8fa54 Rename and refactor shortcode 2021-05-03 21:08:23 +02:00
Salim B e9953751ec Strip leading whitespaces 2021-05-03 21:08:23 +02:00
Salim B d61a580103 Add insertpages shortcode
This is an improvement over the `readfiles` shortcode in that it allows to insert content files that contain shortcodes themselves.

This new shortcode is used to fix a regression introduced in https://github.com/gohugoio/hugoDocs/pull/1442 (`new-in` shortcode was not rendered as intended).
2021-05-03 21:08:23 +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
Salim B 04d30677dd Mention WebP under 'Target Format' (#1431)
Plus use [official spelling](https://en.wikipedia.org/wiki/WebP) of `WebP`.
2021-05-02 20:47:53 -07:00
Jackson Lucky 9467845085 Update lookup-order.md (#1443)
Improve subject-verb agreement.
2021-05-02 20:45:56 -07:00
Bjørn Erik Pedersen a7b5879889 Update index.md 2021-05-02 17:38:19 +02:00
Bjørn Erik Pedersen 27907f7ea3 netlify: Hugo 0.83.1 2021-05-02 17:34:10 +02:00
Bjørn Erik Pedersen 044d37e570 Merge branch 'tempv0.83.1' 2021-05-02 17:33:30 +02:00
hugoreleaser e1c328df25 releaser: Prepare repository for 0.84.0-DEV
[ci skip]
2021-05-02 15:28:40 +00:00
Salim B b81aedb03f Fix page .Kind
In case of a taxonomy term page, `.Kind` (at least in Hugo v0.83) returns the string **`"term"`**, not `taxonomyTerm`.
2021-05-02 16:38:48 +02:00
hugoreleaser fcf7775adc releaser: Add release notes to /docs for release of 0.83.1
[ci skip]
2021-05-02 14:38:02 +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
Christian Oliff 9b39c77c87 fix typo in 0.83 release notes 2021-05-02 16:17:50 +02:00
Bjørn Erik Pedersen 1c38993ce7 Update index.md 2021-05-01 18:41:47 +02:00
Bjørn Erik Pedersen 45b8aefa67 Update index.md 2021-05-01 18:41:28 +02:00
Bjørn Erik Pedersen 43902dfaad Update index.md 2021-05-01 18:38:51 +02:00