diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-01-15 20:40:39 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-01-17 16:22:33 +0100 |
commit | 20c9b6ec81171d1c586ea31d5d08b40b0edaffc6 (patch) | |
tree | 990d2709c1333663dce2ff97f16f8791fef3bac9 /hugolib/taxonomy_test.go | |
parent | f8a119b606d55aa4f31f16e5a3cadc929c99e4f8 (diff) | |
download | hugo-20c9b6ec81171d1c586ea31d5d08b40b0edaffc6.tar.gz hugo-20c9b6ec81171d1c586ea31d5d08b40b0edaffc6.zip |
resource: Add front matter metadata to Resource
This commit expands the Resource interface with 3 new methods:
* Name
* Title
* Params
All of these can be set in the Page front matter. `Name` will get its default value from the base filename, and is the value used in the ByPrefix and GetByPrefix lookup methods.
Fixes #4244
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r-- | hugolib/taxonomy_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go index 646fdd44f..7ec4bbf91 100644 --- a/hugolib/taxonomy_test.go +++ b/hugolib/taxonomy_test.go @@ -200,11 +200,11 @@ permalinkeds: if preserveTaxonomyNames { helloWorld := s.getPage(KindTaxonomy, "others", "Hello Hugo world") require.NotNil(t, helloWorld) - require.Equal(t, "Hello Hugo world", helloWorld.Title) + require.Equal(t, "Hello Hugo world", helloWorld.title) } else { helloWorld := s.getPage(KindTaxonomy, "others", "hello-hugo-world") require.NotNil(t, helloWorld) - require.Equal(t, "Hello Hugo World", helloWorld.Title) + require.Equal(t, "Hello Hugo World", helloWorld.title) } // Issue #2977 |