6150 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
b332d93e39 docs: Add a time to 0.20.4 release docs
To make it newer than the one earlier today :-)
2017-04-24 21:47:08 +02:00
Bjørn Erik Pedersen
e7a1d5b221 releaser: Add relase notes for release of 0.20.4
[ci skip]
v0.20.4
2017-04-24 21:07:19 +02:00
Bjørn Erik Pedersen
b096a10fe9 releaser: Add relase notes for release of 0.20.4
[ci skip]
2017-04-24 21:07:19 +02:00
James Munnelly
24be139cb7 Add -linkmode external 2017-04-24 20:09:32 +02:00
James Munnelly
3e0f1ad7f5 Set extldflags to static when building 2017-04-24 20:09:32 +02:00
Ubuntu
5efd0df097 releaser: Add relase notes to /docs for release of 0.20.3
[ci skip]
2017-04-24 13:36:39 +02:00
Ubuntu
0bd0593a77 releaser: Add relase notes to /docs for release of 0.20.3
[ci skip]
2017-04-24 13:36:39 +02:00
Bjørn Erik Pedersen
cdc5e17e57 release: Adjust release notes for 0.20.3 2017-04-24 13:36:39 +02:00
Bjørn Erik Pedersen
c6e4aff1ce release: Adjust release notes for 0.20.3 2017-04-24 13:36:39 +02:00
Bjørn Erik Pedersen
667833de43 releaser: Add relase notes draft for release of 0.20.3
[ci skip]
2017-04-24 13:36:39 +02:00
Bjørn Erik Pedersen
c0f491ab6c releaser: Add relase notes draft for release of 0.20.3
[ci skip]
2017-04-24 13:36:39 +02:00
Bjørn Erik Pedersen
67746f36dd releaser: Fix a Go vet complaint
See #3358
2017-04-24 12:41:47 +02:00
Bjørn Erik Pedersen
8f92ccde50 Automate the Hugo release process
This commit adds a work flow aroung GoReleaser to get the Hugo release process automated and more uniform:

* It can be run fully automated or in two steps to allow for manual edits of the relase notes.
* It supports both patch and full releases.
* It fetches author, issue, repo info. etc. for the release notes from GitHub.
* The file names produced are mainly the same as before, but we no use tar.gz as archive for all Unix versions.
* There isn't a fully automated CI setup in place yet, but the release tag is marked in the commit message with "[ci deploy]"

Fixes #3358
2017-04-24 11:08:56 +02:00
Bjørn Erik Pedersen
7f6430d84d Automate the Hugo release process
This commit adds a work flow aroung GoReleaser to get the Hugo release process automated and more uniform:

* It can be run fully automated or in two steps to allow for manual edits of the relase notes.
* It supports both patch and full releases.
* It fetches author, issue, repo info. etc. for the release notes from GitHub.
* The file names produced are mainly the same as before, but we no use tar.gz as archive for all Unix versions.
* There isn't a fully automated CI setup in place yet, but the release tag is marked in the commit message with "[ci deploy]"

Fixes #3358
2017-04-24 11:08:56 +02:00
Bjørn Erik Pedersen
0e87b18b66 hugolib: Fix handling of zero-length files
This was a regression in Hugo 0.20. This commit makes sure that zeron-length files are not rendered to file.

Fixes #3355
2017-04-23 22:46:01 +02:00
Albert Nigmatzianov
e98f885b8a hugolib: Prevent decoding pageParam in common cases 2017-04-22 22:40:20 +02:00
Albert Nigmatzianov
6498d73c08 helpers: Delete RenderingContext.getConfig 2017-04-22 22:40:20 +02:00
xofyarg
b5b6e81c02 hugolib: Ignore non-source files on partial rebuild
Partial rebuild does not have the same logic as normal rebuild on
selecting which file to build. This change makes it possible to
share the file select logic between two kinds of build.

Fix #3325.
2017-04-22 22:38:54 +02:00
Jack Taylor
71977cbcff tplimpl: Add translation links to the default sitemap template
For pages with translations, add links with hreflang attributes to the
default sitemap template. This helps Google to show the correct
language page in its search results. The syntax used is based on
Google's example at [1].

Also update the sitemap template docs to reflect the changes in the
default template.

[1]
https://support.google.com/webmasters/answer/2620865?hl=en&topic=2370587&ctx=topic

Fixes #2569
2017-04-22 22:37:14 +02:00
Jack Taylor
90d3fbf1da tplimpl: Add translation links to the default sitemap template
For pages with translations, add links with hreflang attributes to the
default sitemap template. This helps Google to show the correct
language page in its search results. The syntax used is based on
Google's example at [1].

Also update the sitemap template docs to reflect the changes in the
default template.

[1]
https://support.google.com/webmasters/answer/2620865?hl=en&topic=2370587&ctx=topic

