mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-02 15:20:28 +00:00
Update menu test to work with revised source struct
This commit is contained in:
parent
8cc7684a91
commit
2cb89a523a
|
@ -1,12 +1,13 @@
|
||||||
package hugolib
|
package hugolib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
"github.com/spf13/hugo/source"
|
"github.com/spf13/hugo/source"
|
||||||
"github.com/spf13/hugo/target"
|
"github.com/spf13/hugo/target"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"strings"
|
|
||||||
"testing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -63,7 +64,7 @@ weight = 2
|
||||||
[menu.p_one]
|
[menu.p_one]
|
||||||
[menu.p_two]
|
[menu.p_two]
|
||||||
Identity = "Two"
|
Identity = "Two"
|
||||||
|
|
||||||
+++
|
+++
|
||||||
Front Matter with Menu Pages`)
|
Front Matter with Menu Pages`)
|
||||||
|
|
||||||
|
@ -78,9 +79,9 @@ weight = 3
|
||||||
Front Matter with Menu Pages`)
|
Front Matter with Menu Pages`)
|
||||||
|
|
||||||
var MENU_PAGE_SOURCES = []source.ByteSource{
|
var MENU_PAGE_SOURCES = []source.ByteSource{
|
||||||
{"sect/doc1.md", MENU_PAGE_1, "sect"},
|
{"sect/doc1.md", MENU_PAGE_1},
|
||||||
{"sect/doc2.md", MENU_PAGE_2, "sect"},
|
{"sect/doc2.md", MENU_PAGE_2},
|
||||||
{"sect/doc3.md", MENU_PAGE_3, "sect"},
|
{"sect/doc3.md", MENU_PAGE_3},
|
||||||
}
|
}
|
||||||
|
|
||||||
type testMenuState struct {
|
type testMenuState struct {
|
||||||
|
|
Loading…
Reference in a new issue