diff --git a/assets/js/taglist.js b/assets/js/taglist.js index 4bcce0d..9088324 100644 --- a/assets/js/taglist.js +++ b/assets/js/taglist.js @@ -1,5 +1,5 @@ function show_all_tags(e) { - $(".tags-sidebar li").css("display","inline-block"); - $(e).css("display","none"); - return false; - } + $(".tags-sidebar li").removeClass("hidden"); + $(e).addClass("hidden"); + return false; +} diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index c5164f6..cfd8114 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -209,3 +209,10 @@ article header div.author { .icon.major { cursor: pointer; } + +.tags-sidebar { + li.hidden { + display: none; + visibility: hidden; + } +} \ No newline at end of file diff --git a/layouts/partials/sidebar/taglist.html b/layouts/partials/sidebar/taglist.html index b8112ae..46e3d1c 100644 --- a/layouts/partials/sidebar/taglist.html +++ b/layouts/partials/sidebar/taglist.html @@ -50,7 +50,7 @@
  • {{ .Page.LinkTitle | safeHTML }} ({{ len .Pages }})
  • {{ else }} -
  • +
  • {{ end }} {{ end }}