diff options
author | reuixiy <reuixiy@gmail.com> | 2021-11-29 19:41:50 +0300 |
---|---|---|
committer | reuixiy <reuixiy@gmail.com> | 2021-11-29 19:41:58 +0300 |
commit | 2479717386e82a8b3e2446e887a85d63592e1702 (patch) | |
tree | 61b5be9fe203e3e9b317458e11c974b873b00a90 | |
parent | 7d7c4857fdd7d07d0018c397221db6cc6ee18453 (diff) |
fix: use pageref for internal links in menus
fixes #343
-rw-r--r-- | config-examples/en/config.toml | 12 | ||||
-rw-r--r-- | config-examples/zh-cn/config.toml | 12 | ||||
-rw-r--r-- | config-examples/zh-tw/config.toml | 12 | ||||
-rw-r--r-- | theme.toml | 2 |
4 files changed, 19 insertions, 19 deletions
diff --git a/config-examples/en/config.toml b/config-examples/en/config.toml index a5f783b..2370b45 100644 --- a/config-examples/en/config.toml +++ b/config-examples/en/config.toml @@ -185,7 +185,7 @@ uglyURLs = false # The configuration instructions in the # menu are as follows: -# url URL +# pageref/url internal/external URL # name Text (won’t display if it # is left empty("") or does # not exist) @@ -204,31 +204,31 @@ uglyURLs = false [menu] ## Menu bar # [[menu.main]] - # url = "/" + # pageref = "/" # name = "Home" # weight = 1 # pre = "internal" # post = "home" [[menu.main]] - url = "/posts/" + pageref = "/posts/" name = "Posts" weight = 2 pre = "internal" post = "archive" [[menu.main]] - url = "/categories/" + pageref = "/categories/" name = "Categories" weight = 3 pre = "internal" post = "th" [[menu.main]] - url = "/tags/" + pageref = "/tags/" name = "Tags" weight = 4 pre = "internal" post = "tags" [[menu.main]] - url = "/about/" + pageref = "/about/" name = "About" weight = 5 pre = "internal" diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml index b4e8d1d..24ee834 100644 --- a/config-examples/zh-cn/config.toml +++ b/config-examples/zh-cn/config.toml @@ -177,7 +177,7 @@ uglyURLs = false # 4. links 链接栏(关于页面的极简页脚) # 菜单内的配置说明如下: -# url 链接地址 +# pageref/url 内链地址/外链地址 # name 文本(留空("")则无) # weight 位置 # pre 内链(internal)或外链(external) @@ -190,31 +190,31 @@ uglyURLs = false [menu] ## 菜单栏 # [[menu.main]] - # url = "/" + # pageref = "/" # name = "首页" # weight = 1 # pre = "internal" # post = "home" [[menu.main]] - url = "/posts/" + pageref = "/posts/" name = "文章" weight = 2 pre = "internal" post = "archive" [[menu.main]] - url = "/categories/" + pageref = "/categories/" name = "分类" weight = 3 pre = "internal" post = "th" [[menu.main]] - url = "/tags/" + pageref = "/tags/" name = "标签" weight = 4 pre = "internal" post = "tags" [[menu.main]] - url = "/about/" + pageref = "/about/" name = "关于" weight = 5 pre = "internal" diff --git a/config-examples/zh-tw/config.toml b/config-examples/zh-tw/config.toml index 677969e..ccd7231 100644 --- a/config-examples/zh-tw/config.toml +++ b/config-examples/zh-tw/config.toml @@ -177,7 +177,7 @@ uglyURLs = false # 4. links 連結欄(關於頁面的極簡頁尾) # 選單內的配置說明如下: -# url 連結地址 +# pageref/url 內鏈地址/外鏈地址 # name 文字(留空("")則無) # weight 位置 # pre 內鏈(internal)或外鏈(external) @@ -190,31 +190,31 @@ uglyURLs = false [menu] ## 選單欄 # [[menu.main]] - # url = "/" + # pageref = "/" # name = "首頁" # weight = 1 # pre = "internal" # post = "home" [[menu.main]] - url = "/posts/" + pageref = "/posts/" name = "文章" weight = 2 pre = "internal" post = "archive" [[menu.main]] - url = "/categories/" + pageref = "/categories/" name = "分類" weight = 3 pre = "internal" post = "th" [[menu.main]] - url = "/tags/" + pageref = "/tags/" name = "標籤" weight = 4 pre = "internal" post = "tags" [[menu.main]] - url = "/about/" + pageref = "/about/" name = "關於" weight = 5 pre = "internal" @@ -8,7 +8,7 @@ description = "MemE is a powerful and highly customizable GoHugo theme for perso homepage = "https://github.com/reuixiy/hugo-theme-meme/" tags = ["Blog", "Minimal", "Clean", "Typography", "Multilingual"] features = ["Dark Mode", "MathJax", "KaTeX", "JSON-LD", "Drop Cap", "PWA", "TOC"] -min_version = "0.73.0" +min_version = "0.86.0" [author] name = "reuixiy" |