Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-06-13 | Run gofmt to get imports in line vs gohugoio/hugo | Bjørn Erik Pedersen | |
2017-06-13 | all: Update textual references in Go source to point to gohugoio/hugo | Bjørn Erik Pedersen | |
2017-06-13 | all: Update import paths to gohugoio/hugo | Bjørn Erik Pedersen | |
2017-06-08 | tpl/collections: Add uint support to In | Cameron Moore | |
2017-06-08 | tpl/collections: Support interfaces in union | Cameron Moore | |
Fixes #3411 | |||
2017-06-03 | tpl: Add uniq function | Nathan Sharfi | |
2017-05-22 | tpl/cast: Handle template.HTML and friends in ToInt | Cameron Moore | |
Also add tests for ToInt and ToString. Resolves #3308 | |||
2017-05-20 | tpl/time: Re-add the time example | Bjørn Erik Pedersen | |
2017-05-20 | tpl: Make the Namespace func signature explicit | Bjørn Erik Pedersen | |
This makes it cleaner and avoids breaking client code, such as the docs helper JSON generator. | |||
2017-05-20 | tpl/time: Remove asTime template func mapping | Cameron Moore | |
2017-05-20 | tpl/time: Support overlapping namespace and template func | Cameron Moore | |
Fixes #3421 | |||
2017-05-19 | tpl/collections: Make IsSet WARNING less chatty | Bjørn Erik Pedersen | |
Updates #3092 | |||
2017-05-18 | tpl/images: Fix error handling in Config | Bjørn Erik Pedersen | |
2017-05-18 | tpl/collections: Use Feedback log instead of Error in IsSet | Cameron Moore | |
Using the Error log will cause Hugo to exit with an error, which could break site build workflows. | |||
2017-05-18 | tpl/collections: Log an error on unsupported types in IsSet | Cameron Moore | |
Unsupported types are currently silently ignored by IsSet. An earlier attempt was made to solve the issue by returning an error. That attempt was reverted since it broke some existing themes. So instead, we'll log an error. Hopefully, people will stop using IsSet in this way, and we can eventually return an error outright. Updates #3092 | |||
2017-05-18 | tpl/collections: Add support for interfaces to intersect | Cameron Moore | |
Fixes #1952 | |||
2017-05-18 | tpl/lang: Add NumFmt function | Cameron Moore | |
NumFmt formats a number with a given precision using the requested decimal, grouping, and negative characters. Fixes #1444 | |||
2017-05-17 | tmplimpl: Add support for ellipsed paginator | Bjørn Erik Pedersen | |
Fixes #3466 | |||
2017-05-13 | hugolib: Handle shortcode per output format | Bjørn Erik Pedersen | |
This commit allows shortcode per output format, a typical use case would be the special AMP media tags. Note that this will only re-render the "overridden" shortcodes and only in pages where these are used, so performance in the normal case should not suffer. Closes #3220 | |||
2017-05-04 | tpl: Add some GoDoc info to template func docs | Bjørn Erik Pedersen | |
Closes #3418 | |||
2017-05-02 | tpl/urls: Make urlize return a string | Bjørn Erik Pedersen | |
Like it did in 0.20. | |||
2017-05-02 | tpl/data: Clean up data namespace | Cameron Moore | |
- Move the main GetCSV and GetJSON into data.go. - Add error returns to GetCSV and GetJSON. - Add http client to Namespace for test mocking. - Send accept headers on remote requests. Fixes #3395 - Return an error on non-2XX HTTP response codes and don't retry. - Move cache tests to cache_test.go. | |||
2017-05-02 | tpl/data: Move cache logic to separate file | Cameron Moore | |
2017-05-02 | tpl/data: Shorten some internal func names | Cameron Moore | |
2017-05-02 | tpl/images: Fix embedded sync.Mutex | Cameron Moore | |
2017-05-02 | tpl: Add basic tests for all namespace init funcs | Cameron Moore | |
2017-05-01 | tpl: Add docshelper for template funcs | Bjørn Erik Pedersen | |
And fix some other minor related issues. Updates #3418 | |||
2017-05-01 | tpl/partials: Remouve unused method | Bjørn Erik Pedersen | |
2017-05-01 | tpl: Fix the remaining template funcs namespace issues | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/urls: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/transform: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/time: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/safe: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/os: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/inflect: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/images: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/encoding: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/crypto: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/collections: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/compare: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/data: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/strings: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/math: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl: Add TemplateFuncsNamespaceRegistry | Bjørn Erik Pedersen | |
As a first step to remove the hard ties between `tplimpl` and the different namespace packages. The `lang` package is used as the first example use case. See #3042 | |||
2017-04-30 | tpl: Add template function namespaces | Cameron Moore | |
This commit moves almost all of the template functions into separate packages under tpl/ and adds a namespace framework. All changes should be backward compatible for end users, as all existing function names in the template funcMap are left intact. Seq and DoArithmatic have been moved out of the helpers package and into template namespaces. Most of the tests involved have been refactored, and many new tests have been written. There's still work to do, but this is a big improvement. I got a little overzealous and added some new functions along the way: - strings.Contains - strings.ContainsAny - strings.HasSuffix - strings.TrimPrefix - strings.TrimSuffix Documentation is forthcoming. Fixes #3042 | |||
2017-04-22 | tplimpl: Add translation links to the default sitemap template | Jack Taylor | |
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-16 | tplimpl: Allow text partials in HTML templates | Bjørn Erik Pedersen | |
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-13 | output: Fix base theme vs project base template logic | Bjørn Erik Pedersen | |
Fixes #3323 | |||
2017-04-06 | tpl: Set RenderingContext.Config in markdownify | Albert Nigmatzianov | |
2017-04-05 | tpl: Fix nil pointer in Tree() | Bjørn Erik Pedersen | |
Fixes #3285 |