-
Notifications
You must be signed in to change notification settings - Fork 1
/
browse.html
32 lines (30 loc) · 1.09 KB
/
browse.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
layout: page
title: Browse
permalink: /browse/
---
<!--
<h1>Categories</h1>
<div style="text-align:center;font-size:32px;margin-bottom:20px;">
{% for page in site.pages %}
{% if page.title %}
{% if page.url contains '/category/' %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}" style="margin-right: 10px;">{{ page.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
</div>
-->
<!--<h1>Tags</h1>-->
<div style="text-align:center;line-height:32px;">
<!-- get all tags and make a list annotated with the desired size in percentage of font size -->
{% capture site_tags %}{% for tag in site.tags %}{{ tag|first }}{% unless forloop.last %}:*:{{ tag | last | size | times: 700 | divided_by: site.tags.size | plus: 83 }},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
{% for tag_info in tag_words %}
{% assign tag = tag_info | split:':*:' | first %}
{% assign size = tag_info | split:':*:' | last %}
<a href="/tag/{{ tag | slugize }}/" style="font-size: {{ size }}%; margin:4px;">
{{ tag }}
</a>
{% endfor %}
</div>