head/title: Respect site.title and site.brand if set

This commit is contained in:
iBug ♦ 2019-10-14 22:06:48 +08:00 committed by GitHub
parent 7db4e69bee
commit 032f4d61c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
<meta name="keywords" content="镜像站,镜像源,Linux,软件源,开源">
<meta name="author" content="TUNA">
<link rel="shortcut icon" href="/static/img/favicon.png">
<title>{% if page.title %} {{ page.title }} |{% endif %}{% if include.cattitle %} {{ include.cattitle }} |{% endif %}{% if (page.title || include.cattitle) %}{{" "}}{% endif %}清华大学开源软件镜像站 | Tsinghua Open Source Mirror</title>
<title>{% if page.title %} {{ page.title }} |{% endif %}{% if include.cattitle %} {{ include.cattitle }} |{% endif %}{% if (page.title || include.cattitle) %}{{" "}}{% endif %}{{ site.title | default: "清华大学开源软件镜像站" }} | {{ site.brand | default: "Tsinghua Open Source Mirror" }}</title>
<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" >