Fixes #2569
2017-04-22 22:37:14 +02:00
Stefan Buynov
5f3ad1c319 commands: Import Octopress image tag in Jekyll importer 2017-04-22 22:35:52 +02:00
Cameron Moore
8cd3ea565a Fix check-vendor logic in Makefile 2017-04-22 22:34:12 +02:00
Cameron Moore
9c72fa3661 Move lookup order section within lookup order page
See PR rdwatters/hugo-docs-concept#99
Fixes rdwatters/hugo-docs-concept#98
2017-04-21 16:02:05 -05:00
Ryan Watters
8fb94fa4ae Add note on Golang regexp library to findRE and replaceRE funcs 2017-04-21 13:01:19 -05:00
Bud Parr
6aaf47be8a Remove the pesky .DS_store from the site and improve .gitignore
Haha, pesky indeed. Thanks @budparr

See PR rdwatters/hugo-docs-concept#96
2017-04-21 10:26:17 -05:00
Ryan Watters
1b86764964 Correct typo in cm-types page
Closes rdwatters/hugo-docs-concept#94
2017-04-20 22:03:27 -05:00
Ryan Watters
e63c2fb1e5 Remove extra parentheses in GetPage function example 2017-04-20 17:15:19 -05:00
Ryan Watters
21ebf481df Remove extra parentheses in GetPage function example 2017-04-20 17:14:57 -05:00
Ryan Watters
d304130629 Clean up links in RSS templates 2017-04-20 12:56:48 -05:00
Bjørn Erik Pedersen
7935541087 Remove check-vendor from make check
I suspect there are some false negatives in this one.
2017-04-19 18:12:01 +02:00
Bjørn Erik Pedersen
d6818f2381 vendor: Fix go-toml 2017-04-19 18:09:51 +02:00
Cameron Moore
592e055f12 Add check-vendor target to Makefile
The check-vendor target will exit with an error if any files in vendor/
differ from what's checked into git.

govendor checksums can get out of sync if extraneous files are in the
local, third-party repo (see kardianos/govendor#129).  govendor also
updates the vendor.json upon "sync."  We can use that quirk to detect
out of sync checksums in CI, so I've added check-vendor to the check
target dependencies.
2017-04-19 18:04:53 +02:00
Ryan Watters
e97837f656 Fix typo in Format function 2017-04-18 19:46:18 -05:00
Ryan Watters
4a2148e276 Clean up list ordering and grouping; add ref to Format func 2017-04-18 19:43:34 -05:00
Ryan Watters
c67f09b209 Update signature for len function 2017-04-18 19:32:35 -05:00
Ryan Watters
999ba8d47e Add len to functions list with examples
Closes rdwatters/hugo-docs-concept#92
2017-04-18 19:30:25 -05:00
Ryan Watters
246bb06854 Fix heading structure for newest releases 2017-04-18 13:26:00 -05:00
Ryan Watters
6cba8ff7fc Fix minor typos in Release Notes 2017-04-18 12:29:39 -05:00
Ryan Watters
2d1854f7fb Add 20+ Release Notes 2017-04-18 12:27:26 -05:00
Ryan Watters
b1ce0d9861 Fix .Date.Pages typos across the board 2017-04-18 12:20:16 -05:00
Ryan Watters
f7fae4b156 Fix .Date.Pages typos across the board 2017-04-18 12:20:00 -05:00
Bjørn Erik Pedersen
ab692e73de hugolib: Log WARNING only on unknown /data files
Fixes #3361
2017-04-18 18:47:37 +02:00
Ricky Han
61c510b048 docs: Add txtpen as alternative commenting service 2017-04-18 18:05:52 +02:00
Ricky Han
7cdc244a72 docs: Add txtpen as alternative commenting service 2017-04-18 18:05:52 +02:00
digitalcraftsman
ed0c3ec4ef Fix .Data.Pages range in sample
See spf13/hugo#3350
2017-04-16 13:26:51 +02:00
Rachel Simone Weil
311ed72012 docs: Fix .Data.Pages range in sample 2017-04-16 13:22:24 +02:00
Rachel Simone Weil
b5e32eb609 docs: Fix .Data.Pages range in sample 2017-04-16 13:22:24 +02:00
Bjørn Erik Pedersen
3b81165796 docs: Add 0.20.2 release notes 2017-04-16 10:56:50 +02:00
Bjørn Erik Pedersen
66ec6305f6 docs: Add 0.20.2 release notes 2017-04-16 10:56:50 +02:00
Bjørn Erik Pedersen
1cf29200b4 tplimpl: Allow text partials in HTML templates
Most obvius benefit of this is to include CSS partials with css file suffix into HTML templates.

A valid workaround would be to rename the file `mystyles.html`, but that doesn't work too good for external editors etc.

The css partial is  a method used in some themes before Hugo 0.20, but then it stopped working.

This commit reintroduces that behaviour.

Note that the regular layout lookups for text templates, i.e. "single.json" will be
prefixed with "_text/" on lookup and will only match in the text collection.

Fixes #3273
2017-04-16 09:17:47 +02:00