--- layout: default --- {% capture workspace %} {% assign color = page.color | default: site.color %} {% assign title = page.title %} {% assign description = page.description %} {% assign content = content | strip %} {% assign list = "" | split: "" %} {% if page.permalink == "/404.html" %} {% capture title %}404{% endcapture %} {% capture description %}{{ site.acg.error | default: "Page not found." }}{% endcapture %} {% elsif page.permalink == "/categories.html" %} {% assign title = site.acg.categories %} {% for item in site.categories %}{% assign list = list | push: item[0] %}{% endfor %} {% elsif page.permalink == "/tags.html" %} {% assign title = site.acg.tags %} {% for item in site.tags %}{% assign list = list | push: item[0] %}{% endfor %} {% endif %} {% assign list = list | sort %} {% endcapture %}
{% if page.type == "category" %}{% include item-category.html name=title title=true %} {% elsif page.type == "tag" %}{% include item-tag.html name=title title=true %} {% else %}{{ title }}{% endif %}
{{ description }}
{% if page.permalink == "/categories.html" %} {% for name in list %}{% assign count = site.categories[name].size %}
{% include item-category.html name=name count=count %}
{% endfor %} {% elsif page.permalink == "/tags.html" %} {% for name in list %}{% assign count = site.tags[name].size %}
{% include item-tag.html name=name count=count %}
{% endfor %} {% endif %}
{% if content != empty %}
{{ content }}
{% endif %} {% if page.posts %}
{% include posts.html posts=page.posts %}
{% endif %}