Bjørn Erik Pedersen [Fri, 7 Jul 2017 07:29:08 +0000 (09:29 +0200)]
releaser: Add release notes to /docs for release of 0.25
[ci skip]
Bjørn Erik Pedersen [Fri, 7 Jul 2017 07:28:35 +0000 (09:28 +0200)]
releaser: Fix tag push
Bjørn Erik Pedersen [Fri, 7 Jul 2017 07:23:54 +0000 (09:23 +0200)]
releaser: Bump versions for release of 0.25
[ci skip]
Bjørn Erik Pedersen [Fri, 7 Jul 2017 07:14:17 +0000 (09:14 +0200)]
releaser: Add release notes draft for 0.25
Bjørn Erik Pedersen [Fri, 7 Jul 2017 07:08:44 +0000 (09:08 +0200)]
Revert "vendor: Update dependencies"
We are going to release Hugo 0.25 today, and pulling in lots of unknown and untested changes is a bad idea.
This reverts commit
d2c24baafee2e7ee752aeb53fb5c10a633e43d43.
Anthony Fok [Thu, 6 Jul 2017 20:11:02 +0000 (14:11 -0600)]
vendor: Update dependencies
Bjørn Erik Pedersen [Thu, 6 Jul 2017 15:31:04 +0000 (17:31 +0200)]
releaser: Use real theme count in template
Bjørn Erik Pedersen [Thu, 6 Jul 2017 08:36:13 +0000 (10:36 +0200)]
docs: Regenerate the docs helpers
Bjørn Erik Pedersen [Thu, 6 Jul 2017 08:34:53 +0000 (10:34 +0200)]
docs: Regenerate commands doc
Bjørn Erik Pedersen [Thu, 6 Jul 2017 08:34:04 +0000 (10:34 +0200)]
Revert "commands: Adjust docs path"
This reverts commit
729be8074bddb58c9111f32c55cc769e49cd0d5a.
Bjørn Erik Pedersen [Thu, 6 Jul 2017 08:25:46 +0000 (10:25 +0200)]
Bjørn Erik Pedersen [Thu, 6 Jul 2017 08:25:46 +0000 (10:25 +0200)]
Squashed 'docs/' changes from
5d9a6703..
f3c88b08
f3c88b08 Add warning on GitInfo and Shallow Clones
fa5be591 Make the two common Taxonomy templates explicit
4a81c507 Update pull request link in showcase.html
f751e57a Update christianmendoza.me in the showcase
d582419b Remove commit message prefix from showcase addition guide
d12791cf Fix path for screenshot in showcase addition guide
e487b916 Add invincible.site to the showcase
c85cfccf Update guide for showcase additions
c44b31c1 Fix spelling
dc10d7f6 Add slightly better GitHub install description
2611980f Revert "Add workaround to Fetch from GitHub documentation"
b2e56907 Fix Git commit link in footer
b025a638 Regenerate commands docs for v0.24.1
0741ad08 Update README.md
942d130a Add branch info to README
e8c36390 Set hugoDocs/master to 0.24.1
c4e21471 Add workaround to Fetch from GitHub documentation
db0a3c08 Fix typo in release note
git-subtree-dir: docs
git-subtree-split:
f3c88b081022c945f010cdbfcd25e0008e0c3f5b
Bjørn Erik Pedersen [Wed, 5 Jul 2017 23:32:55 +0000 (01:32 +0200)]
releaser: Adjustments
Bjørn Erik Pedersen [Wed, 5 Jul 2017 09:20:48 +0000 (11:20 +0200)]
releaser: Revise the docs handling to match new subtree
Fixes #3649
Bjørn Erik Pedersen [Wed, 5 Jul 2017 08:23:07 +0000 (10:23 +0200)]
releaser: Replace the magic version handling
Take the new version as a string value.
Bjørn Erik Pedersen [Wed, 5 Jul 2017 07:43:47 +0000 (09:43 +0200)]
releaser: Add --try flag to ease testing
Bjørn Erik Pedersen [Sun, 2 Jul 2017 08:46:28 +0000 (10:46 +0200)]
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
Bjørn Erik Pedersen [Sun, 2 Jul 2017 18:14:06 +0000 (20:14 +0200)]
hugolib: Extend the sections API
This commit adds some section related methods that have been asked for:
* .CurrentSection
* .IsDescendant
* .IsAncestor
Fixes #3591
Bjørn Erik Pedersen [Sun, 2 Jul 2017 16:20:14 +0000 (18:20 +0200)]
hugolib: Make .Site.Sections return the top level sections
See #3591
Victor Kropp [Tue, 14 Mar 2017 16:46:33 +0000 (17:46 +0100)]
commands: Support human-readable YAML boolean values in undraft
Bjørn Erik Pedersen [Mon, 3 Jul 2017 08:32:10 +0000 (10:32 +0200)]
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
Bjørn Erik Pedersen [Mon, 3 Jul 2017 08:08:55 +0000 (10:08 +0200)]
tpl/collections: Fix In function for JSON arrays
Fixes #1468
Bjørn Erik Pedersen [Mon, 3 Jul 2017 07:00:17 +0000 (09:00 +0200)]
parser: Fix handling of JSON front matter with escaped quotes
Fixes #3661
Artem Sidorenko [Sun, 2 Jul 2017 22:20:49 +0000 (00:20 +0200)]
tpl/math: Add log function
It might be very useful for building tag clouds.
Mitchell Cohen [Sat, 1 Jul 2017 20:58:52 +0000 (16:58 -0400)]
hugolib: Render 404.html for all languages
Fixes #3598
coderzh [Wed, 2 Mar 2016 00:06:02 +0000 (08:06 +0800)]
hugo import jekyll support nested _posts directories
Fixes #1890
Closes #1911
Bjørn Erik Pedersen [Wed, 28 Jun 2017 20:47:28 +0000 (22:47 +0200)]
cache: Add even more concurrency to test
Bjørn Erik Pedersen [Wed, 28 Jun 2017 20:44:37 +0000 (22:44 +0200)]
cache: Add concurrent cache test
Bjørn Erik Pedersen [Wed, 28 Jun 2017 20:16:45 +0000 (22:16 +0200)]
vendor: Add missing WebP dependencies
See #3529
Bjørn Erik Pedersen [Wed, 28 Jun 2017 19:45:48 +0000 (21:45 +0200)]
tpl: Add WebP images support
Fixes #3529
Bruno Amaral [Sat, 29 Oct 2016 10:30:59 +0000 (11:30 +0100)]
tpl: Only show post's own keywords in schema.org
Fixes #2635
Closes #2646
Bjørn Erik Pedersen [Wed, 28 Jun 2017 18:30:26 +0000 (20:30 +0200)]
hugolib: Add more summary test
Closes #2973
Maik Ellerbrock [Wed, 28 Jun 2017 09:35:26 +0000 (11:35 +0200)]
Dockerfile: Update Dockerfile and add Docker optimizations
Damir Vandic [Tue, 27 Jun 2017 19:21:55 +0000 (21:21 +0200)]
hugofs: Fix typo in code comment
Yihui Xie [Tue, 27 Jun 2017 15:45:48 +0000 (10:45 -0500)]
tpl: Simplify the Disqus template a little bit (#3655)
In accordance to the official guide: https://disqus.com/admin/universal/
Yihui Xie [Tue, 27 Jun 2017 11:40:01 +0000 (06:40 -0500)]
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
Haishan Zhou [Tue, 27 Jun 2017 10:56:50 +0000 (18:56 +0800)]
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.
Frank Braun [Tue, 27 Jun 2017 10:26:33 +0000 (10:26 +0000)]
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.
Anthony Fok [Tue, 27 Jun 2017 09:17:43 +0000 (03:17 -0600)]
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
Bjørn Erik Pedersen [Mon, 26 Jun 2017 19:34:16 +0000 (21:34 +0200)]
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
Bjørn Erik Pedersen [Mon, 26 Jun 2017 19:05:21 +0000 (21:05 +0200)]
Revert "Remove docs building from CI builds"
Now /docs is a Git subtree, so now this should just work.
This reverts commit
214dbdfb6f016d21415bc1ed511a37a084238878.
Bjørn Erik Pedersen [Mon, 26 Jun 2017 18:46:06 +0000 (20:46 +0200)]
Squashed 'docs/' content from commit
5d9a6703
git-subtree-dir: docs
git-subtree-split:
5d9a6703591c29283800d7b9e4c5c85981ed86d6
Bjørn Erik Pedersen [Mon, 26 Jun 2017 18:46:06 +0000 (20:46 +0200)]
Bjørn Erik Pedersen [Mon, 26 Jun 2017 18:39:53 +0000 (20:39 +0200)]
Remove the docs submodule
Will be replaced by a Git subtree.
See #3647
Anthony Fok [Mon, 26 Jun 2017 18:38:45 +0000 (12:38 -0600)]
commands: Use example.com as homepage for new theme
The fictional siteforthistheme.com domain has been
squatted by Afternic of GoDaddy since November 2016...
Anthony Fok [Sun, 25 Jun 2017 14:29:58 +0000 (08:29 -0600)]
releaser: Remove trailing space in fixes list
Bjørn Erik Pedersen [Sat, 24 Jun 2017 07:49:57 +0000 (09:49 +0200)]
releaser: One more fix
Bjørn Erik Pedersen [Sat, 24 Jun 2017 07:18:57 +0000 (09:18 +0200)]
releaser: Improve docs submodule handling
Still not optimal.
Bjørn Erik Pedersen [Fri, 23 Jun 2017 16:57:06 +0000 (18:57 +0200)]
vendor: Fix +-timezones in TOML
Fixes #29
Bjørn Erik Pedersen [Fri, 23 Jun 2017 07:29:59 +0000 (09:29 +0200)]
create: Preserve shortcodes in archetype templates
Fixes #3623
Bjørn Erik Pedersen [Thu, 22 Jun 2017 18:39:55 +0000 (20:39 +0200)]
commands: Create default archetype on new site
See #3626
Bjørn Erik Pedersen [Thu, 22 Jun 2017 18:30:01 +0000 (20:30 +0200)]
create: Fix archetype regression when no archetype file
Fixes #3626
Bjørn Erik Pedersen [Wed, 21 Jun 2017 19:41:40 +0000 (21:41 +0200)]
docs: Update
Bjørn Erik Pedersen [Wed, 21 Jun 2017 19:39:33 +0000 (21:39 +0200)]
Update docs
Anthony Fok [Wed, 21 Jun 2017 19:17:50 +0000 (13:17 -0600)]
releaser: Fix typo, change "relase" to "release"
Bjørn Erik Pedersen [Wed, 21 Jun 2017 12:07:35 +0000 (14:07 +0200)]
Update docs
Bjørn Erik Pedersen [Wed, 21 Jun 2017 11:58:01 +0000 (13:58 +0200)]
releaser: Prepare repository for 0.25-DEV
[ci skip]
Bjørn Erik Pedersen [Wed, 21 Jun 2017 11:53:23 +0000 (13:53 +0200)]
releaser: Update /docs to 0.24 [ci skip]
Bjørn Erik Pedersen [Wed, 21 Jun 2017 11:52:27 +0000 (13:52 +0200)]
releaser: Bump versions for release of 0.24
[ci skip]
Bjørn Erik Pedersen [Wed, 21 Jun 2017 11:52:27 +0000 (13:52 +0200)]
releaser: Update /docs [ci skip]
Bjørn Erik Pedersen [Wed, 21 Jun 2017 11:51:05 +0000 (13:51 +0200)]
releaser: Add release notes draft for 0.24
Bjørn Erik Pedersen [Tue, 20 Jun 2017 15:20:08 +0000 (17:20 +0200)]
output: Identify extension-less text types as text
See #3614
Bjørn Erik Pedersen [Tue, 20 Jun 2017 10:46:03 +0000 (12:46 +0200)]
Support non-md files as archetype files
It now properly uses the extension of the target file to determine archetype file.
Fixes #3597
Fixes #3618
Bjørn Erik Pedersen [Tue, 20 Jun 2017 06:45:52 +0000 (08:45 +0200)]
media, hugolib: Support extension-less media types
This change is motivated by Netlify's `_redirects` files, which is currently not possible to generate with Hugo.
This commit adds a `Delimiter` field to media type, which defaults to ".", but can be blanked out.
Fixes #3614
Bjørn Erik Pedersen [Tue, 20 Jun 2017 08:30:40 +0000 (10:30 +0200)]
hugolib: Add disableAliases
Note that even with this setting enabled, the aliases themselves are preserved on the pages.
The big motivation for this change is to be able to use the alias definitions to generate `.htaccess` or Netlify's `_redirect` files with server-side redirects.
Fixes #3613
Bjørn Erik Pedersen [Mon, 19 Jun 2017 14:45:52 +0000 (16:45 +0200)]
parser: Fix handling of quoted brackets in JSON front matter
Also remove a broken JSON test.
Fixes #3511
Bjørn Erik Pedersen [Mon, 19 Jun 2017 12:48:06 +0000 (14:48 +0200)]
vendor: Update Viper
Bjørn Erik Pedersen [Mon, 19 Jun 2017 12:41:03 +0000 (14:41 +0200)]
hugolib: Fix error handling for JSON front matter
Fixes #3610
Bjørn Erik Pedersen [Sun, 18 Jun 2017 17:39:42 +0000 (19:39 +0200)]
commands, create: Add .Site to the archetype templates
This commit completes the "The Revival of the Archetypes!"
If `.Site` is used in the arcetype template, the site is built and added to the template context.
Note that this may be potentially time consuming for big sites.
A more complete example would then be for the section `newsletter` and the archetype file `archetypes/newsletter.md`:
```
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
tags:
- x
categories:
- x
draft: true
---
<!--more-->
{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
* {{ .Title }}
{{ end }}
```
And then create a new post with:
```bash
hugo new newsletter/the-latest-cool.stuff.md
```
**Hot Tip:** If you set the `newContentEditor` configuration variable to an editor on your `PATH`, the newly created article will be opened.
The above _newsletter type archetype_ illustrates the possibilities: The full Hugo `.Site` and all of Hugo's template funcs can be used in the archetype file.
Fixes #1629
Bjørn Erik Pedersen [Sun, 18 Jun 2017 17:06:28 +0000 (19:06 +0200)]
create: Use archetype template as-is as a Go template
This commit removes the fragile front matter decoding, and takes the provided archetype file as-is and processes it as a template.
This also means that we no longer will attempt to fill in default values for `title` and `date`.
The upside is that it is now easy to create these values in a dynamic way:
```toml
+++
title = {{ .BaseFileName | title }}
date = {{ .Date }}
draft = true
+++
```
You can currently use all of Hugo's template funcs, but the data context is currently very shallow:
* `.Type` gives the archetype kind provided
* `.Name` gives the target file name without extension.
* `.Path` gives the target file name
* `.Date` gives the current time as RFC3339 formatted string
The above will probably be extended in #1629.
Fixes #452
Updates #1629
Bjørn Erik Pedersen [Sat, 17 Jun 2017 08:06:49 +0000 (10:06 +0200)]
Update links to new discuss URL
Bjørn Erik Pedersen [Fri, 16 Jun 2017 12:24:40 +0000 (14:24 +0200)]
vendor: Update deps
Bjørn Erik Pedersen [Fri, 16 Jun 2017 08:11:02 +0000 (10:11 +0200)]
releaser: Add TODO
Bjørn Erik Pedersen [Fri, 16 Jun 2017 07:52:02 +0000 (09:52 +0200)]
releaser: Prepare repository for 0.24-DEV
[ci skip]
Bjørn Erik Pedersen [Fri, 16 Jun 2017 07:47:25 +0000 (09:47 +0200)]
releaser: Update /docs to 0.23 [ci skip]
Bjørn Erik Pedersen [Fri, 16 Jun 2017 07:41:39 +0000 (09:41 +0200)]
releaser: Bump versions for release of 0.23
[ci skip]
Bjørn Erik Pedersen [Fri, 16 Jun 2017 07:41:39 +0000 (09:41 +0200)]
releaser: Update /docs [ci skip]
Bjørn Erik Pedersen [Fri, 16 Jun 2017 07:21:44 +0000 (09:21 +0200)]
releaser: Adjust
Bjørn Erik Pedersen [Fri, 16 Jun 2017 06:55:36 +0000 (08:55 +0200)]
releaser: Add release notes draft for 0.23
[ci skip]
Bjørn Erik Pedersen [Thu, 15 Jun 2017 18:36:40 +0000 (20:36 +0200)]
releaser: Adapt release logic to docs submodule
Bjørn Erik Pedersen [Wed, 14 Jun 2017 09:24:09 +0000 (11:24 +0200)]
Update logo link in README
Bjørn Erik Pedersen [Wed, 14 Jun 2017 09:16:06 +0000 (11:16 +0200)]
Remove docs building from CI builds
We could probably get it working, but we have plenty of site tests now.
Bjørn Erik Pedersen [Wed, 14 Jun 2017 08:37:58 +0000 (10:37 +0200)]
commands: Adjust docs path
Bjørn Erik Pedersen [Wed, 14 Jun 2017 08:35:24 +0000 (10:35 +0200)]
Add docs as submodule
Bjørn Erik Pedersen [Wed, 14 Jun 2017 08:32:16 +0000 (10:32 +0200)]
docs: Remove
Docs site is moved to https://github.com/gohugoio/hugoDocs
Will be re-added here as a Git submodule.
Bjørn Erik Pedersen [Tue, 13 Jun 2017 21:39:55 +0000 (23:39 +0200)]
Update Gitter link in README
That is still running under spf13.
Bjørn Erik Pedersen [Tue, 13 Jun 2017 20:11:05 +0000 (22:11 +0200)]
vendor: Update to new org name
Bjørn Erik Pedersen [Tue, 13 Jun 2017 20:05:39 +0000 (22:05 +0200)]
Change Windows build badge link, take #3
Bjørn Erik Pedersen [Tue, 13 Jun 2017 20:04:36 +0000 (22:04 +0200)]
Change Windows build badge link, take #2
Bjørn Erik Pedersen [Tue, 13 Jun 2017 20:03:05 +0000 (22:03 +0200)]
Update Windows build link
Bjørn Erik Pedersen [Tue, 13 Jun 2017 19:22:47 +0000 (21:22 +0200)]
hugolib: Disable shaky leaktest on CI
digitalcraftsman [Tue, 13 Jun 2017 17:37:30 +0000 (19:37 +0200)]
Update links in CONTRIBUTING.md due to the org transition
digitalcraftsman [Tue, 13 Jun 2017 17:34:20 +0000 (19:34 +0200)]
Update source path in Dockerfile due to the org transition
digitalcraftsman [Tue, 13 Jun 2017 17:32:14 +0000 (19:32 +0200)]
Update clone folder in appveyor.yml due to the org transition
digitalcraftsman [Tue, 13 Jun 2017 17:28:34 +0000 (19:28 +0200)]
Update import path in snapcraft.yaml due to the org transition
Bjørn Erik Pedersen [Tue, 13 Jun 2017 17:07:35 +0000 (19:07 +0200)]
Run gofmt to get imports in line vs gohugoio/hugo
Bjørn Erik Pedersen [Tue, 13 Jun 2017 17:06:34 +0000 (19:06 +0200)]
Update Makefile vs gohugoio/hugo
Bjørn Erik Pedersen [Tue, 13 Jun 2017 17:00:10 +0000 (19:00 +0200)]
Update README to point to gohugoio/hugo
Bjørn Erik Pedersen [Tue, 13 Jun 2017 16:59:38 +0000 (18:59 +0200)]
examples: Update examples to point to gohugoio/hugo
Bjørn Erik Pedersen [Tue, 13 Jun 2017 16:56:22 +0000 (18:56 +0200)]
docs: Update layout references to gohugoio/hugo