Fix last commit by using thuhidden correctly

This commit is contained in:
Jiajie Chen 2020-03-23 22:25:41 +08:00
parent 264d311e13
commit 62bef47fcd
2 changed files with 22 additions and 18 deletions

View File

@ -8,9 +8,12 @@
# Site settings
title: 清华大学开源软件镜像站
# title: 北京外国语大学开源软件镜像站
school: 清华大学
# school: 北京外国语大学
brand: Tsinghua Open Source Mirror
operator: 清华大学信息化技术中心
# title: 北外信息技术中心
# operator: 北外信息技术中心
logo: true
baseurl: "" # the subpath of your site, e.g. /blog
permalink: "/:categories/:title/"
url: "https://mirrors.tuna.tsinghua.edu.cn"

View File

@ -9,23 +9,24 @@
<span class="icon-bar"></span>
</button>
{% endunless %}
<a class="navbar-brand" href="/"><!--
--><span class="thuhidden"><!--
--><picture>
<source
srcset="/static/img/logo-small-dark.png 1x,
/static/img/logo-small-dark@2x.png 2x,
/static/img/logo-small-dark@3x.png 3x,
/static/img/logo-small-dark@4x.png 4x"
media="(prefers-color-scheme: dark)"/>
<img src="/static/img/logo-small.png"
srcset="/static/img/logo-small.png 1x,
/static/img/logo-small@2x.png 2x,
/static/img/logo-small@3x.png 3x,
/static/img/logo-small@4x.png 4x"
alt=""/>
</picture>
{{ site.title }}
<a class="navbar-brand" href="/">
<span class="thuhidden">
<picture>
<source
srcset="/static/img/logo-small-dark.png 1x,
/static/img/logo-small-dark@2x.png 2x,
/static/img/logo-small-dark@3x.png 3x,
/static/img/logo-small-dark@4x.png 4x"
media="(prefers-color-scheme: dark)"/>
<img src="/static/img/logo-small.png"
srcset="/static/img/logo-small.png 1x,
/static/img/logo-small@2x.png 2x,
/static/img/logo-small@3x.png 3x,
/static/img/logo-small@4x.png 4x"
alt=""/>
</picture>
{{ site.school }}</span>开源软件镜像站
</a>
</div>
<div class="{% unless page.legacy %}navbar-collapse collapse {% endunless %}navbar-right">
<ul class="nav navbar-nav" role="menubar">