mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
Add Translations and AllTranslations to Node
This commit also consolidates URLs on Node vs Page, so now .Permalink should be interoperable. Note that this implementations should be fairly short-livded, waiting for #2297, but the API should be stable.
This commit is contained in:
@@ -554,7 +554,7 @@ func TestHomeNodeMenu(t *testing.T) {
|
||||
s := setupMenuTests(t, menuPageSources)
|
||||
|
||||
home := s.newHomeNode()
|
||||
homeMenuEntry := &MenuEntry{Name: home.Title, URL: home.URL}
|
||||
homeMenuEntry := &MenuEntry{Name: home.Title, URL: home.URL()}
|
||||
|
||||
for i, this := range []struct {
|
||||
menu string
|
||||
|
Reference in New Issue
Block a user