dsrkafuu / hugo-theme-fuji

A minimal Hugo theme with nice theme color. | 一个主题色极简 Hugo 主题。
https://github.dsrkafuu.net/hugo-theme-fuji/
Apache License 2.0
367 stars 97 forks source link

How Can I Remove the Tag Icon if There are No Tags #91

Closed amarakon closed 1 year ago

amarakon commented 2 years ago

By default, this theme always shows the tag icon and it shows "No tag" if there aren't any. I want it to show nothing if there are no tags. I removed the "No tag" text by removing these lines from i18n/en.toml:

[postMetaNoTag]
    other = "No tag"

But it still shows the tag icon. How can I get rid of it?

dsrkafuu commented 1 year ago

You can use config hideNoTagList to disable "No tag" now: https://github.com/dsrkafuu/hugo-theme-fuji/blob/master/exampleSite/config.toml#L54