119 Commits

Author SHA1 Message Date
Salim B
41d24297c7
Mention not (#1432)
And be more precise about closing `{{ end }}` statement.
2021-04-28 15:22:49 -07:00
Joost Baaij
5d354c38d2 Replaced ``` code blocks with Code Toggler 2021-04-16 11:35:20 +02:00
Thorsten
848f2af262
Update internal.md (#1407)
* Update internal.md

Info about automatically used opengraph image metadata added. See source in https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/opengraph.html

* Update content/en/templates/internal.md

Co-authored-by: Joe Mooring <joe@mooring.com>

Co-authored-by: Joe Mooring <joe@mooring.com>
2021-04-15 07:34:01 -07:00
Joe Mooring
9f8ba56dc4
Remove leading dot from where function KEY (#1419)
Closes #1418
2021-04-14 22:42:50 -07:00
Joe Mooring
4e0bb96d5e
Rework robots.txt page (#1405)
Fixes #1404
2021-04-14 20:37:47 -07:00
Salim B
3a84929bb0
Harmonize capitalization (#1393)
Harmonize capitalization between `pagination.md` and `configuration.md`.

Hugo normalizes site configuration keys to lowercase internally, so technically, capitalization doesn't really matter. But it's less confusing for newbies if the capitalization in the documentation is consistent.
2021-03-31 13:05:40 -07:00
Ken S
35e73ca90d
fix indent in example (#1372) 2021-03-21 19:57:45 -07:00
Joe Mooring
d3f01f19af
Remove opening body tag from header example (#1376) 2021-03-21 19:57:31 -07:00
Bjørn Erik Pedersen
eeab18fce4 Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3' 2021-03-21 13:31:17 +01:00
Jonny Spicer
ec4f7bfff4 Update 404.md
Fix typo: CloudFont > CloudFront
2021-03-09 22:45:32 +01:00
Daniel Atwood
95350eb797 Add support for Google Analytics v4 2021-03-03 13:30:06 +01:00
NicoHood
7a67c38c4b
Correct sitemap version (#1318)
As correctly stated at the beginning of the docs, sitemap protocol uses version 0.9 currently. Dont confuse with xml version 1.0
2021-01-28 01:12:27 +09:00
fridde
ef9c4913cd Clean up and removal of outdated examples
The README.md states that the docs should "describe the current best practice" (as opposed to older ways).
This is the implementation of that principle.
2021-01-19 17:23:01 +01:00
Bjørn Erik Pedersen
ebf1b87b0c Merge commit '9f1265fde4b9ef186148337c99f08601633b6056' 2020-11-27 09:30:05 +01:00
David Jones
1ada5d47e0 Add menu params
Fixes #7951
2020-11-22 22:09:59 +01:00
Lesik
a627862350
Update 404 docs: GitLab auto-detects 404.html (#1173)
Add information for deploying on GitLab Pages: GitLab also automatically serves 404.html when a 404 code is to be returned.
2020-11-04 12:22:58 +07:00
Patrick Kollitsch
6a1c8dcd79
Update sitemap-template.md (#1245)
Someone missed: the internal template states version 1.0, the pre-text says 0.9.
2020-10-01 20:44:19 +07:00
Andrew Medworth
773212de65 Restructure and simplify 2020-09-25 12:10:46 +02:00
Andrew Medworth
fcba7dddf6 Some minor clarifications of weight sorting 2020-09-25 12:10:46 +02:00
Andrew Medworth
faacf2e971
Clarify pagination documentation (#1208)
* Clarify pagination documentation (#7609)

It is not necessary that the pages passed to .Paginate be a subset of .Pages.
Also, clarify that more than one call to .Paginator or .Paginate will give unexpected results.

* Correct a few statements based on review feedback
2020-09-16 17:19:54 +07:00
Manas Marthi
2e701f8f38 Corrected the url for index function link
/functions/index/ directs to _index.md . Replaced it with /functions/index-function/
2020-09-02 09:57:41 +02:00
Andrew Medworth
736bd59e00
Clarify treatment of zero weights (#1207)
* Clarify treatment of zero weights
* than -> then
* Remove null link to section and list pages
2020-08-31 21:10:05 +07:00
Joe Mooring
58029627df Fix erroneous example code piping to if
Fixes #1192
2020-08-23 12:27:10 +02:00
Joe Mooring
fd4a103bfd
Fix several 404 errors (#1162)
Closes #1161

I removed the paragraph related to Amazon S3 deployment from Wercker;
I was unable to find any documentation on the Wercker site. This is not
surprising. Wercker was acquired by Oracle in 2017, and I suspect Oracle
has little interest in promoting any of Amazon's services.
2020-07-31 19:29:47 +09:00
Bjørn Erik Pedersen
d71ed99d3b Add support for inline partials
Fixes #7444
2020-07-01 23:10:21 +02: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
vojta001
2aa7d7818c
Update rss.md (#1104)
Fix a link to RSS 2.0 template
2020-06-11 14:31:52 +07: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
P.F. Hawkins
dc82309b96 fix link to the index function 2020-06-02 17:53:33 +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
S Aufrecht
5e233dc4bb Update base.md
fix typo
2020-05-07 08:51:17 +02:00
Christian Oliff
b760aceb1e HTTPS external links in docs 2020-04-22 17:57:26 +02:00
Victor Massé
d926c595e1 fix typo 2020-02-28 12:04:14 +01:00
Christian Oliff
1880ebf054 fix broken link on internal.md 2020-02-20 09:11:34 -05:00
Bjørn Erik Pedersen
d4a886ed2a Add Page.GetTerms
Fixes #6905
2020-02-19 14:52:23 +01:00
tibnew
341ecabb29 Update lookup-order.md
The document starts with "Hugo takes the parameters listed below into consideration when choosing a layout for a given page. They are listed in a priority order."
So it lists parameters from lower priority to higher priority.
But according to examples output format and language priority is higher than Layout priority.
It is quite confusing to read.
2020-02-16 09:59:33 +01:00
László Görög
bfabd8ce87 Update homepage.md 2020-02-14 21:23:04 +01:00
Christian Oliff
e8bf224974 HTTPS links to Vimeo embeds
This matches what Vimeo recommends and Hugo's included shortcodes.
2020-02-13 14:12:16 +01:00
Peter Kappus
2243afe903 Explain Ace/Amber support has been removed 2020-02-04 08:40:25 +01:00
Bjørn Erik Pedersen
7e8a48be8b
Adjust base template docs 2020-01-23 14:24:58 +01:00
Bjørn Erik Pedersen
2ee83402d7
Update rss.md
Fixes #1008
2020-01-10 21:28:37 +01:00
Florian Gerlinghoff
5b95cbc8a6 Fixed suffixIsRemoved error in code samples (#975)
When `suffix = "<suffix>"` in the config.toml while adding or modifying
a media type, an error occurs: "MediaType.Suffix is removed. [...]".

I changed the code samples to use `suffixes` instead and adjusted the
surrounding descriptions to represent the change.
2019-12-11 14:27:00 +07:00
Bjørn Erik Pedersen
25a7110237
Merge branch 'temp60' 2019-11-27 11:29:40 +01:00
Bjørn Erik Pedersen
ded74f0982 Add Goldmark as the new default markdown handler
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.

If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:

```toml
[markup]
defaultMarkdownHandler="blackfriday"
```

Fixes #5963
Fixes #1778
Fixes #6355
2019-11-23 14:12:24 +01:00
Bjørn Erik Pedersen
cb55cdbb0f
Update introduction.md 2019-11-23 10:45:46 +01:00
Bjørn Erik Pedersen
fcaad653aa Update homepage.md
Fixes https://github.com/gohugoio/hugo/issues/6510
2019-11-18 09:17:49 +01:00
Bjørn Erik Pedersen
2e9c8200d7
Fix mediatype table
Fixes #6480
2019-11-05 11:03:04 +01:00