Permalink
Commits on Nov 15, 2018
Commits on Nov 14, 2018
  1. cache/filecache: Add a :project placeholder

    bep committed Nov 14, 2018
    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
  2. cache/filecache: Add a cache prune func

    bep committed Nov 14, 2018
    Fixes #5439
  3. cache/filecache: Add a filecache root dir

    bep committed Nov 14, 2018
    This is just a safe guard to make sure we don't evict/remove files that do not belong to the cache.
  4. cache/filecache: Use time.Duration for maxAge

    bep committed Nov 14, 2018
    Fixes #5438
  5. Update to LibSASS 3.5.5

    bep committed Nov 14, 2018
    Fixes #5432
    See #5435
Commits on Nov 13, 2018
  1. More spelling corrections

    bep committed Nov 13, 2018
  2. Remove appveyor

    bep committed Nov 13, 2018
    We now build on Travis for all platforms.
  3. docs: Document the new file cache

    bep committed Nov 13, 2018
    See #5404
  4. Add a consolidated file cache

    bep committed Nov 8, 2018
    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
Commits on Nov 9, 2018
  1. Revert "Add Elasticsearch/bonsai.io to services doc."

    bep committed Nov 9, 2018
    This reverts commit c0b3a1a.
Commits on Nov 7, 2018
  1. releaser: Prepare repository for 0.52-DEV

    bep committed Nov 7, 2018
    [ci skip]
  2. releaser: Bump versions for release of 0.51

    bep committed Nov 7, 2018
    [ci skip]
  3. Release 0.51

    bep committed Nov 7, 2018
  4. releaser: Add release notes draft for 0.51

    bep committed Nov 7, 2018
    Rename to *-ready.md to continue. [ci skip]
  5. docs: Document shortcode error handling

    bep committed Nov 7, 2018
  6. docs: Document symdiff

    bep committed Nov 7, 2018
  7. docs: Document complement

    bep committed Nov 7, 2018
  8. tpl/collections: Properly handle pointer types in complement/symdiff

    bep committed Nov 7, 2018
    We cannot compare them by values, because that gets `hash of unhashable type` for the prime use case.
Commits on Nov 6, 2018
  1. deps: Update minify

    bep committed Nov 6, 2018
    No functional changes, just support for Go Modules.
  2. tpl/collections: Add collections.SymDiff

    bep committed Nov 6, 2018
    Fixes #5410
  3. hugolib: Fix changing paginators in lazy render

    bep committed Nov 6, 2018
    Fixes #5406
  4. tpl/collections: Add collections.Complement

    bep committed Nov 5, 2018
    Fixes #5400
Commits on Nov 5, 2018
  1. docs: Re-generate CLI docs

    bep committed Nov 5, 2018
  2. Fix shortcode directly following a shortcode delimiter

    bep committed Nov 5, 2018
    Fixes #5402
Commits on Nov 4, 2018
  1. commands: Add --minify to hugo server

    bep committed Nov 4, 2018
Commits on Nov 3, 2018
  1. commands: Fix recently broken error template

    bep committed Nov 3, 2018
    We need a test for this ...
  2. Make WARN the new default log log level

    bep committed Nov 1, 2018
    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
Commits on Nov 2, 2018
  1. Revert "tpl: Update Jsonify to return pretty-print output"

    bep committed Nov 2, 2018
    This reverts commit 5a52cd5.
    
    Closes #5394