Bjørn Erik Pedersen [Wed, 1 Mar 2017 17:37:44 +0000 (18:37 +0100)]
docs: Add some more quotes
Bjørn Erik Pedersen [Wed, 1 Mar 2017 16:07:38 +0000 (17:07 +0100)]
hugolib: Make sure that empty terms lists are still created
Fixes #2977
Bjørn Erik Pedersen [Wed, 1 Mar 2017 14:03:28 +0000 (15:03 +0100)]
Handle Hugo version strings with patch level
Fixes #3025
Bjørn Erik Pedersen [Wed, 1 Mar 2017 13:34:40 +0000 (14:34 +0100)]
helpers: Fix version string for Hugo 0.20 and similar
Fixes #3112
Bjørn Erik Pedersen [Wed, 1 Mar 2017 11:30:41 +0000 (12:30 +0100)]
hugolib: Only return RSSLink when RSS is available
Fixes #1302
Bjørn Erik Pedersen [Tue, 28 Feb 2017 20:25:08 +0000 (21:25 +0100)]
vendor: Update Cobra
Fixes #2349
Keane Nguyen [Tue, 28 Feb 2017 20:12:34 +0000 (14:12 -0600)]
docs: Correct date in automated deployment tutorial
Last modified date couldn't be parsed by Hugo.
vsopvsop [Tue, 28 Feb 2017 20:06:48 +0000 (01:36 +0530)]
docs: Correct link of 'now' tpl func in release notes
When mentioning the commit for 'now' template function the previous line's github link is repeated unfortunately.
Bjørn Erik Pedersen [Tue, 28 Feb 2017 09:07:10 +0000 (10:07 +0100)]
vendor: Bump versions
Bjørn Erik Pedersen [Tue, 28 Feb 2017 08:06:33 +0000 (09:06 +0100)]
hugolib: Only consider regular pages in Prev/Next
Fixes #3108
Keane Nguyen [Sun, 26 Feb 2017 04:00:39 +0000 (22:00 -0600)]
docs: Revise automated deployment tutorial
Update tutorial to reflect changes to Wercker website.
Bjørn Erik Pedersen [Mon, 27 Feb 2017 12:58:50 +0000 (13:58 +0100)]
Bump version to 0.20-DEV
Bjørn Erik Pedersen [Mon, 27 Feb 2017 10:21:29 +0000 (11:21 +0100)]
docs: Some minor release notes fixes
Bjørn Erik Pedersen [Mon, 27 Feb 2017 10:16:19 +0000 (11:16 +0100)]
docs: Fix shortcode param in release notes
Bjørn Erik Pedersen [Mon, 27 Feb 2017 09:49:35 +0000 (10:49 +0100)]
Update versions to 0.19 release
Bjørn Erik Pedersen [Mon, 27 Feb 2017 09:35:31 +0000 (10:35 +0100)]
docs: Add release notes for Hugo 0.19
Bjørn Erik Pedersen [Sun, 26 Feb 2017 20:51:53 +0000 (21:51 +0100)]
docs: Add documentation for disableKinds
Fixes #3054
Cameron Moore [Sat, 25 Feb 2017 23:12:08 +0000 (17:12 -0600)]
docs: Update RSS docs with rssLimit changes
Side effect: remove unnecessary XML templates from example blog site.
Fixes #3065
Bjørn Erik Pedersen [Sat, 25 Feb 2017 17:14:48 +0000 (18:14 +0100)]
Revert "hugolib: Add terms' pages to .Data.Pages"
This reverts commit
e117b1b2c7d18f25e1b7094fd7edb5e12721b79d.
Will have to think a little about this.
Bjørn Erik Pedersen [Sat, 25 Feb 2017 17:10:51 +0000 (18:10 +0100)]
Revert "hugolib: Render paginator pages for taxonomy terms"
This reverts commit
4d679627ecf7801ee80cbd37909155728249829e.
Will have to think a little more about this.
Bjørn Erik Pedersen [Sat, 25 Feb 2017 09:02:56 +0000 (10:02 +0100)]
docs: Regenerate commands doc
digitalcraftsman [Fri, 24 Feb 2017 20:36:11 +0000 (21:36 +0100)]
tpl: Add title meta tag to twitter card template
Fixes #3095
digitalcraftsman [Fri, 24 Feb 2017 21:21:58 +0000 (22:21 +0100)]
docs: Remove waffle.io graph from CONTRIBUTING.md
Fixes #2892
Josh Archer [Wed, 22 Feb 2017 14:24:59 +0000 (14:24 +0000)]
docs: Adds 'Using _index.md' page
There has been confusion regarding the use of _index.md pages following
the shift to 'Everything is a Page' in Hugo v0.18:
https://discuss.gohugo.io/t/hugo-0-18-ignores-index-md-in-the-section/4896
This has lead to attempts at clarification:
https://discuss.gohugo.io/t/-index-md-pages-in-section-taxonomies-etc-are-not-rendered-using-single-html-template/5466
There is also an open issue regarding improving the docs on this topic:
https://github.com/spf13/hugo/issues/2827
This commit adds a dedicated page explaining how _index.md files fit
into Hugo's template hierarchy, what they can contain and how to render
content from them onto the respective list/terms/home page.
What this commit doesn't do is address confusion over former behaviour
of the 'index.md' files (note the lack of _). Instead it focuses on
clarifying the new behaviour in the hope of rendering the old moot.
Fixes #2827
Kiley Dorton [Fri, 24 Feb 2017 18:27:32 +0000 (13:27 -0500)]
docs: Fix ambiguous typo in quickstart
digitalcraftsman [Thu, 23 Feb 2017 21:05:38 +0000 (22:05 +0100)]
docs: Mention Hugo's official twitter account
jacob-long [Wed, 22 Feb 2017 06:05:07 +0000 (01:05 -0500)]
docs: Add article to press.md + cleanup
Added article from gettingthingstech.com.
I also cleaned up some poorly-aligned entries near the top of markdown table
(though it doesn't affect the HTML output either way).
Bjørn Erik Pedersen [Thu, 23 Feb 2017 09:03:48 +0000 (10:03 +0100)]
hugolib: Fix preserveTaxonomyNames regression
Fixes #3070
Hauke Löffler [Wed, 22 Feb 2017 23:17:14 +0000 (00:17 +0100)]
Update Docker file to Go 1.8
* new go-version, switch to alpine (reduce size by 500mb)
* use govendor
Bjørn Erik Pedersen [Wed, 22 Feb 2017 20:31:52 +0000 (21:31 +0100)]
hugolib: Render paginator pages for taxonomy terms
See #2826
Bjørn Erik Pedersen [Wed, 22 Feb 2017 20:13:21 +0000 (21:13 +0100)]
hugolib: Add terms' pages to .Data.Pages
Fixes #2826
Bjørn Erik Pedersen [Wed, 22 Feb 2017 08:38:55 +0000 (09:38 +0100)]
hugolib: Temporarily disable leaktest
See #3082
Bjørn Erik Pedersen [Tue, 21 Feb 2017 23:14:27 +0000 (00:14 +0100)]
hugolib: Fix broken shortcode tests
Bjørn Erik Pedersen [Tue, 21 Feb 2017 21:53:37 +0000 (22:53 +0100)]
hugolib: Include full filepath on shortcode errors
Fixes #3079
Félix Blanco [Tue, 21 Feb 2017 11:42:13 +0000 (12:42 +0100)]
docs: Add promotive.es to the showcase
Bjørn Erik Pedersen [Tue, 21 Feb 2017 17:56:56 +0000 (18:56 +0100)]
hugolib: Cleanup the Goroutine count calculation
Bjørn Erik Pedersen [Tue, 21 Feb 2017 15:24:47 +0000 (16:24 +0100)]
vendor: Update cast
Fixes #3059
bogem [Mon, 20 Feb 2017 08:53:11 +0000 (13:53 +0500)]
commands: Cache logFile in createLogger
bogem [Mon, 20 Feb 2017 08:52:06 +0000 (13:52 +0500)]
hugolib: Add relativeURLs and canonifyURLs to Site
bogem [Mon, 20 Feb 2017 08:50:34 +0000 (13:50 +0500)]
commands: Remove flagChanged from commandeer
Alan Orth [Tue, 21 Feb 2017 13:18:59 +0000 (15:18 +0200)]
tpl: Use og:updated_time OpenGraph tag on nodes
A previous commit greatly improved the OpenGraph tags generated by
Hugo's internal opengraph template, but there was a minor error in
the fix. Nodes are of type "website" and according to the Facebook
docs they should use og:updated_time.
See: https://github.com/spf13/hugo/pull/2979
See: https://developers.facebook.com/docs/reference/opengraph/object-type/website/
John Feminella [Sun, 12 Feb 2017 20:30:39 +0000 (15:30 -0500)]
Use Page.Params more consistently when adding metadata
Bjørn Erik Pedersen [Tue, 21 Feb 2017 12:55:08 +0000 (13:55 +0100)]
tpl, hugolib: Fix live-reload of non-renderable content pages
Fixes #3062
Alan Orth [Tue, 21 Feb 2017 06:50:35 +0000 (08:50 +0200)]
tpl: Remove twitter:domain tag from internal shortcode
It seems this metadata tag is no longer used by Twitter, as it has
been removed from their Cards Markup Tag Reference since at least
2013 according to a post on the W3 mailing list.
See: https://dev.twitter.com/cards/markup
See: https://lists.w3.org/Archives/Public/www-validator/2013Oct/0025.html
Li-aung Yip [Tue, 21 Feb 2017 09:38:12 +0000 (17:38 +0800)]
docs: Improve documentation for menu rendering
Fixes #1393
Bjørn Erik Pedersen [Tue, 21 Feb 2017 08:46:56 +0000 (09:46 +0100)]
commands: Make sure build error is logged in watch mode
See #3062
Bjørn Erik Pedersen [Tue, 21 Feb 2017 08:41:56 +0000 (09:41 +0100)]
utils: Use local logger
Bjørn Erik Pedersen [Tue, 21 Feb 2017 07:49:04 +0000 (08:49 +0100)]
hugolib: Add check for p.Markup == "org"
To be improved.
Chase Adams [Tue, 21 Feb 2017 07:46:03 +0000 (23:46 -0800)]
all: Add org-mode support
Fixes #1483
See #936
Bjørn Erik Pedersen [Mon, 20 Feb 2017 08:33:35 +0000 (09:33 +0100)]
hugolib: Finish menu vs section content pages
This commit also fixes the default menu sort when the weight is 0.
Closes #2974
Abdo Roig-Maranges [Sun, 22 Jan 2017 11:28:31 +0000 (12:28 +0100)]
hugolib: Improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.
This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.
Updates #2974
Bjørn Erik Pedersen [Mon, 20 Feb 2017 07:51:18 +0000 (08:51 +0100)]
hugolib: Cache the value of Page's RelPermalink
bogem [Sun, 19 Feb 2017 22:53:48 +0000 (03:53 +0500)]
Get rid of some viper.Get* calls
Enforce usage of PathSpec
Fixes #3060
Updates #2728
Bjørn Erik Pedersen [Sun, 19 Feb 2017 19:08:03 +0000 (20:08 +0100)]
config: Remove unused var
Abdó Roig-Maranges [Sun, 19 Feb 2017 14:00:18 +0000 (15:00 +0100)]
hugolib: Discard current language based on .Lang()
Otherwise we fail to skip the current language in translations
for paginated pages.
Fixes #2972
Bjørn Erik Pedersen [Sun, 19 Feb 2017 10:15:08 +0000 (11:15 +0100)]
hugolib: Fix .Site.LastChange
This commit makes sure that the `.Site.LastChange` is fetched from the latest page modification date.
Previously, this value was fetched from the last page in the default page sort, which may not be the last by date
if weight is set.
Fixes #2909
Closes #2910
Bjørn Erik Pedersen [Sun, 19 Feb 2017 12:18:04 +0000 (13:18 +0100)]
hugolib: Add temporary date parse test
To debug the irregular Windows test failure.
See #3059
Bjørn Erik Pedersen [Sun, 19 Feb 2017 09:33:28 +0000 (10:33 +0100)]
hugolib: Minor Go vet fix
Anton Staaf [Thu, 26 Jan 2017 19:58:25 +0000 (11:58 -0800)]
hugolib: Fix regression of .Truncated evaluation in manual summaries
This fixes the behavior of .Truncated that was introduced with commit
bef496b97e1dc2df8c52b080152d539a58752801 which was later broken. The
desired behavior is that .Truncated would evaluate to false when there
was nothing after the user defined summary marker.
This also adds a simple unit test to ensure that this feature isn't
broken again. The check for content after the user defined summary
marker is done on the raw content instead of the working copy because
some of the markup renderers add elements after the marker, making it
difficult to determine if there is actually any content.
The behavior (evaluating to false when there is no content, just
summary) is also now documented.
Bjørn Erik Pedersen [Sun, 19 Feb 2017 08:15:30 +0000 (09:15 +0100)]
hugolib: Add missing page kind to allKinds
John Feminella [Sun, 19 Feb 2017 07:50:08 +0000 (02:50 -0500)]
hugolib: Enhance `.Param` to permit arbitrarily nested parameter references
The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.
Fixes #2598
Bjørn Erik Pedersen [Sat, 18 Feb 2017 09:02:12 +0000 (10:02 +0100)]
hugolib: Add disableKinds option
Fixes #2534
Bjørn Erik Pedersen [Sat, 18 Feb 2017 21:15:25 +0000 (22:15 +0100)]
appveyor: Add go version
Bjørn Erik Pedersen [Sat, 18 Feb 2017 21:08:10 +0000 (22:08 +0100)]
appveyor: Fix build, take 2
Bjørn Erik Pedersen [Sat, 18 Feb 2017 21:07:17 +0000 (22:07 +0100)]
appveyor: Fix build
Bjørn Erik Pedersen [Sat, 18 Feb 2017 20:56:03 +0000 (21:56 +0100)]
appveyor: Print Go environment
Bjørn Erik Pedersen [Sat, 18 Feb 2017 08:08:00 +0000 (09:08 +0100)]
tplimpl: Fix issue with recursive templates
Fixes #2927
Bjørn Erik Pedersen [Fri, 17 Feb 2017 17:40:08 +0000 (18:40 +0100)]
hugolib: Fix issue with taxonomies when only some have content page
Fixes #2992
Bjørn Erik Pedersen [Fri, 17 Feb 2017 20:14:52 +0000 (21:14 +0100)]
hugolib: More test helper cleanup
Bjørn Erik Pedersen [Fri, 17 Feb 2017 19:52:50 +0000 (20:52 +0100)]
hugolib: Test helper cleanup
Cameron Moore [Mon, 13 Feb 2017 16:11:22 +0000 (10:11 -0600)]
hugolib: Make RSS item limit configurable
Add a new rssLimit site configuration option with default of 15. Prior
to this fix, you could create your own RSS feed to override the default
limit of 15, but we still had a hardcoded limit of 50 items set in
`hugolib.renderRSS()`.
With this option in place, the `range first 15 .Data.Pages` logic is no
longer hardcoded into the embedded RSS template.
Because the size of the slice passed to the template is now limited to
rssLimit instead of 50, this commit is a breaking change for sites
with a custom RSS template that expects more than 15 items.
Fixes #3035
Bjørn Erik Pedersen [Fri, 17 Feb 2017 17:34:58 +0000 (18:34 +0100)]
hugolib: Fix Windows build failure, final take
Bjørn Erik Pedersen [Fri, 17 Feb 2017 17:28:14 +0000 (18:28 +0100)]
hugolib: Fix Windows build failure, take 2
Bjørn Erik Pedersen [Fri, 17 Feb 2017 17:22:07 +0000 (18:22 +0100)]
hugolib: Fix Windows build failure
Cameron Moore [Fri, 17 Feb 2017 16:47:21 +0000 (10:47 -0600)]
tplimpl: Fix instagram shortcode panic on invalid ID
Instagram doesn't return a valid JSON response when the requested ID is
invalid or not found.
Fixes #3048
Bjørn Erik Pedersen [Fri, 17 Feb 2017 16:39:33 +0000 (17:39 +0100)]
travis: Bump to Go 1.7.5 and 1.8 (Yay!)
Bjørn Erik Pedersen [Fri, 17 Feb 2017 16:33:26 +0000 (17:33 +0100)]
vendor: Update Viper
Fixes #2603
Bjørn Erik Pedersen [Fri, 17 Feb 2017 16:26:09 +0000 (17:26 +0100)]
hugolib: Add test case for empty Pages in regular pages
Fixes #2947
Bjørn Erik Pedersen [Fri, 17 Feb 2017 16:20:46 +0000 (17:20 +0100)]
hugolib: Remove deprecated marked for removal
Fixes #3029
Bjørn Erik Pedersen [Fri, 17 Feb 2017 13:24:56 +0000 (14:24 +0100)]
tplimpl: Fix data race in resGetResource
Fixes #3045
Bjørn Erik Pedersen [Fri, 17 Feb 2017 13:22:40 +0000 (14:22 +0100)]
tplimpl: Refactor imageConfig into a struct
Updates #2701
Bjørn Erik Pedersen [Fri, 17 Feb 2017 12:30:50 +0000 (13:30 +0100)]
tpl: Refactor package
Now:
* The template API lives in /tpl
* The rest lives in /tpl/tplimpl
This is bound te be more improved in the future.
Updates #2701
Bjørn Erik Pedersen [Sun, 5 Feb 2017 03:20:06 +0000 (10:20 +0700)]
all: Refactor to nonglobal Viper, i18n etc.
This is a final rewrite that removes all the global state in Hugo, which also enables
the use if `t.Parallel` in tests.
Updates #2701
Fixes #3016
digitalcraftsman [Thu, 16 Feb 2017 08:44:27 +0000 (09:44 +0100)]
docs: Add hugofy for atom to the tools section
Bjørn Erik Pedersen [Wed, 15 Feb 2017 09:00:34 +0000 (10:00 +0100)]
Use OS fs by default
Fixes #3032
Bjørn Erik Pedersen [Sat, 11 Feb 2017 13:56:46 +0000 (20:56 +0700)]
docs: Remove the source relative links docs
See #3028
ITSecMedia [Sat, 11 Feb 2017 09:41:07 +0000 (10:41 +0100)]
docs: Update bullion-investor.com/report/ in the showcase
Bjørn Erik Pedersen [Sat, 11 Feb 2017 09:51:22 +0000 (16:51 +0700)]
Deprecate sourceRelativeLinks
Fixes #3028
Closes #3026
Closes #2891
Closes #2691
Cameron Moore [Wed, 8 Feb 2017 16:40:11 +0000 (10:40 -0600)]
tpl: Accept limit as interface in findRE func
Fixes #3018
John Feminella [Fri, 10 Feb 2017 13:01:25 +0000 (08:01 -0500)]
hugolib: Add ability to sort by frontmatter parameters
Bjørn Erik Pedersen [Fri, 10 Feb 2017 10:26:28 +0000 (17:26 +0700)]
hugolib: Fix error for non-renderable HTML content with shortcodes
This commit re-introduces template lookup order that was accidently removed as
part of the template nonglobal refactoring.
Fixes #3021
Bjørn Erik Pedersen [Thu, 9 Feb 2017 18:28:02 +0000 (01:28 +0700)]
hugolib: Use the site's Tmpl for non-renderable pages
Yizhe Xu [Thu, 9 Feb 2017 09:50:16 +0000 (02:50 -0700)]
docs: Add instructions for customized domain
John Feminella [Thu, 9 Feb 2017 09:48:07 +0000 (04:48 -0500)]
hugolib: Correct repeated spelling errors in documentation
Bjørn Erik Pedersen [Tue, 7 Feb 2017 03:43:30 +0000 (10:43 +0700)]
tpl: Must do a extra lookup of cloned base templates
See #2549
Fixes #3013
Bjørn Erik Pedersen [Mon, 6 Feb 2017 19:04:12 +0000 (02:04 +0700)]
Revert "hugolib: Add some baseof test variants"
This reverts commit
d11f37d97cb3b1298f04f2fbc6ba643d93509b35.
Will have to look more closely into this.
See #2995
Bjørn Erik Pedersen [Mon, 6 Feb 2017 16:07:48 +0000 (23:07 +0700)]
hugolib: Add some baseof test variants
See #2995
Dundonian [Sun, 5 Feb 2017 20:55:18 +0000 (12:55 -0800)]
docs: Update Bitbucket Hosting Tutorial
Pascal Aubort [Sun, 5 Feb 2017 20:53:14 +0000 (21:53 +0100)]
docs: Add article to press section
Link blog post which describes how to use Cloud9 IDE to make a Hugo site and then deploy it to Google App Engine.
ominty [Wed, 1 Feb 2017 17:45:13 +0000 (18:45 +0100)]
docs: Update link to blog post in community/press.md
changed link to german tutorial series as site structure has changed due to page update