summaryrefslogtreecommitdiffstats
path: root/go.mod
AgeCommit message (Collapse)Author
2019-10-03deploy: Add ability to invalidate Google Cloud CDNGarret Kelly
2019-09-25deps: Update ChromaBjørn Erik Pedersen
Closes #6279
2019-09-06deps: Update github.com/bep/gitmapBjørn Erik Pedersen
Fixes #6313
2019-09-02resources: Cache Exif data to diskBjørn Erik Pedersen
```bash name old time/op new time/op delta ImageExif/Cold_cache-4 312µs ±28% 355µs ± 7% ~ (p=0.343 n=4+4) ImageExif/Cold_cache,_10-4 479µs ± 6% 546µs ± 0% +13.91% (p=0.029 n=4+4) ImageExif/Warm_cache-4 272µs ± 1% 81µs ± 5% -70.30% (p=0.029 n=4+4) name old alloc/op new alloc/op delta ImageExif/Cold_cache-4 151kB ± 0% 161kB ± 0% +6.46% (p=0.029 n=4+4) ImageExif/Cold_cache,_10-4 179kB ± 0% 189kB ± 0% +5.49% (p=0.029 n=4+4) ImageExif/Warm_cache-4 151kB ± 0% 13kB ± 0% -91.52% (p=0.029 n=4+4) name old allocs/op new allocs/op delta ImageExif/Cold_cache-4 1.03k ± 0% 1.21k ± 0% +17.78% (p=0.029 n=4+4) ImageExif/Cold_cache,_10-4 1.65k ± 0% 1.83k ± 0% +11.09% (p=0.029 n=4+4) ImageExif/Warm_cache-4 1.03k ± 0% 0.28k ± 0% -72.40% (p=0.029 n=4+4) ``` Fixes #6291
2019-08-31Add image.ExifBjørn Erik Pedersen
Note that we will probably need to add some metadata cache for this to scale. Fixes #4600
2019-08-31deps: Update go-org (fix descriptive lists)Niklas Fasching
</dt> and </dd> closing tags were broken, see https://github.com/niklasfasching/go-org/pull/9
2019-08-28Add a set of image filtersBjørn Erik Pedersen
With this you can do variants of this: ``` {{ $img := resources.Get "images/misc/3-jenny.jpg" }} {{ $img := $img.Resize "300x" }} {{ $g1 := $img.Filter images.Grayscale }} {{ $g2 := $img | images.Filter (images.Saturate 30) (images.GaussianBlur 3) }} ``` Fixes #6255
2019-08-24deps: Update go-org (fix footnotes in headlines)Niklas Fasching
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2019-08-08Simplify page tree logicBjørn Erik Pedersen
This is preparation for #6041. For historic reasons, the code for bulding the section tree and the taxonomies were very much separate. This works, but makes it hard to extend, maintain, and possibly not so fast as it could be. This simplification also introduces 3 slightly breaking changes, which I suspect most people will be pleased about. See referenced issues: This commit also switches the radix tree dependency to a mutable implementation: github.com/armon/go-radix. Fixes #6154 Fixes #6153 Fixes #6152
2019-07-28deps: Update go-org to v0.1.2Niklas Fasching
fixes superfluous whitespace around code blocks due to misuse of pre tag
2019-07-24Add Hugo ModulesBjørn Erik Pedersen
This commit implements Hugo Modules. This is a broad subject, but some keywords include: * A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project. * A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects. * Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running. * Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions. * A new set of CLI commands are provided to manage all of this: `hugo mod init`, `hugo mod get`, `hugo mod graph`, `hugo mod tidy`, and `hugo mod vendor`. All of the above is backed by Go Modules. Fixes #5973 Fixes #5996 Fixes #6010 Fixes #5911 Fixes #5940 Fixes #6074 Fixes #6082 Fixes #6092
2019-07-23deps: TidyBjørn Erik Pedersen
2019-07-19deps: Update xerrorsBjørn Erik Pedersen
To get it to build on Go 1.13.
2019-07-16deps: Update ChromaBjørn Erik Pedersen
Fixes #6088
2019-07-10deps: Update go-orgNiklas Fasching
- added support for anonymous footnotes - changed source block html output to more closely resemble emacs org-export output
2019-06-16deps: Revert to an older version of BlackfridayBjørn Erik Pedersen
See #6040
2019-06-08Improve Org mode support: Replace goorgeous with go-orgNiklas Fasching
Sadly, goorgeous has not been updated in over a year and still has a lot of open issues (e.g. no support for nested lists). go-org fixes most of those issues and supports a larger subset of Org mode syntax.
2019-05-30deps: Update gocloud.dev to v0.15.0.Robert van Gent
2019-05-28deps: Update ViperBjørn Erik Pedersen
This will hopefully improve the dependency/install problems we have seen lately. See #5954
2019-05-25Update gitmap to get CommitDate fieldBjørn Erik Pedersen
2019-05-06deploy: Support invalidating a CloudFront CDN cacheRobert van Gent
2019-05-04deploy: compute MD5 by reading if List didn't provide oneRobert van Gent
2019-05-03Add a "deploy" commandRobert van Gent
2019-05-01Update blackfriday to v1.5.2David Birks
2019-04-04deps: Update to imaging v1.6.0Bjørn Erik Pedersen
Closes #5812
2019-03-28deps: Update ChromaBjørn Erik Pedersen
Closes #5780
2019-03-26deps: Update AferoBjørn Erik Pedersen
Closes #5673
2019-03-23Make Page an interfaceBjørn Erik Pedersen
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue #5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. See #5074 Fixes #5763 Fixes #5758 Fixes #5090 Fixes #5204 Fixes #4695 Fixes #5607 Fixes #5707 Fixes #5719 Fixes #3113 Fixes #5706 Fixes #5767 Fixes #5723 Fixes #5769 Fixes #5770 Fixes #5771 Fixes #5759 Fixes #5776 Fixes #5777 Fixes #5778
2019-03-13deps: Update ViperBjørn Erik Pedersen
2019-03-02Update stretchr/testify to 1.3.0.Elliott Sales de Andrade
2019-02-02commands: Update debouncer versionBjørn Erik Pedersen
2019-01-30Update AferoBjørn Erik Pedersen
Fixes #5650
2018-12-27Update ChromaBjørn Erik Pedersen
Fixes #4993
2018-12-17Fix "failed to create file caches from configuration: file exists" on WindowsBjørn Erik Pedersen
Fixes #5497
2018-12-11Add /config dir supportBjørn Erik Pedersen
This commit adds support for a configuration directory (default `config`). The different pieces in this puzzle are: * A new `--environment` (or `-e`) flag. This can also be set with the `HUGO_ENVIRONMENT` OS environment variable. The value for `environment` defaults to `production` when running `hugo` and `development` when running `hugo server`. You can set it to any value you want (e.g. `hugo server -e "Sensible Environment"`), but as it is used to load configuration from the file system, the letter case may be important. You can get this value in your templates with `{{ hugo.Environment }}`. * A new `--configDir` flag (defaults to `config` below your project). This can also be set with `HUGO_CONFIGDIR` OS environment variable. If the `configDir` exists, the configuration files will be read and merged on top of each other from left to right; the right-most value will win on duplicates. Given the example tree below: If `environment` is `production`, the left-most `config.toml` would be the one directly below the project (this can now be omitted if you want), and then `_default/config.toml` and finally `production/config.toml`. And since these will be merged, you can just provide the environment specific configuration setting in you production config, e.g. `enableGitInfo = true`. The order within the directories will be lexical (`config.toml` and then `params.toml`). ```bash config ├── _default │   ├── config.toml │   ├── languages.toml │   ├── menus │   │   ├── menus.en.toml │   │   └── menus.zh.toml │   └── params.toml ├── development │   └── params.toml └── production ├── config.toml └── params.toml ``` Some configuration maps support the language code in the filename (e.g. `menus.en.toml`): `menus` (`menu` also works) and `params`. Also note that the only folders with "a meaning" in the above listing is the top level directories below `config`. The `menus` sub folder is just added for better organization. We use `TOML` in the example above, but Hugo also supports `JSON` and `YAML` as configuration formats. These can be mixed. Fixes #5422
2018-11-28Remove duplicate mapstructure depdendencyBjørn Erik Pedersen
2018-11-14Update to LibSASS 3.5.5Bjørn Erik Pedersen
Fixes #5432 See #5435
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-07deps: Update minifyBjørn Erik Pedersen
No functional changes, just support for Go Modules.
2018-11-02deps: Update ChromaBjørn Erik Pedersen
Fixes #5392
2018-11-01Add file (line/col) info to ref/relref errorsBjørn Erik Pedersen
See #5371
2018-10-29mod: Update minifyBjørn Erik Pedersen
Closes #5261
2018-10-28common/loggers: Make sure the global logger also gets colored labelsBjørn Erik Pedersen
See #4414
2018-10-26Revert "mod: Update minify"Bjørn Erik Pedersen
This reverts commit 83c873ff37ddd379181540021232f026e7678486.
2018-10-26mod: Update minifyBjørn Erik Pedersen
Closes #5261
2018-10-26mod: Update castBjørn Erik Pedersen
Closes #5340
2018-10-24Add some color to the relevant filenames in terminal logBjørn Erik Pedersen
Fixes #5344
2018-10-23commands, hugolib: Get file context in "config parse failed" errorsBjørn Erik Pedersen
Fixes #5325
2018-10-22parser/metadecoders: Consolidate the metadata decodersBjørn Erik Pedersen
See #5324