make description in meta vary between pages

Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
This commit is contained in:
Miao Wang 2021-05-21 12:06:01 +08:00
parent b1ef91ceb0
commit fa5fb03c8a
No known key found for this signature in database
GPG Key ID: B031E3CA7BFED96E
8 changed files with 21 additions and 12 deletions

View File

@ -3,7 +3,8 @@ permalink: /404.html
---
<!DOCTYPE html>
<html>
{% include head.html cattitle="404" %}
{% capture metaDesc %}您访问的资源在{{ site.title }}上未找到。{% endcapture %}
{% include head.html cattitle="404" metaDesc=metaDesc%}
<body>
{% include nav.html %}
<div id="mirrors">

View File

@ -2,11 +2,13 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ site.title }}致力于为国内和校内用户提供高质量的开源软件镜像、Linux镜像源服务帮助用户更方便地获取开源软件。本镜像站由清华大学TUNA团队负责维护。">
<meta name="description" content="{% if include.metaDesc %}{{ include.metaDesc }}
{% endif %}{{ site.title }}致力于为国内和校内用户提供高质量的开源软件镜像、Linux 镜像源服务,帮助用户更方便地获取开源软件。本镜像站由清华大学 TUNA 团队负责维护。">
<meta name="keywords" content="镜像站,镜像源,Linux,软件源,开源">
<meta name="author" content="TUNA">
<link rel="shortcut icon" href="/static/img/favicon.png">
<title>{% 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 %}</title>
<title>{% 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 %}</title>
{% unless include.nostyle %}
<link rel="stylesheet" href="/static/css/bootstrap.css">
<link rel="stylesheet" href="/static/css/bootstrap-select.min.css">
<link rel="stylesheet" href="/static/css/font-awesome.min.css" >
@ -65,4 +67,5 @@ a.navbar-brand {
<![endif]-->
</style>
{% endif %}
{% endunless %}
</head>

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
{% include head.html cattitle="镜像站使用帮助" %}
{% capture metaDesc %}{{ site.title }}的 {{ page.mirrorid }} 使用帮助。{% endcapture %}
{% include head.html cattitle="镜像站使用帮助" metaDesc=metaDesc %}
<body>
{% include nav.html %}

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
{% include head.html cattitle="镜像站新闻"%}
{% capture metaDesc %}{{ site.title }}{{ page.title }}。{% endcapture %}
{% include head.html cattitle="镜像站新闻" metaDesc=metaDesc %}
<body>
{% include nav.html %}

View File

@ -1,12 +1,12 @@
---
permalink: /fancy-index/before-legacy.html
title: Index of {{url}}
legacy: true
---
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Index of {% raw %}{{url}}{% endraw %} | {{ site.title }}{% if site.brand %} | {{ site.brand }}{% endif %}</title>
</head>
{% capture metaDesc %}Index of {% raw %}{{url}}{% endraw %}{% endcapture %}
{% include head.html metaDesc=metaDesc nostyle="true"%}
<body>
<h1>Index of
<!--

View File

@ -4,7 +4,8 @@ title: Index of {{url}}
---
<!DOCTYPE html>
<html>
{% include head.html %}
{% capture metaDesc %}Index of {% raw %}{{url}}{% endraw %}{% endcapture %}
{% include head.html metaDesc=metaDesc%}
<body>
{% include nav.html %}

View File

@ -4,7 +4,8 @@ title: 镜像站新闻
---
<!DOCTYPE html>
<html>
{% include head.html %}
{% capture metaDesc %}{{ site.title }}的新闻。{% endcapture %}
{% include head.html metaDesc=metaDesc %}
<body>
{% include nav.html %}

View File

@ -3,7 +3,8 @@ permalink: /status/
---
<!DOCTYPE html>
<html>
{% include head.html %}
{% capture metaDesc %}{{ site.title }}的监控,包括网络流量、磁盘状态、磁盘占用和 CPU 与内存的使用情况,以及各个镜像的同步状态。{% endcapture %}
{% include head.html metaDesc=metaDesc %}
<body>
{% include nav.html %}
<div id="status-page">