summaryrefslogtreecommitdiff
path: root/_includes/tags.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:10:58 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:53 -0500
commita10ad0a99ba6e44a35253c3bcaff80c90e99348e (patch)
tree005e05a70fb1fe24a5a7c44dc1d2d14c9e1d88ed /_includes/tags.html
parentb9b34a65fbe55ce78d353ce2b7eb51f6884bd272 (diff)
Revert ALL jekyll-text-theme configuration files
I am changing the theme of the site, and need to revert these changes to make everything work. Revert "Add jekyll-text-theme YAML files" This reverts commit 61b34a5f260db45575d448d766ea29c0fb273ed3. Revert "Bring all of jekyll-text-theme _includes into site" This reverts commit c6bf5f7c895287d2028f6024265913b59784a154. Revert "Bring all of jekyll-text-theme assets to site" This reverts commit 7b69c2e5975f98da09d932ba6c70bdd71b1601a7. Remove jekyll text theme from Gemfile
Diffstat (limited to '_includes/tags.html')
-rw-r--r--_includes/tags.html52
1 files changed, 0 insertions, 52 deletions
diff --git a/_includes/tags.html b/_includes/tags.html
deleted file mode 100644
index 424804c..0000000
--- a/_includes/tags.html
+++ /dev/null
@@ -1,52 +0,0 @@
-{%- assign _tag_max_size = 1 -%}
-{%- assign _tag_min_size = 1 -%}
-{%- assign _tag_cur_size = 1 -%}
-{%- assign _tags = site.tags | sort -%}
-{%- for _tag in _tags -%}
- {%- assign _tag_cur_size = _tag[1].size -%}
- {%- if _tag_cur_size > _tag_max_size -%}
- {%- assign _tag_max_size = _tag_cur_size -%}
- {%- endif -%}
- {%- if _tag_cur_size < _tag_min_size -%}
- {%- assign _tag_min_size = _tag_cur_size -%}
- {%- endif -%}
-{%- endfor -%}
-{%- assign _tag_gap_size = _tag_max_size | minus: _tag_min_size | plus: 1 | divided_by: 4 -%}
-{%- if _tag_gap_size < 1 -%}
- {%- assign _tag_gap_size = 1 -%}
-{%- endif -%}
-<div class="site-tags js-tags">
- <ul class="menu">
- <li>
- <button type="button" class="button button--secondary button--pill tag-button tag-button--all" data-encode="">
- Show All<div class="tag-button__count">{{ site.posts | size }}</div>
- </button>
- </li>
- {%- for _tag in _tags -%}
- {%- assign _tag_cur_size = _tag[1].size -%}
- {%- assign _tag_min_1 = _tag_min_size -%}
- {%- assign _tag_max_1 = _tag_min_1 | plus: _tag_gap_size -%}
- {%- assign _tag_min_2 = _tag_max_1 -%}
- {%- assign _tag_max_2 = _tag_min_2 | plus: _tag_gap_size -%}
- {%- assign _tag_min_3 = _tag_max_2 -%}
- {%- assign _tag_max_3 = _tag_min_3 | plus: _tag_gap_size -%}
- {%- assign _tag_min_4 = _tag_max_3 -%}
- {%- assign _tag_max_4 = _tag_min_4 | plus: _tag_gap_size -%}
- {%- if _tag_cur_size >= _tag_min_1 and _tag_cur_size < _tag_max_1 -%}
- {%- assign _c_index = 1 -%}
- {%- elsif _tag_cur_size >= _tag_min_2 and _tag_cur_size < _tag_max_2 -%}
- {%- assign _c_index = 2 -%}
- {%- elsif _tag_cur_size >= _tag_min_3 and _tag_cur_size < _tag_max_3 -%}
- {%- assign _c_index = 3 -%}
- {%- elsif _tag_cur_size >= _tag_min_4 and _tag_cur_size < _tag_max_4 -%}
- {%- assign _c_index = 4 -%}
- {%- else -%}
- {%- assign _c_index = 4 -%}
- {%- endif -%}
- <li><button type="button" class="button button--pill tag-button tag-button-{{ _c_index }}" data-encode="{{ _tag[0] | strip | url_encode }}">
- <span>{{ _tag[0] | strip }}</span><div class="tag-button__count">{{ _tag[1].size }}</div>
- </button>
- </li>
- {%- endfor -%}
- </ul>
-</div>