From f14d7b5f734fb8ffea6127c210d66edc72bddcc7 Mon Sep 17 00:00:00 2001 From: Creaink <455372644@qq.com> Date: Sun, 31 Mar 2019 15:21:17 +0800 Subject: [PATCH] fix(uglyurls): uglyurls with tag and categories terms (#129) Closes #89 --- exampleSite/config.toml | 2 ++ layouts/_default/terms.html | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4ebad8b..f58fdcd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -109,6 +109,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配 customCSS = [] customJS = [] + uglyURLs = false # please keep same with uglyurls setting + [params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义 enable = true jquery = '' diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index abbc170..e76cde8 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -15,7 +15,7 @@
{{ range $key, $value := $terms -}} - + {{ $value.Term }} {{ len $value.Pages }} @@ -33,7 +33,7 @@
{{- range $key, $value := $terms }} - + {{ $value.Term }} {{ len $value.Pages }} @@ -41,4 +41,4 @@
{{- end }} -{{- end }} \ No newline at end of file +{{- end }}