Commit Graph
5719 Commits
Author SHA1 Message Date
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
Bjørn Erik Pedersen c507e2717d 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
2017-02-17 17:15:26 +01:00
Bjørn Erik Pedersen 93ca7c9e95 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
2017-02-17 17:15:26 +01:00
Ryan Watters 7483b8cea5 Fix typo and update shortcodes body copy 2017-02-17 05:16:19 -06:00
Ryan Watters 0a16b93dc5 Update homepage cards description for getting started 2017-02-17 05:12:40 -06:00
Ryan Watters fca2d1e2e3 Update getting started guide homepage card description 2017-02-17 05:09:36 -06:00
Ryan Watters dc5900bac0 Fix to homepage card descriptions for developer tools 2017-02-17 05:01:57 -06:00
Ryan Watters 34063e9426 Add release notes 2017-02-17 05:00:24 -06:00
Ryan Watters 9e3dfb6602 Fix tags missing quotes for v0.18 on Netlify 2017-02-17 04:49:52 -06:00
Ryan Watters 2e55c92485 Fix front matter in getting started section files 2017-02-17 04:40:00 -06:00
Ryan Watters 5629f7e26e Fix terms table layout 2017-02-17 04:31:13 -06:00
Ryan Watters 5091be1c7b Update terms layout to table 2017-02-17 04:25:04 -06:00
Ryan Watters 88cad8e7b2 Update contents list style and markup 2017-02-17 04:20:09 -06:00
Ryan Watters cbd08323b3 Update shortcodes, needs works, and toc styles 2017-02-17 02:40:06 -06:00
Ryan Watters 6f0eec3136 Fix bg color for code shortcode 2017-02-16 19:55:16 -06:00
Ryan Watters 78213277e2 Update toc with home baked scrollspy 2017-02-16 19:54:27 -06:00
digitalcraftsman b367fa31c9 docs: Add hugofy for atom to the tools section 2017-02-16 09:44:27 +01:00
digitalcraftsman e34af6ee30 docs: Add hugofy for atom to the tools section 2017-02-16 09:44:27 +01:00
Ryan Watters 711fd8895c Fix minor typos in content mgmt section files 2017-02-16 00:04:38 -06:00
Ryan Watters aeafa4a0b0 Update issues via shortcode in roadmap 2017-02-16 00:01:11 -06:00
Ryan Watters f6a55a1678 Add section to toc header 2017-02-15 23:57:59 -06:00
Ryan Watters 9aa2df6880 Add section to toc header 2017-02-15 23:49:39 -06:00
Ryan Watters 19d7a56e00 Remove unnecessary math functions and created table for all 2017-02-15 23:47:00 -06:00
Ryan Watters 0d0973d119 Update breadcrumb colors 2017-02-15 21:11:57 -06:00
Ryan Watters 1f50dca47f Add contents list for section pages 2017-02-15 18:13:01 -06:00
Ryan Watters 875a0642b1 Add contents list for section pages 2017-02-15 18:10:04 -06:00
Ryan Watters 658b7fc098 Revise style of content footer and blockquote 2017-02-15 16:05:57 -06:00
Ryan Watters 5851f4b6a1 Start new callout styles 2017-02-15 10:09:30 -08:00
Bjørn Erik Pedersen 691156c5ba Use OS fs by default
Fixes #3032
2017-02-15 10:00:34 +01:00
Ryan Watters 16b16216e9 Attempt to fix input rounding on ios 2017-02-15 00:40:44 -08:00
Ryan Watters 51fc29a1dd Update archetypes content 2017-02-15 00:30:43 -08:00
Ryan Watters 5dedeb697a Remove unnecessary content from benefits of static page 2017-02-14 23:43:41 -08:00
Ryan Watters 3db5aff483 Remove unnecessary content from benefits of static page 2017-02-14 23:40:01 -08:00
Ryan Watters c896343512 Update next and prev buttons 2017-02-14 23:30:57 -08:00
Ryan Watters ed50c7dbd0 Fix js for toc 2017-02-14 22:29:09 -08:00
Ryan Watters 7768124fb2 Add terms layout and section icon to taxonomy.html 2017-02-14 22:15:07 -08:00