summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-19List future and expired dates in CSV formatDaniel Compton
It is useful to see the date that a post will be published, or the date that it has expired, to build tooling around it. This commit writes posts and their publish/expired date as CSV. Fixes #5610
2019-03-17Update to Go 1.12.1 and Go 1.11.6Bjørn Erik Pedersen
Fixes #5755
2019-03-16tpl/tplimpl: Fix mutex unlockBjørn Erik Pedersen
2019-03-14commands: Fix doLiveReload logicBjørn Erik Pedersen
Fixes #5754
2019-03-13deps: Update ViperBjørn Erik Pedersen
2019-03-12hugolib: Adjust site benchmarkBjørn Erik Pedersen
Having all the pages with shortcodes isn't realistic.
2019-03-07Update to Go 1.12Bjørn Erik Pedersen
Fixes #5716
2019-03-07Remove Gitter dev chat linkBjørn Erik Pedersen
Almost every question we get there belong on https://discourse.gohugo.io/
2019-03-06tpl/tplimpl: Fix template truth logicBjørn Erik Pedersen
Before this commit, due to a bug in Go's `text/template` package, this would print different output for typed nil interface values: ``` {{ if .AuthenticatedUser }}User is authenticated!{{ else }}{{ end }} {{ if not .AuthenticatedUser }}{{ else }}}User is authenticated!{{ end }} ``` This commit works around this by wrapping every `if` and `with` with a custom `getif` template func with truth logic that matches `not`, `and` and `or`. Those 3 template funcs from Go's stdlib are now pulled into Hugo's source tree and adjusted to support custom zero values, e.g. types that implement `IsZero`. This means that you can now do: ``` {{ with .Date }}{{ . }}{{ end }} ``` And it would work as expected. Fixes #5738
2019-03-05Update Travis config to work for forked buildsgrahamjamesaddis
2019-03-04Add skipHTML option to blackfriday configarrtchiu
2019-03-02Update stretchr/testify to 1.3.0.Elliott Sales de Andrade
2019-02-26Rewrite relative action URLSBerin Larson
Fixes #5701
2019-02-22Support Docker args TAGS, WORKDIR, CGO; speed up repetitive buildsAnthony Metzidis
2019-02-19hugolib: Adjust test for Go 1.12Bjørn Erik Pedersen
2019-02-06Support nested keys/fields with missing values with the `where` functionAnton Harniakou
Before this commit `where` would produce an error and bail building the site. Now, `where` simply skips an element of a collection and does not add it to the final result. Closes #5637 Closes #5416
2019-02-02commands: Update debouncer versionBjørn Erik Pedersen
2019-02-02common/herrors: Fix args order in strings.TrimPrefixIskander (Alex) Sharipov
Old code always returned "." or "" (if filepath.Ext(filename) returned "."). Now it properly trims the prefix. Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-02tpl: Fix strings.HasPrefix args orderIskander (Alex) Sharipov
2019-02-01releaser: Prepare repository for 0.55.0-DEVhugoreleaser
[ci skip]
2019-02-01releaser: Add release notes to /docs for release of 0.54.0v0.54.0hugoreleaser
[ci skip]
2019-02-01releaser: Bump versions for release of 0.54.0hugoreleaser
[ci skip]
2019-02-01Release 0.54.0Bjørn Erik Pedersen
2019-02-01releaser: Add release notes draft for 0.54.0hugoreleaser
Rename to *-ready.md to continue. [ci skip]
2019-02-01releaser: Adjust patch logicBjørn Erik Pedersen
See #5639
2019-02-01common/hugo: Use official semver even for main releasesBjørn Erik Pedersen
Closes #5639
2019-02-01Merge commit 'f27faf9afd0a8db768a21954b8755f1bf1a14f1b'Bjørn Erik Pedersen
2019-02-01Squashed 'docs/' changes from 49809a038..4f4d1f48cBjørn Erik Pedersen
4f4d1f48c Merge commit 'ccb3ee5c57a00d5d32c53c882cf9893181a6ec10' ccb3ee5c5 Squashed 'themes/gohugoioTheme/' changes from dafc91ff1..042112e2d git-subtree-dir: docs git-subtree-split: 4f4d1f48cd3da268c108f1ea6c204dd30f516bb1
2019-02-01Merge commit '5e078383a787e8b5ec3ba73f05ea4130840afbe2'Bjørn Erik Pedersen
2019-02-01Squashed 'docs/' changes from 785e375f..49809a03Bjørn Erik Pedersen
49809a03 Merge commit '20a631b4964fc0ab9137cce1e41774cbc17de044' 20a631b4 Squashed 'themes/gohugoioTheme/' changes from b8202f539..dafc91ff1 8b58f565 Re-generate CLI docs 4653a724 Add Netlify deployment badge 2d6246bc Remove some deprecated site variables e6777153 Improve Algolia Search Display Styling 1570999f Add missing "." in front of gitlab-ci.yaml example b922ae7d This adds documentation to the new configDir/Environment logic from .53 (#729) 7cff379f Correctly escape multi-word taxonomy terms in example 2dfeeda4 fix typo by removing stray paren 0870bd9a Fix typo in `paginate` description 91e8be85 Fixes https://github.com/gohugoio/hugo/issues/5609 c1db65ec Make the dummy URL more obvious b4589ff0 Fix a link b73dcb9a Consistently use "posts" as section name in examples 7a56abbc Format definitions a9c6fd9b Minor clarification over the last commit 5c86bdc8 Add alternative instructions for Quick Start for non-git users dafe7ee9 Add Visual Studio Code plug-ins 110ed19e Update HUGO_VERSION 2abd031a Update page.md b332f7b9 Update page.md f5a8c9d4 Update static-files.md 6d0c155c Add note about relative protocol URLs a13751ac Theme Warning: Remove note about unquoted URLs 4c8f7d68 Incorporate feedback 6f2b9cf0 Update Creating Themes Warning 40d88d98 Fix ToC example to use binary true/false 4a11f3f1 Fix typo 2dbfc0a4 Fix a typo in taxonomies d63790ef Do not mark UndocumentedFeature issues as stale d7aff095 Regenerate docs.json 71c0826f Update transform.Unmarshal.md git-subtree-dir: docs git-subtree-split: 49809a038b2691637bab7f3f2e385dde654a88b8
2019-02-01tpl/data: Adjust testsBjørn Erik Pedersen
See #5643
2019-02-01tpl/data: Prevent getJSON and getCSV fetch failure from aborting buildAnthony Fok
Fixes #5643
2019-02-01commands: Add test for --configDirBjørn Erik Pedersen
See #5662
2019-02-01Ignore unknown config files in config dirBjørn Erik Pedersen
Swap files etc. Fixes #5646
2019-02-01Store supported config formats in a variableAnton Harniakou
2019-01-31Fix some inline shortcode issuesBjørn Erik Pedersen
Fixes #5645 Fixes #5653
2019-01-31Bump to Go 1.11.5Bjørn Erik Pedersen
Fixes #5654
2019-01-30Update AferoBjørn Erik Pedersen
Fixes #5650
2019-01-29hugolib: Expand TestPageWithEmoji to cover '+', '-' and '_' tooAnthony Fok
See #5635 and commit 3038464e
2019-01-29Accept hyphen and plus sign in emoji detectionAnthony Fok
Fixes #5635
2019-01-25Fix OpenGraph image fallback to site paramsElliot Murphy
Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
2019-01-20Support numeric sort in ByParamAnton Harniakou
With this commit ByParam takes into account a type of a value under a key. If both values are numeric then they're coerced into float64 and then get compared. If any value isn't numeric, for example it's nil or string, then both values coerced into string and get compared as strings (lexicographicaly) Nil values are always sent to the end. Numeric values confirm to any type listed below: uint8, uint16, uint32, uint64, int, int8, int16, int32, int64, float32, float64 Closes #5305
2019-01-20Fix Params case handling in the new site globalBjørn Erik Pedersen
Fixes #5615
2019-01-13Make hugo server -t work againAnton Harniakou
This commit solves an issue where hugo would ignore the cli -t flag and only use a theme defined in config.toml. Also allow -t flag to accept a string slice. Closes #5569 Closes #5061 Related #4868
2019-01-10Add configFile(s) back to the watch list after RENAME event tooAnthony Fok
Alleviates #5205
2019-01-10Remove historical rssURI configmywaiting
2019-01-08Use subtests with server_test.goAnton Harniakou
Use Golang's subtests to provide a convenient way to run specific tests. Example: go test -run=TestFixURL/Basic_production
2019-01-02resources: Move resource interfaces into its own packageBjørn Erik Pedersen
2019-01-02resource: Move resource processors into sub-packagesBjørn Erik Pedersen