This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>My Website</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/main.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.word-cloud { | |
display: inline-block; | |
max-width: 630px; | |
li { | |
display: inline-block; | |
padding: 0 1rem; | |
vertical-align: middle; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="word-cloud"> | |
{% for tag in blogs['BLOG-HANDLE'].all_tags %} | |
{% assign count = 0 %} | |
{% for article in blogs[blog.handle].articles %} | |
{% if article.tags contains tag %} | |
{% capture count %}{{ count | plus: 1 }}{% endcapture %} | |
{% endif %} | |
{% endfor %} | |
{% assign count = count | plus: 0 %} | |
<li class="tag-{% if count <= 3 %}alpha |