summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-11-27Add inline shortcode supportBjørn Erik Pedersen
An inline shortcode's name must end with `.inline`, all lowercase. E.g.: ```bash {{< time.inline >}}{{ now }}{{< /time.inline >}} ``` The above will print the current date and time. Note that an inline shortcode's inner content is parsed and executed as a Go text template with the same context as a regular shortcode template. This means that the current page can be accessed via `.Page.Title` etc. This also means that there are no concept of "nested inline shortcodes". The same inline shortcode can be reused later in the same content file, with different params if needed, using the self-closing syntax: ``` {{< time.inline />}} ``` Fixes #4011
2018-11-27tpl/collections: Add float64 support to whereCameron Moore
Fixes #5466
2018-11-24parser/pageparser: Fix when only shortcode and then summaryBjørn Erik Pedersen
Fixes #5464
2018-11-24commands: Include drafts in convert commandBjørn Erik Pedersen
Fixes #5457
2018-11-23Handle themes in the new file cache (for images, assets)Bjørn Erik Pedersen
In the newly consolidated file cache implementation, we forgot that we also look in the theme(s) for assets (SCSS transformations etc.), which is not good for Netlify and the demo sites. Fixes #5460
2018-11-18Fix ignored --config flag with 'new' commandKris Budhram
2018-11-15Fix Permalink for resource, baseURL with path and canonifyURLs setBjørn Erik Pedersen
Fixes #5226
2018-11-15Add tests for permalink on Resource with baseURL with pathBjørn Erik Pedersen
See #5226
2018-11-14helpers: Add a comment about file mode for new filesBjørn Erik Pedersen
See #5434
2018-11-14cache/filecache: Add a :project placeholderBjørn Erik Pedersen
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC. See #5439
2018-11-14cache/filecache: Add a cache prune funcBjørn Erik Pedersen
Fixes #5439
2018-11-14cache/filecache: Add a filecache root dirBjørn Erik Pedersen
This is just a safe guard to make sure we don't evict/remove files that do not belong to the cache.
2018-11-14cache/filecache: Use time.Duration for maxAgeBjørn Erik Pedersen
Fixes #5438
2018-11-14cache/filecache: Split implementation and config into separate filesBjørn Erik Pedersen
2018-11-14Update to LibSASS 3.5.5Bjørn Erik Pedersen
Fixes #5432 See #5435
2018-11-13More spelling correctionsBjørn Erik Pedersen
2018-11-13cache/filecache: Spelling correctionsBjørn Erik Pedersen
2018-11-13Remove appveyorBjørn Erik Pedersen
We now build on Travis for all platforms.
2018-11-13docs: Document the new file cacheBjørn Erik Pedersen
See #5404
2018-11-13Add a consolidated file cacheBjørn Erik Pedersen
This commits reworks how file caching is performed in Hugo. Now there is only one way, and it can be configured. This is the default configuration: ```toml [caches] [caches.getjson] dir = ":cacheDir" maxAge = -1 [caches.getcsv] dir = ":cacheDir" maxAge = -1 [caches.images] dir = ":resourceDir/_gen" maxAge = -1 [caches.assets] dir = ":resourceDir/_gen" maxAge = -1 ``` You can override any of these cache setting in your own `config.toml`. The placeholders explained: `:cacheDir`: This is the value of the `cacheDir` config option if set (can also be set via OS env variable `HUGO_CACHEDIR`). It will fall back to `/opt/build/cache/hugo_cache/` on Netlify, or a `hugo_cache` directory below the OS temp dir for the others. `:resourceDir`: This is the value of the `resourceDir` config option. `maxAge` is the time in seconds before a cache entry will be evicted, -1 means forever and 0 effectively turns that particular cache off. This means that if you run your builds on Netlify, all caches configured with `:cacheDir` will be saved and restored on the next build. For other CI vendors, please read their documentation. For an CircleCI example, see https://github.com/bep/hugo-sass-test/blob/6c3960a8f4b90e8938228688bc49bdcdd6b2d99e/.circleci/config.yml Fixes #5404
2018-11-13Add Windows build config to TravisEmir Beganović
2018-11-09Revert "Add Elasticsearch/bonsai.io to services doc."Bjørn Erik Pedersen
This reverts commit c0b3a1af0354e3aa9979cc00ae8630d7f0be63dc.
2018-11-09Add Elasticsearch/bonsai.io to services doc.Allison Zadrozny
Hip hip for OSS! 🙌
2018-11-09tpl: Fix test to pass with gccgoIan Lance Taylor
When run under gccgo, the test looks for the name that gccgo gives to a thunk method. This name is not normally visible, but can be seen when using reflect.FuncForPC as this code does. That name changed in https://golang.org/cl/89555. Change the test to work with both the old name "$thunk0" and the new name "thunk0". Fixes golang/go#28669
2018-11-07releaser: Prepare repository for 0.52-DEVhugoreleaser
[ci skip]
2018-11-07releaser: Add release notes to /docs for release of 0.51v0.51hugoreleaser
[ci skip]
2018-11-07releaser: Bump versions for release of 0.51hugoreleaser
[ci skip]
2018-11-07Release 0.51Bjørn Erik Pedersen
2018-11-07releaser: Add release notes draft for 0.51hugoreleaser
Rename to *-ready.md to continue. [ci skip]
2018-11-07docs: Document shortcode error handlingBjørn Erik Pedersen
Closes https://github.com/gohugoio/hugoDocs/issues/660
2018-11-07docs: Document symdiffBjørn Erik Pedersen
Closes https://github.com/gohugoio/hugoDocs/issues/659
2018-11-07docs: Document complementBjørn Erik Pedersen
Closes https://github.com/gohugoio/hugoDocs/issues/658
2018-11-07hugolib: Improve error message on duplicate menu itemsBjørn Erik Pedersen
2018-11-07tpl/collections: Properly handle pointer types in complement/symdiffBjørn Erik Pedersen
We cannot compare them by values, because that gets `hash of unhashable type` for the prime use case.
2018-11-07deps: Update minifyBjørn Erik Pedersen
No functional changes, just support for Go Modules.
2018-11-06tpl/collections: Add collections.SymDiffBjørn Erik Pedersen
Fixes #5410
2018-11-06hugolib: Fix changing paginators in lazy renderBjørn Erik Pedersen
Fixes #5406
2018-11-06tpl/collections: Add collections.ComplementBjørn Erik Pedersen
Fixes #5400
2018-11-06commands: Fix spelling秦世成
2018-11-05docs: Re-generate CLI docsBjørn Erik Pedersen
2018-11-05Fix shortcode directly following a shortcode delimiterBjørn Erik Pedersen
Fixes #5402
2018-11-04commands: Add --minify to hugo serverBjørn Erik Pedersen
2018-11-03commands: Fix recently broken error templateBjørn Erik Pedersen
We need a test for this ...
2018-11-03Make WARN the new default log log levelBjørn Erik Pedersen
This commit also pulls down the log level for a set of WARN statements to INFO. There should be no ERRORs or WARNINGs in a regular Hugo build. That is the story about the Boy Who Cried Wolf. Since the WARN log is now more visible, this commit also improves on some of them, most notable the "layout not found", which now would look something like this: ```bash WARN 2018/11/02 09:02:18 Found no layout for "home", language "en", output format "CSS": create a template below /layouts with one of these filenames: index.en.css.css, home.en.css.css, list.en.css.css, index.css.css, home.css.css, list.css.css, index.en.css, home.en.css, list.en.css, index.css, home.css, list.css, _default/index.en.css.css, _default/home.en.css.css, _default/list.en.css.css, _default/index.css.css, _default/home.css.css, _default/list.css.css, _default/index.en.css, _default/home.en.css, _default/list.en.css, _default/index.css, _default/home.css, _default/list.css ``` Fixes #5203
2018-11-02Revert "tpl: Update Jsonify to return pretty-print output"Bjørn Erik Pedersen
This reverts commit 5a52cd5f920bb3d067ab1682adece9f813c67ba1. Closes #5394
2018-11-02docs: Regenerate the docs helperBjørn Erik Pedersen
2018-11-02tpl: Fix the docshelperBjørn Erik Pedersen
2018-11-02Skip watcher event files if matched in ignoreFilesKris Budhram
2018-11-02deps: Update ChromaBjørn Erik Pedersen
Fixes #5392
2018-11-02Fix ANSI character output regression on WindowsLorenz Cuno Klopfenstein
Fixes #5377