summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-07-09Fix typo s/Meny/Menu/Kaushal Modi
2019-07-07hugolib: Add testfile to .gitignoreBjørn Erik Pedersen
2019-06-26tpl/tplimpl: Regenerate templatesBjørn Erik Pedersen
2019-06-26Pagination - do not render href if no next itemMark Mandel
When using a html link checker with Hugo, this template consistently causes errors, as it renders `href=""` attributes when next/previous is disabled. This change makes it so that the `href` attribute is not rendered at all if `HasNext` is false - which is better semantically, and makes link checking far easier.
2019-06-26Include path to source page in non-relative ref/relref warningJustin Van Patten
We occasionally see warnings when building our site: ``` WARN 2019/06/25 23:07:08 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}} ``` But the `%q` value is missing, making it difficult to track down the source of the warning. This change addresses that, by including the source path in the warning: ``` WARN 2019/06/25 23:07:31 make non-relative ref/relref page reference(s) in page "blog/my-post/index.md" absolute, e.g. {{< ref "/blog/my-post.md" >}} ```
2019-06-26hugolib: Add another site benchmarkBjørn Erik Pedersen
Also rework test test setup so the benchmarks can also be run as tests, which is useful when creating new benchmarks an make sure they ... work.
2019-06-19commands: Remove comma after URL in new site outputJoshua Arnott
Some terminals include the comma in the URL when hyperlinking, resulting in a 404
2019-06-16deps: Revert to an older version of BlackfridayBjørn Erik Pedersen
See #6040
2019-06-12examples: Update link to prevent redirectChristian Oliff
2019-06-12examples: Update URLsChristian Oliff
2019-06-11releaser: Update Go Releaser and consolidate the 2 configsBjørn Erik Pedersen
Fixes #5949
2019-06-10tpl/collections: Fix slice type handling in sortBjørn Erik Pedersen
The `sort` template func was producing a `[]page.Page` which did not work in `.Paginate`. Fixes #6023
2019-06-09hugolib: Fix bundle path when slug is setBjørn Erik Pedersen
Fixes #4870
2019-06-09tpl/collections: Unwrap any interface value in sort and whereBjørn Erik Pedersen
Hugo `0.55.0` introduced some new interface types for `Page` etc. This worked great in general, but there were cases where this would fail in `where` and `sort`. One such example would be sorting by `MenuItem.Page.Date` where `Page` on `MenuItem` was a small subset of the bigger `page.Page` interface. This commit fixes that by unwrapping such interface values. Fixes #5989
2019-06-08Refactor Org mode front matter: Introduce '#+KEY[]:' array notationNiklas Fasching
Hugo requires some front matter values to be arrays (e.g. for taxonomies). Org mode front matter syntax (`#+KEY: VALUE`) does however not support anything but string values normally - which is why goorgeous hardcoded the values for the keys tags, categories & aliases to be parsed as string arrays. This causes problems with custom taxonomies. A simple thing we can do instead is make keywords ending in '[]' be parsed as string arrays.
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-06-08deploy: Default --target to the first deployment targetRobert van Gent
2019-06-02Add safety barrier between concatenated javascript resourcesVincent Fiduccia
2019-05-31Update CLI doc for "long" formRobert van Gent
2019-05-31Drop dashes in http header matcher attributes; other changes from code reviewRobert van Gent
2019-05-31docs: Add documentation for "hugo deploy"Robert van Gent
2019-05-30deploy: remove TODO comment about subfolders; handled by GoCDK blob URLsRobert van Gent
2019-05-30deps: Update gocloud.dev to v0.15.0.Robert van Gent
2019-05-30tpl/collections: Convert numeric values to float64 and compare themAnton Harniakou
Fixes #5685
2019-05-29resources: Return nil when not found in resources.GetBjørn Erik Pedersen
Fixes #5999
2019-05-28deps: Update ViperBjørn Erik Pedersen
This will hopefully improve the dependency/install problems we have seen lately. See #5954
2019-05-26Remove references to Google+Bruno Amaral
According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en
2019-05-25Update gitmap to get CommitDate fieldBjørn Erik Pedersen
2019-05-25Merge commit 'be04ece8590f775a52ea167fbe4555753e8c5211'Bjørn Erik Pedersen
2019-05-25Squashed 'docs/' changes from 50c02516c..0c3c04fd6Bjørn Erik Pedersen
0c3c04fd6 Merge pull request #827 from BCNelson/range-patch b14dd3505 Updated link to Go Docs to more helpful page c3d83149a Boolean Values in the Where Function 56d4cea3c hugo-extended no longer the default e9b15c698 Update index.md 11de98e0d Release 0.55.6 d2def17f4 Merge branch 'release-0.55.6' 115457b70 releaser: Add release notes to /docs for release of 0.55.6 25855690d Fix misspelling fc5e43db2 Update 404.md with Netlify Instructions 9f684318f Removed mentioning of removed --stepAnalysis command line option 86ba9071c Related md5 and aliases for sha1/sha256 15f48966a Added related sha function into the See Also 5e08b6930 Fix date description 908e87ab2 Revert docs/config.toml changes c925646cf Add a "deploy" command e765084dd Update sectionvars.md e08be4d81 Update sectionvars.md 7c9653cbe Hugo 0.55.5 1035ff028 releaser: Add release notes to /docs for release of 0.55.5 cda21f9d4 docs: Regenerate docs helper git-subtree-dir: docs git-subtree-split: 0c3c04fd63a7f140bdca0d3ca9b1e9dc794ebd77
2019-05-25commands: Create new 'hugo list all' commandRuslan Nasonov
New: - command `hugo list all`, return all posts meta in csv format Refactoring: - move common parts in commands/list.go to function `buildSites` - change way to detect path to content See #5904
2019-05-24Medium -> Hugo exporting toolBrice BERDAH
Suggesting a simple yet powerful tool for people looking to export their Medium blog to Hugo
2019-05-23dockerfile: Switch base image for final buildBrian 'Redbeard' Harrington
Switching the base image for the final build to alpine as it still provides a minimal interface, but has a mechanism for easily including relevant CA certificates. This is currently pinned to a tagged version, though since none of the underlying mechanisms are used this should balance both remaining stable, supported for a period of time, and providing usable functionality. Resolves #5970 Affects #5056
2019-05-18Merge branch 'release-0.55.6'Bjørn Erik Pedersen
2019-05-18releaser: Prepare repository for 0.56.0-DEVhugoreleaser
[ci skip]
2019-05-18releaser: Add release notes to /docs for release of 0.55.6v0.55.6hugoreleaser
[ci skip]
2019-05-18releaser: Bump versions for release of 0.55.6hugoreleaser
[ci skip]
2019-05-18Release 0.55.6Bjørn Erik Pedersen
2019-05-18releaser: Add release notes draft for 0.55.6hugoreleaser
Rename to *-ready.md to continue. [ci skip]
2019-05-18hugolib: Prevent parallel server rebuildsBjørn Erik Pedersen
There have been reports about infrequent paginator crashes when running the Hugo server since 0.55.0. The reason have been narrowed down to that of parallel rebuilds. This isn't a new thing, but the changes in 0.55.0 made it extra important to serialize the page initialization. This commit fixes that by protecting the `Build` method with a lock when running in server mode. Fixes #5885 Fixes #5968
2019-05-17tpl: Fix internal templates usage of safeHTMLAttrRodolfo Carvalho
The `safeHTMLAttr` function operates on a full attribute definition, not just within the attribute value. Docs: https://gohugo.io/functions/safehtmlattr/ For `opengraph.html`, run the whole `content` HTML attribute through `safeHTMLAttr`. That will preserve `+` signs in formatted dates. For `vimeo_simple.html`, `safeHTMLAttr` was in the context of an attribute value, thus having no effect. In this case we could replace it with `safeURL`, but since the code is coming from an API it is safer to just let Go's template engine sanitize the value as it already does with `provider_url`. Fixes #5236 (no need to change Go upstream) Related to #5246
2019-05-15Update to Go 1.12.5 and Go 1.11.10Bjørn Erik Pedersen
Fixes #5944
2019-05-09deploy: Add tests; fix WindowsRobert van Gent
2019-05-06deploy: Support configuration of upload orderRobert van Gent
2019-05-06deploy: Support invalidating a CloudFront CDN cacheRobert van Gent
2019-05-04i18n: Move the package below /langsBjørn Erik Pedersen
To get fewer top level packages.
2019-05-04deploy: compute MD5 by reading if List didn't provide oneRobert van Gent
2019-05-03Revert docs/config.toml changesRobert van Gent
2019-05-03travis: Use proxy.golang.orgBjørn Erik Pedersen