9441 Commits

Author SHA1 Message Date
Derk Muenchhausen
efe0e549c5 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
hugoreleaser
074a270cdc releaser: Add release notes to /docs for release of 0.73.0
[ci skip]
2020-06-23 16:29:21 +00:00
Bjørn Erik Pedersen
16726eacf4 Add GroupByLastmod
Fixes #7408
2020-06-19 11:58:58 +02:00
Bjørn Erik Pedersen
bc0b484d1b 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
Bjørn Erik Pedersen
b877781659 Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171' 2020-06-16 14:19:31 +02:00
Maurice
ac2c4a4871
Update documentation for Ugly URLs (#1082)
* Update urls.md

Update documentation to reflect status of this issue - (the --uglyurls CLI parameter no longer exists)
https://github.com/gohugoio/hugo/issues/4428

See also: https://gohugo.io/getting-started/configuration/#configure-with-environment-variables

* Update urls.md

Remove a "use" that was not necessary.
2020-06-14 20:51:19 +07:00
Jake Jarvis
88bdec17a5 Change 072.0 to 0.72.0 in release post's description 2020-06-13 01:04:31 +02:00
vojta001
2aa7d7818c
Update rss.md (#1104)
Fix a link to RSS 2.0 template
2020-06-11 14:31:52 +07:00
Paul Murray
c80677aeb9
Update quick-start.md (#1076)
improved grammar
2020-06-11 14:30:04 +07:00
Christian Oliff
d04196bbdd Minor spelling and capitalization fixes 2020-06-10 12:50:40 +02:00
Kahvi Patel
837d2feba6 Fixed spelling mistake
Fixed mistake in /content-management/organization/ doc.
2020-06-05 20:22:39 +02:00
Edouard
c7cdebed38 tpl/crypto: Add hmac 2020-06-05 20:04:11 +02:00
Bjørn Erik Pedersen
67dc78e12c
Update installing.md 2020-06-04 16:09:27 +02:00
Bjørn Erik Pedersen
ce280c5d6f
Update relurl.md 2020-06-03 22:05:32 +02:00
Christian Oliff
bb4d0e703d Capitalization and Redirecting URL fixes 2020-06-03 17:50:58 +02:00
Bjørn Erik Pedersen
e1fecada0d
Update partials.md 2020-06-03 10:46:32 +02:00
Christian Oliff
1d99bb182a Typos and whitespacing issues fixed 2020-06-03 10:45:04 +02:00
P.F. Hawkins
b20dba1255 actually fix index function link this time 2020-06-02 19:56:50 +02:00
Bjørn Erik Pedersen
260130cc02 Allow hook template per section/type
Fixes #7349
2020-06-02 19:02:10 +02:00
Christian Oliff
f47d6f1e31 Fixing typos, whitespace issues and links 2020-06-02 17:56:23 +02:00
P.F. Hawkins
dc82309b96 fix link to the index function 2020-06-02 17:53:33 +02:00
P.F. Hawkins
1eab0cbeaa
add missing word (#1130)
* add missing word

* capitalize YouTube

Co-authored-by: Christian Oliff <christianoliff@pm.me>
2020-06-03 00:08:44 +09:00
Christian Oliff
9c3ee62ae8 more fixes 2020-06-02 09:42:19 +02:00
Christian Oliff
e9bc5880af whitespace, typos and HTTPS fixes 2020-06-02 09:42:19 +02:00
Daniel Ruf
93b8064931 Add missing word to Module section 2020-06-01 18:51:32 +02:00
Bryce Derriso
80ced9062c Display image on page bundles page. 2020-06-01 00:30:42 +02:00
Bjørn Erik Pedersen
727029b0af
Update index.md 2020-05-31 15:46:21 +02:00
Bjørn Erik Pedersen
51fc48e4d2
Release 0.72.0 2020-05-31 15:33:02 +02:00
hugoreleaser
1ff68ac3b6
releaser: Add release notes to /docs for release of 0.72.0
[ci skip]
2020-05-31 15:33:01 +02:00
Bjørn Erik Pedersen
f74a25b927
common/maps: Add Scratch.Values
Fixes #7335
2020-05-31 15:33:01 +02:00
Bjørn Erik Pedersen
2fd83db96b
Add redirect support to the server
Fixes #7323
2020-05-31 15:33:01 +02:00
Yash Murty
bdfccf9f4e
Fix typo in install instructions 2020-05-31 15:33:01 +02:00
hugoreleaser
1f70519d8e releaser: Add release notes to /docs for release of 0.72.0
[ci skip]
2020-05-31 12:05:36 +00:00
Christian Oliff
e12737ea60 Create SUPPORT.md
matches the one we have at:
https://github.com/gohugoio/hugo/blob/master/.github/SUPPORT.md

May cut down on support queries being posted here.
v0.72.0
2020-05-31 12:44:56 +02:00
Bjørn Erik Pedersen
8516d540cd Merge commit '9e1dcefc5f559944b70d2fa520f6acd5c56a69f2' 2020-05-31 12:43:33 +02:00
Bjørn Erik Pedersen
9be494de3a
Clean up the markup config 2020-05-31 12:41:38 +02:00
Leon
c3e1231339 Remove JustComment
JustComment is shutting down.
2020-05-31 12:11:42 +02:00
Bjørn Erik Pedersen
bc1b02bc5c
Add Smart to Anchor section 2020-05-30 16:47:27 +02:00
Bjørn Erik Pedersen
c49195c69b common/maps: Add Scratch.Values
Fixes #7335
2020-05-29 19:51:49 +02:00
Bjørn Erik Pedersen
78072df81c Add redirect support to the server
Fixes #7323
2020-05-28 16:25:34 +02:00
Farai Gandiya
49e7964096 Added where .RegularPagesRecursive was added
Seems like there isn't a way to render shortcodes in a readfile.
2020-05-27 23:19:48 +02:00
Farai Gandiya
a92296e314 Fixed the new-in shortcode in pages-vs-site-pages 2020-05-27 22:01:21 +02:00
Farai Gandiya
051e1267c3 Documented .RegularPagesRecursive
Addresses #1116
2020-05-27 22:01:21 +02:00
Yash Murty
90ca0af6b8 Fix typo in install instructions 2020-05-27 13:54:11 +02:00
Cameron Little
5bcec88a3a Fix broken link in RSS templates page
The trailing ) was being included in the parsed link, leading to it being `https://spf13.com/project/index.xml)` instead of `https://spf13.com/project/index.xml`.
2020-05-26 20:53:04 +02:00
John Levon
3db79d4331 Correct pull request link on migrations.md 2020-05-26 13:21:01 +02:00
Bjørn Erik Pedersen
55c3471686
Release 0.71.1 v0.71.1 2020-05-25 11:33:54 +02:00
Bjørn Erik Pedersen
11a4e36c3f
Merge branch 'temp711' 2020-05-25 11:32:26 +02:00
hugoreleaser
481fc8ed64 releaser: Add release notes to /docs for release of 0.71.1
[ci skip]
2020-05-25 09:08:55 +00:00
Bjørn Erik Pedersen
40ba83c263
Update site.md
Mention the site function

See #1119
2020-05-23 13:46:52 +02:00