diff --git a/README.md b/README.md
index 663edcd..bc36937 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,12 @@ The only JavaScript library being used is [node-vibrant](https://github.com/Vibr
This theme uses SCSS and TypeScript. For that reason, it's necessary to use **Hugo ≥ 0.74.0**.
-**Note**: You'll need Hugo Extended version to edit SCSS files
+Use Hugo Extended version if you want to:
+
+* Use the latest feature/fix from `master` branch
+* Edit SCSS files
+
+**Compiled CSS are updated once per release.**
## Installation
diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss
index b5842ed..c76fcce 100644
--- a/assets/scss/partials/layout/article.scss
+++ b/assets/scss/partials/layout/article.scss
@@ -104,6 +104,7 @@
.article-tags {
flex-wrap: wrap;
+ text-transform: unset;
}
}
}
diff --git a/exampleSite/content/post/chinese-test/index.md b/exampleSite/content/post/chinese-test/index.md
index f58b38f..5249ef8 100644
--- a/exampleSite/content/post/chinese-test/index.md
+++ b/exampleSite/content/post/chinese-test/index.md
@@ -1,11 +1,12 @@
---
-title: 中文文章内容测试
+title: Chinese Test
description: 这是一个副标题
date: 2020-09-09
slug: test-chinese
image: helena-hertz-wWZzXlDpMog-unsplash.jpg
categories:
- Test
+ - 测试
---
## 正文测试
diff --git a/exampleSite/content/post/placeholder-text/index.md b/exampleSite/content/post/placeholder-text/index.md
index 8ac7350..280197e 100644
--- a/exampleSite/content/post/placeholder-text/index.md
+++ b/exampleSite/content/post/placeholder-text/index.md
@@ -4,11 +4,13 @@ title = "Placeholder Text"
date = "2019-03-09"
description = "Lorem Ipsum Dolor Si Amet"
categories = [
- "Test"
+ "Test",
+ "Test with whitespaces"
]
tags = [
"markdown",
"text",
+ "tag with whitespaces"
]
image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
+++
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 016e9d6..32d7f37 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -1,18 +1,21 @@
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink "article" }}
{{- $context := . -}}
-{{- $categories := .Params.categories -}}
- {{ if $categories }}
+ {{ if .Params.categories }}
- {{ range $category := $categories }}
- {{ $term := $.Site.GetPage (printf "/categories/%s" $category) }}
+ {{ range (.GetTerms "categories") }}
{{ if and $image.exists $image.resource }}
{{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
{{- $20x := $imageRaw.Fill "20x20 smart" -}}
- {{ $term.Title | humanize }}
+
+ {{ .LinkTitle }}
+
{{ else }}
- {{ $term.Title | humanize }}
+ {{ .LinkTitle }}
{{ end }}
{{ end }}
@@ -32,7 +35,7 @@
{{- if not .Date.IsZero -}}
\ No newline at end of file
diff --git a/layouts/partials/helper/icon.html b/layouts/partials/helper/icon.html
new file mode 100644
index 0000000..72162e8
--- /dev/null
+++ b/layouts/partials/helper/icon.html
@@ -0,0 +1,6 @@
+{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}}
+{{- if $iconFile -}}
+ {{- $iconFile.Content | safeHTML -}}
+{{- else -}}
+ {{- errorf "Error: icon '%s.svg' is not found under 'assets/icons' folder" . -}}
+{{- end -}}
\ No newline at end of file
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html
index 8991153..f1ab355 100644
--- a/layouts/partials/sidebar/left.html
+++ b/layouts/partials/sidebar/left.html
@@ -33,7 +33,7 @@
{{ if .Pre }}
- {{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }}
+ {{ partial "helper/icon" .Pre }}
{{ end }}
{{- .Name -}}
diff --git a/layouts/partials/widget/archives.html b/layouts/partials/widget/archives.html
index 82bdbf5..2aadfcd 100644
--- a/layouts/partials/widget/archives.html
+++ b/layouts/partials/widget/archives.html
@@ -1,6 +1,6 @@