Commit Graph
6054 Commits
Author SHA1 Message Date
Ryan Watters 2b06eb88c0 Fix odd syntax highlighting in cross references doc 2017-02-19 02:28:23 -06:00
Ryan Watters ce58bedeb8 Fix local files shortcode 2017-02-19 02:23:37 -06:00
Ryan Watters 1890155a0a Add shortcode from live site for readfile example in local files template 2017-02-19 02:17:46 -06:00
Ryan Watters b8fba275b3 Add shortcode from live site for readfile example in local files template 2017-02-19 02:15:42 -06:00
Bjørn Erik Pedersen 9416fdd334 hugolib: Add missing page kind to allKinds 2017-02-19 09:15:30 +01:00
Ryan Watters ed70c14a2b Add shortcode from live site for readfile example in local files template 2017-02-19 02:12:33 -06:00
Ryan Watters 4e159ed50c Fix featherlight to avoid icon images 2017-02-19 01:57:49 -06:00
Ryan Watters 3bedf1e23d Add featherlight for body copy images 2017-02-19 01:51:29 -06:00
John Feminella 6791d75c7d 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
2017-02-19 08:50:08 +01:00
John Feminella b2e3748a4e 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
2017-02-19 08:50:08 +01:00
Ryan Watters 44e00b623c Fix broken images originally used in how to contribute tutorial 2017-02-19 01:38:28 -06:00
Ryan Watters e028978d8c Update broken links 2017-02-19 01:32:39 -06:00
Ryan Watters 55aae645d6 Fix shortcode language in local file templates that was breaking Netlify build 2017-02-19 01:26:47 -06:00
Ryan Watters 2cb5ad8edd Update shortcode and shortcode templates, both of which need much more work 2017-02-19 01:21:23 -06:00
Ryan Watters 56ecb233b5 Add just a shit ton of content 2017-02-19 00:57:13 -06:00
Ryan Watters 949bbd030f Update functions front matter 2017-02-18 18:02:18 -06:00
Bjørn Erik Pedersen 6d2281c8ea hugolib: Add disableKinds option
Fixes #2534
2017-02-18 22:53:23 +01:00
Bjørn Erik Pedersen e096917f87 appveyor: Add go version 2017-02-18 22:15:25 +01:00
Bjørn Erik Pedersen 13ca0b4c95 appveyor: Fix build, take 2 2017-02-18 22:08:10 +01:00
Bjørn Erik Pedersen 3dade5de09 appveyor: Fix build 2017-02-18 22:07:17 +01:00
Bjørn Erik Pedersen b360f9b30e appveyor: Print Go environment 2017-02-18 21:56:03 +01:00
Ryan Watters be1bb5fcf5 Make further improvements to Go Template Primer 2017-02-18 02:16:50 -06:00
Bjørn Erik Pedersen bdc02edfa8 tplimpl: Fix issue with recursive templates
Fixes #2927
2017-02-18 09:08:40 +01:00
Ryan Watters e24c1af277 Make further improvements to Go Template Primer 2017-02-18 02:04:36 -06:00
Bjørn Erik Pedersen 4493e8ed9f hugolib: Fix issue with taxonomies when only some have content page
Fixes #2992
2017-02-18 08:37:11 +01:00
Ryan Watters 960707a4a0 Update amber and ace sections 2017-02-18 01:12:57 -06:00
Bjørn Erik Pedersen 07ab7ae3d2 hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
Ryan Watters fa1e478041 Update archetypes content 2017-02-17 20:43:00 -06:00
Ryan Watters 82c02b8414 Update content sections admonition 2017-02-17 20:33:06 -06:00
Ryan Watters bec195d1ac Fix page title issues with functions section 2017-02-17 20:23:49 -06:00
Ryan Watters a1ca69b9d6 Fix broken tox on markdown and support pages page 2017-02-17 20:14:22 -06:00
Ryan Watters bd3b1b5365 Make further fixes to shortcodes 2017-02-17 20:10:26 -06:00
Ryan Watters e9c7e0549a Fix order of built in shortcodes 2017-02-17 19:59:28 -06:00
Ryan Watters 605508d43d Fix content footer next and prev links 2017-02-17 19:36:24 -06:00
Ryan Watters ce3eb287df Fix toc sidebar, add icons to site nav, and add prev/next links 2017-02-17 19:08:50 -06:00
Bjørn Erik Pedersen ed847ed93d hugolib: Test helper cleanup 2017-02-17 20:52:50 +01:00
Ryan Watters bf7399fe2f Add first exFile shortcode 2017-02-17 13:14:55 -06:00
Cameron Moore 696901fa2f 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
2017-02-17 19:53:08 +01:00
Cameron Moore 10c13f5d79 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
2017-02-17 19:53:08 +01:00
Bjørn Erik Pedersen ade207635e hugolib: Fix Windows build failure, final take 2017-02-17 18:34:58 +01:00
Bjørn Erik Pedersen 0946630715 hugolib: Fix Windows build failure, take 2 2017-02-17 18:28:14 +01:00
Bjørn Erik Pedersen 9421690281 hugolib: Fix Windows build failure 2017-02-17 18:22:36 +01:00
Cameron Moore d3abb93cc7 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
2017-02-17 17:50:37 +01:00
Bjørn Erik Pedersen b7aa230458 travis: Bump to Go 1.7.5 and 1.8 (Yay!) 2017-02-17 17:39:33 +01:00
Bjørn Erik Pedersen edfb9d5565 vendor: Update Viper
Fixes #2603
2017-02-17 17:33:26 +01:00
Bjørn Erik Pedersen 53d07fb409 hugolib: Add test case for empty Pages in regular pages
Fixes #2947
2017-02-17 17:26:09 +01:00
Ryan Watters 9d68eb723c Update homepage 2017-02-17 10:23:44 -06:00
Bjørn Erik Pedersen 04a4a193a9 hugolib: Remove deprecated marked for removal
Fixes #3029
2017-02-17 17:20:46 +01:00
Bjørn Erik Pedersen 4b3ca38b2e tplimpl: Fix data race in resGetResource
Fixes #3045
2017-02-17 17:15:26 +01:00
Bjørn Erik Pedersen 77cbe4d60b tplimpl: Refactor imageConfig into a struct
Updates #2701
2017-02-17 17:15:26 +01:00