digitalcraftsman
5d0748ce51
tpl: Add union template func
2017-03-12 23:04:12 +01:00
Albert Nigmatzianov
48120ccfd2
all: Fix some govet complaints
2017-03-09 14:18:12 +01:00
Cameron Moore
45b9d7223a
tplimpl: Add built-in print funcs to FuncMap
...
Add print, printf, and println to the Hugo FuncMap so that they are
accessible to the apply template func.
Updates #3139
2017-03-09 00:21:55 +01:00
Cameron Moore
74ea81b885
tplimpl: return an error on unsupported type in isSet
...
Fixes #3092
2017-03-02 00:11:10 +01:00
digitalcraftsman
e37e3dcc04
tpl: Add title meta tag to twitter card template
...
Fixes #3095
2017-02-25 09:53:25 +01:00
Alan Orth
eb27c47fc5
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/
2017-02-21 14:41:09 +01:00
Bjørn Erik Pedersen
2cbdd65330
tpl, hugolib: Fix live-reload of non-renderable content pages
...
Fixes #3062
2017-02-21 13:56:20 +01:00
Alan Orth
4e77c8717b
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
2017-02-21 13:24:44 +01:00
Bjørn Erik Pedersen
bdc02edfa8
tplimpl: Fix issue with recursive templates
...
Fixes #2927
2017-02-18 09:08:40 +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
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
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