summaryrefslogtreecommitdiffstats
path: root/hugolib/page_taxonomy_test.go
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
2018-12-30Revert " Fix handling of taxonomy terms containing slashes"Bjørn Erik Pedersen
See #4090 See #5571 This reverts commit fff132537b4094221f4f099e2251f3cda613060f.
2018-08-22 Fix handling of taxonomy terms containing slashesCameron Moore
Fixes #4090
2017-12-29hugolib: Do not tolower result from Page.GetParamBjørn Erik Pedersen
We still do lowering of the param strings in some internal use of this, but the exported `GetParam` method is changed to a more sensible default. This was used for the `disqus_title` etc. in the internal Disqus template, which was obviously not right. If you really want to lowercase your params, do it with `.GetParam "myparam" | lower` or similar. Fixes #4187
2017-02-17all: Refactor to nonglobal Viper, i18n etc.Bjørn Erik Pedersen
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016
2017-01-07all: Refactor to non-global loggerBjørn Erik Pedersen
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates #2701
2016-12-27hugolib: Use reflect.DeepEqual in testsCameron Moore
2016-03-23hugolib: Fix some more Golint warningsBjørn Erik Pedersen
2015-12-10Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-04-03hugolib: make Page implement the ReaderFrom interfacebep
2014-09-11fix tags not being in lowercase, #491Joel Scoble
2014-09-05Taxonomies can now be provided as a single string value if there is only one ↵spf13
in frontmatter (tag = "val" vs tag = ["val"])
2014-05-01permitting empty files again. Fixing some tests to now pass.spf13
2014-04-09Renamed Indexes to Taxonomies. Old template and config parameters still work.spf13