diff --git a/404.html b/404.html index aed64e6..b527d33 100644 --- a/404.html +++ b/404.html @@ -3,7 +3,8 @@ permalink: /404.html --- - {% include head.html cattitle="404" %} +{% capture metaDesc %}您访问的资源在{{ site.title }}上未找到。{% endcapture %} + {% include head.html cattitle="404" metaDesc=metaDesc%} {% include nav.html %}
diff --git a/_includes/head.html b/_includes/head.html index adbb856..d4106d6 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,11 +2,13 @@ - + -{% if page.mirrorid %} {{ page.mirrorid }} |{% elsif page.title %} {{ page.title }} |{% endif %}{% if include.cattitle %} {{ include.cattitle }} |{% endif %}{% if (page.title || include.cattitle) %}{{" "}}{% endif %}{{ site.title }}{% if site.brand %} | {{ site.brand }}{% endif %} +{% if page.mirrorid %} {{ page.mirrorid }} |{% elsif page.title %} {{ page.title }} |{% endif %}{% if include.cattitle %} {{ include.cattitle }} |{% endif %}{% if (page.title or include.cattitle) %}{{" "}}{% endif %}{{ site.title }}{% if site.brand %} | {{ site.brand }}{% endif %} +{% unless include.nostyle %} @@ -65,4 +67,5 @@ a.navbar-brand { {% endif %} +{% endunless %} diff --git a/_layouts/help.html b/_layouts/help.html index 2c2e475..077121b 100644 --- a/_layouts/help.html +++ b/_layouts/help.html @@ -1,6 +1,7 @@ - {% include head.html cattitle="镜像站使用帮助" %} +{% capture metaDesc %}{{ site.title }}的 {{ page.mirrorid }} 使用帮助。{% endcapture %} + {% include head.html cattitle="镜像站使用帮助" metaDesc=metaDesc %} {% include nav.html %} diff --git a/_layouts/news.html b/_layouts/news.html index 9d5d4f3..cb81c3f 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -1,6 +1,7 @@ - {% include head.html cattitle="镜像站新闻"%} +{% capture metaDesc %}{{ site.title }}{{ page.title }}。{% endcapture %} + {% include head.html cattitle="镜像站新闻" metaDesc=metaDesc %} {% include nav.html %} diff --git a/fancy-index/before-legacy.html b/fancy-index/before-legacy.html index 02fe9cf..9759bd9 100644 --- a/fancy-index/before-legacy.html +++ b/fancy-index/before-legacy.html @@ -1,12 +1,12 @@ --- permalink: /fancy-index/before-legacy.html +title: Index of {{url}} +legacy: true --- - - - Index of {% raw %}{{url}}{% endraw %} | {{ site.title }}{% if site.brand %} | {{ site.brand }}{% endif %} - +{% capture metaDesc %}Index of {% raw %}{{url}}{% endraw %}{% endcapture %} + {% include head.html metaDesc=metaDesc nostyle="true"%}

Index of