--- layout: compress --- {% capture lang %}{{ page.lang | default: site.lang | default: "en-US" }}{% endcapture %} {% comment %} color {% endcomment %} {% capture color %}{{ page.color | default: site.color | downcase }}{% endcapture %} {% assign colors = "red, blue, pink, green, yellow, purple, gray, default" | split: ", " %} {% for item in colors %} {% if item == color %}{% break %}{% endif %} {% if item == "default" %}{% assign color = "red" %}{% endif %} {% endfor %} {% comment %} background {% endcomment %} {% capture background %}{{ page.background | default: site.acg.background | default: "https://cdn.jsdelivr.net/gh/coderzhaoziwei/jekyll-theme-acg/assets/images/pixiv86925095.png" | relative_url }}{% endcapture %} {% assign title = page.title %} {% assign description = page.description %} {% assign content = content | strip %} {% if page.type == "home" %} {% capture title %}{{ site.title }}{% endcapture %} {% capture description %}{{ site.description }}{% endcapture %} {% elsif page.permalink == "/categories.html" %} {% capture title %}{{ site.acg.categories.label | default: "Categories" }}{% endcapture %} {% capture description %}{{ site.acg.categories.description }}{% endcapture %} {% elsif page.permalink == "/tags.html" %} {% capture title %}{{ site.acg.tags.label | default: "Tags" }}{% endcapture %} {% capture description %}{{ site.acg.tags.description }}{% endcapture %} {% elsif page.permalink == "/about.html" %} {% capture title %}{{ site.acg.about.label | default: "About" }}{% endcapture %} {% capture description %}{{ site.acg.about.description }}{% endcapture %} {% elsif page.permalink == "/friends.html" %} {% capture title %}{{ site.acg.friends.label | default: "Friends" }}{% endcapture %} {% capture description %}{{ site.acg.friends.description }}{% endcapture %} {% elsif page.permalink == "/404.html" %} {% capture title %}{{ site.acg.error.label | default: '404' }}{% endcapture %} {% capture description %}{{ site.acg.error.description | default: "Page not found." }}{% endcapture %} {% endif %} {% assign list = "" | split: "" %} {% if page.permalink == "/categories.html" %} {% for item in site.categories %}{% assign list = list | push: item[0] %}{% endfor %} {% elsif page.permalink == "/tags.html" %} {% for item in site.tags %}{% assign list = list | push: item[0] %}{% endfor %} {% endif %} {% assign list = list | sort %} {% include head.html %}
{% include header.html %}