5842 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
5f831a6223 releaser: Replace the magic version handling
Take the new version as a string value.
2017-07-05 14:27:43 +02:00
Bjørn Erik Pedersen
e7a54e7afc releaser: Add --try flag to ease testing 2017-07-05 14:27:43 +02:00
nickg
f3c88b0810 Add warning on GitInfo and Shallow Clones 2017-07-04 21:00:09 +02:00
Jeroen van der Putten
fa5be591f5 Make the two common Taxonomy templates explicit
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/
2017-07-04 20:48:25 +02:00
Bjørn Erik Pedersen
aa6b1b9be7 output: Support templates per site/language
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
2017-07-04 09:12:44 +02:00
Bjørn Erik Pedersen
a1d260b41a hugolib: Extend the sections API
This commit adds some section related methods that have been asked for:

* .CurrentSection
* .IsDescendant
* .IsAncestor

Fixes #3591
2017-07-04 09:11:49 +02:00
Bjørn Erik Pedersen
dd9b1baab0 hugolib: Make .Site.Sections return the top level sections
See #3591
2017-07-04 09:11:49 +02:00
Victor Kropp
1039356edf commands: Support human-readable YAML boolean values in undraft 2017-07-03 23:26:01 +02:00
Bjørn Erik Pedersen
ccdd08d57a tpl/collections: Add Pages support to Intersect and Union
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
2017-07-03 21:48:03 +02:00
Bjørn Erik Pedersen
d12cf5a25d tpl/collections: Fix In function for JSON arrays
Fixes #1468
2017-07-03 10:23:03 +02:00
Bjørn Erik Pedersen
e10e51a008 parser: Fix handling of JSON front matter with escaped quotes
Fixes #3661
2017-07-03 09:01:54 +02:00
Artem Sidorenko
2afe074771 tpl/math: Add log function
It might be very useful for building tag clouds.
2017-07-03 00:20:48 +02:00
Artem Sidorenko
34c566773a tpl/math: Add log function
It might be very useful for building tag clouds.
2017-07-03 00:20:48 +02:00
Mitchell Cohen
41805dca9e hugolib: Render 404.html for all languages
Fixes #3598
2017-07-01 22:58:52 +02:00
Christian Mendoza
4a81c507ea Update pull request link in showcase.html 2017-07-01 13:51:59 +02:00
Christian Mendoza
f751e57a33 Update christianmendoza.me in the showcase 2017-07-01 13:49:07 +02:00
digitalcraftsman
d582419bbc Remove commit message prefix from showcase addition guide 2017-07-01 13:19:38 +02:00
coderzh
7ee1f25e9e hugo import jekyll support nested _posts directories
Fixes #1890
Closes #1911
2017-07-01 10:15:22 +02:00
digitalcraftsman
d12791cf9b Fix path for screenshot in showcase addition guide 2017-06-30 22:17:24 +02:00
shazic
e487b91646 Add invincible.site to the showcase 2017-06-30 22:11:00 +02:00
digitalcraftsman
c85cfccf5b Update guide for showcase additions 2017-06-30 21:55:09 +02:00
Bjørn Erik Pedersen
c44b31c1ae Fix spelling 2017-06-30 09:35:59 +02:00
Bjørn Erik Pedersen
dc10d7f68e Add slightly better GitHub install description
See https://github.com/gohugoio/hugo/issues/3657
2017-06-30 09:34:41 +02:00
Bjørn Erik Pedersen
2611980f4a Revert "Add workaround to Fetch from GitHub documentation"
This reverts commit c4e21471adb2ff32250346fcdaa4e1df11d7d7d2.
2017-06-30 09:30:27 +02:00
Bjørn Erik Pedersen
b2e56907e2 Fix Git commit link in footer 2017-06-29 10:46:30 +02:00
Bjørn Erik Pedersen
b025a63805 Regenerate commands docs for v0.24.1 2017-06-29 08:42:27 +02:00
Bjørn Erik Pedersen
0741ad085e Update README.md 2017-06-29 08:40:24 +02:00
Bjørn Erik Pedersen
942d130a63 Add branch info to README 2017-06-29 08:39:23 +02:00
Bjørn Erik Pedersen
e8c3639097 Set hugoDocs/master to 0.24.1
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
2017-06-29 08:23:43 +02:00
Bjørn Erik Pedersen
3aa0e16d0c cache: Add even more concurrency to test 2017-06-28 22:47:28 +02:00
Bjørn Erik Pedersen
b3c8056de2 cache: Add concurrent cache test 2017-06-28 22:44:37 +02:00
Bjørn Erik Pedersen
fe132e1c3e vendor: Add missing WebP dependencies
See #3529
2017-06-28 22:16:45 +02:00
Bjørn Erik Pedersen
8431c8d39d tpl: Add WebP images support
Fixes #3529
2017-06-28 21:45:48 +02:00
Bruno Amaral
da72805a43 tpl: Only show post's own keywords in schema.org
Fixes #2635
Closes #2646
2017-06-28 21:26:18 +02:00
Bjørn Erik Pedersen
72fd871710 hugolib: Add more summary test
Closes #2973
2017-06-28 20:30:26 +02:00
Maik Ellerbrock
118f8f7cf2 Dockerfile: Update Dockerfile and add Docker optimizations 2017-06-28 03:35:26 -06:00
Anthony Fok
c4e21471ad Add workaround to Fetch from GitHub documentation
`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.

Fixes gohugoio/hugo#3657
2017-06-28 03:12:38 -06:00
Anthony Fok
db0a3c0853 Fix typo in release note 2017-06-28 03:05:47 -06:00
Damir Vandic
56d82aa025 hugofs: Fix typo in code comment 2017-06-27 13:21:55 -06:00
Yihui Xie
eccb064782 tpl: Simplify the Disqus template a little bit (#3655)
In accordance to the official guide: https://disqus.com/admin/universal/
2017-06-27 09:45:48 -06:00
Yihui Xie
2e1e4934b6 tpl: Improve the built-in Disqus template (#3639)
* 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
2017-06-27 05:40:01 -06:00
Haishan Zhou
a54404968a helpers: Add Blackfriday 'joinLines' extension support (#3574)
See https://github.com/russross/blackfriday/pull/334
"add an extension to handle Chinese (or CJK) newlines"
for more information.
2017-06-27 04:56:50 -06:00
Frank Braun
bfce30d859 helpers: add --initial-header-level=2 to rst2html (#3528)
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.
2017-06-27 04:26:33 -06:00
Anthony Fok
30e14cc316 Make --navigateToChanged more robust on Windows
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
2017-06-27 11:45:54 +02:00
Bjørn Erik Pedersen
c825a73121 Support open "current content page" in browser
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
2017-06-26 21:34:16 +02:00
Bjørn Erik Pedersen
7198ea8a1e Revert "Remove docs building from CI builds"
Now /docs is a Git subtree, so now this should just work.

This reverts commit 214dbdfb6f016d21415bc1ed511a37a084238878.
2017-06-26 21:05:21 +02:00
Bjørn Erik Pedersen
dd78d5b23f Squashed 'docs/' content from commit 5d9a6703
git-subtree-dir: docs
git-subtree-split: 5d9a6703591c29283800d7b9e4c5c85981ed86d6
2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
ab4e5da810 Merge commit 'dd78d5b23fe597f4461aa4199401b4e07c0612e2' as 'docs' 2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
a7765bb3c1 Merge commit 'dd78d5b23fe597f4461aa4199401b4e07c0612e2' as 'docs' 2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
31393f6024 Remove the docs submodule
Will be replaced by a Git subtree.

See #3647
2017-06-26 20:45:04 +02:00