layout | title | permalink | jekyll-theme-WuK | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
page |
首页 |
|
{% if page.jekyll-theme-WuK.tags.vega_lite.enable %}
{% capture json_data %}[
{% for tag in site.tags reversed %}
, {"tags": "{{ tag[0] }}", "count": {{ tag[1].size }} }
{% endfor %}
]{% endcapture %}
{% assign json_data = json_data | remove_first: "," %}
{
"data": { "values": {{ json_data }} },
"encoding": {
"y": {"field": "tags", "type": "nominal"},
"x": {"field": "count", "type": "quantitative" }
},
"mark": "bar"
}
{% endif %}
{% for tag in site.tags reversed %}
{% for post in tag[1] %}
- {{ post.date | date_to_string }} [{{ post.title }}]({{ post.url | relative_url }}){% endfor %} {% endfor %}