diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 683701d..4f331b5 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -48,17 +48,17 @@ languages: main: - identifier: home name: Home - url: / + pageref: / pre: home weight: 1 - identifier: about name: About - url: /about.html + pageref: /about.html pre: user weight: 2 - identifier: archives name: Archives - url: /posts + pageref: /posts pre: archive weight: 3 - identifier: commonweal @@ -86,17 +86,17 @@ menus: main: - identifier: home name: 首页 - url: / + pageref: / pre: home weight: 1 - identifier: about name: 关于 - url: /about.html + pageref: /about.html pre: user weight: 2 - identifier: archives name: 归档 - url: /posts + pageref: /posts pre: archive weight: 3 - identifier: commonweal diff --git a/layouts/partials/header/menus.html b/layouts/partials/header/menus.html index d4ba243..6951b00 100644 --- a/layouts/partials/header/menus.html +++ b/layouts/partials/header/menus.html @@ -2,13 +2,12 @@ {{- $curP := .Page }}