mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.24k stars 25.35k forks source link

Blanking out label based keys in ui-text.yml did not remove them from UI #1629

Closed pateskinasy closed 6 years ago

pateskinasy commented 6 years ago

Description

Blanking out label based keys in ui-text.yml did not remove them from UI.

Environment

Windows 10 https://github.com/pateskinasy/pateskinasy.github.io Hosted on Github Pages


Expected behavior

"Tags" and "Categories" to be removed from the UI

Steps to reproduce the behavior

Specifically: Tried tags_label and categories_label. I've deleted "Tags" and "Categories" from them but they didn't disappear from the UI.

mmistakes commented 6 years ago

Leaving categories_label and tags_label blank won't work because the theme is setting the default value to "Categories: " and "Tags: " inside of _includes/category-list.html and _includes/tag-list.html.

You can remedy this by:

  1. Feed both a string with a space
    tags_label: " "
    categories_label: " "
  2. Remove the default values from category-list.html and tag-list.html... | default: "Tags:" and | default: "Categories:"

Either will get you the following result:

image

pateskinasy commented 6 years ago

Thanks Michael once again for the support. It worked.