https://gohugo.io/taxonomies/overview/ introduces the definitions 'Term' as a Key within that taxonomy.
The filename Hugo accepts for Taxonomy terms can be confusing:
SINGULAR.terms.html -> Renders at /SINGULAR/
SINGULAR.html -> Renders at /SINGULAR/TERM/
This applies to both regular templates and shortcodes. So, if the site language is French and the output format is AMP, this is the (start) of the lookup order for the home page:
1. index.fr.amp.html
2. index.amp.html
3. index.fr.html
4. index.html
5. ...
Fixes#3360
This enables `AND` (`intersect`) and `OR` (`union`) filters when combined with `where`.
Example:
```go
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}
```
The above fetches regular pages not of `page` or `about` type unless they are pinned. And finally, we exclude all pages with no `images` set in Page params.
Fixes#3174
From now on we
* Deploy from master
* Anything related to Next Hugo goes into the dev branch
* Changes in hugo/docs will, in general, be merged once every release, but can be manually merged/cherry picked
* All contributions that is not tightly coupled with code changes, should be made directly to hugoDocs
* But we also merge PRs into hugo/docs, but preferably changes that is related to the code in the PR itself
The stable branch will be removed, so we now have 2 branches: master (current Hugo) and dev (next Hugo).
Closes#22
`govendor get` attempts to run `govendor install +local` after fetching
dependencies, but it would not succeed unless the current directory is
somewhere inside $GOPATH/src? That is my limited understanding anyway.
Fixesgohugoio/hugo#3657
* Improve the built-in Disqus template
Set `disqus_identifier`, `disqus_title`, and `disqus_url`
only if the user has explicitly provided them.
Do not load Disqus when the website is previewed locally,
otherwise it is very confusing.
* Use disqus_config instead of three global variables
https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
reStructuredText doesn't have explicit section levels but sets them in
the order of appearance. Since level 1 is already set from the title in
the front matter it makes more sense to start with level 2 when
converting with rst2html.
This ensures the new "open 'current content page' in browser" works
on Windows, especially with Emacs and Vim.
Special thanks to @bep for coming up with the idea of the fix.
See #3645
This commit adds a new `--navigateToChanged` and config setting with the same name, that, when running the Hugo server with live reload enabled, will navigate to the current content file's URL on save.
This is really useful for site-wide content changes (copyedits etc.).
Fixes#3643