-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
67 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,12 @@ <h4>Contact Us</h4> | |
<h4>Sponsor</h4> | ||
<div class="img-responsive thuhidden"> | ||
{% for sponsor in site.sponsor %} | ||
<img src="/static/img/{{ site.sponsors[sponsor].logo }}.png" srcset="/static/img/{{ site.sponsors[sponsor].logo }}.png 1x, /static/img/{{ site.sponsors[sponsor].logo }}@2x.png 2x, /static/img/{{ site.sponsors[sponsor].logo }}@3x.png 3x, /static/img/{{ site.sponsors[sponsor].logo }}@4x.png 4x" alt="{{ site.sponsors[sponsor].short }}" /> | ||
<img src="{{ '/static/img/' | append: site.sponsors[sponsor].logo | append: '.png' | relative_url }}" srcset=" | ||
{{ '/static/img/' | append: site.sponsors[sponsor].logo | append: '.png' | relative_url }} 1x, | ||
{{ '/static/img/' | append: site.sponsors[sponsor].logo | append: '@2x.png' | relative_url }} 2x, | ||
{{ '/static/img/' | append: site.sponsors[sponsor].logo | append: '@3x.png' | relative_url }} 3x, | ||
{{ '/static/img/' | append: site.sponsors[sponsor].logo | append: '@4x.png' | relative_url }} 4x" | ||
alt="{{ site.sponsors[sponsor].short }}" /> | ||
{% endfor %} | ||
</div> | ||
{% assign first_sponsor = site.sponsors[site.sponsor.first] %} | ||
|
@@ -51,7 +56,12 @@ <h4>Sponsor</h4> | |
{% endif %} | ||
</div> | ||
<div class="col-lg-4 col-md-4{% if page.legacy %} col-xs-4{% endif %}"> | ||
<img class="img-responsive thuhidden center-block" style="margin-top:5%" src="/static/img/logo-white.png" srcset="/static/img/logo-white.png 1x, /static/img/[email protected] 2x, /static/img/[email protected] 3x, /static/img/[email protected] 4x" /> | ||
<img class="img-responsive thuhidden center-block" style="margin-top:5%" | ||
src="{{ '/static/img/logo-white.png' | relative_url }}" srcset=" | ||
{{ '/static/img/logo-white.png' | relative_url }} 1x, | ||
{{ '/static/img/[email protected]' | relative_url }} 2x, | ||
{{ '/static/img/[email protected]' | relative_url }} 3x, | ||
{{ '/static/img/[email protected]' | relative_url }} 4x" /> | ||
</div> | ||
</div><!--/row --> | ||
</div><!--/container --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
<span class="icon-bar"></span> | ||
</button> | ||
{% endunless %} | ||
<a class="navbar-brand" href="/"> | ||
<a class="navbar-brand" href="{{ '/' | relative_url}}"> | ||
<span class="thuhidden"> | ||
{% if site.logo %} | ||
<picture> | ||
|
@@ -18,21 +18,21 @@ | |
{% else %} | ||
<source | ||
{% endif %} | ||
srcset="/static/img/logo-small-dark.png 1x, | ||
/static/img/[email protected] 2x, | ||
/static/img/[email protected] 3x, | ||
/static/img/[email protected] 4x" | ||
srcset="{{ '/static/img/logo-small-dark.png'}} 1x, | ||
{{ '/static/img/[email protected]' | relative_url}} 2x, | ||
{{ '/static/img/[email protected]' | relative_url}} 3x, | ||
{{ '/static/img/[email protected]' | relative_url}} 4x" | ||
{% if site.issue %} | ||
alt=""/> | ||
{% else %} | ||
media="(prefers-color-scheme: dark)"/> | ||
{% endif %} | ||
{% unless site.issue %} | ||
<img src="/static/img/logo-small.png" | ||
srcset="/static/img/logo-small.png 1x, | ||
/static/img/[email protected] 2x, | ||
/static/img/[email protected] 3x, | ||
/static/img/[email protected] 4x" | ||
<img src="{{ '/static/img/logo-small.png' | relative_url}}" | ||
srcset="{{ '/static/img/logo-small.png' | relative_url}} 1x, | ||
{{ '/static/img/[email protected]' | relative_url}} 2x, | ||
{{ '/static/img/[email protected]' | relative_url}} 3x, | ||
{{ '/static/img/[email protected]' | relative_url}}4x" | ||
alt=""/> | ||
{% endunless %} | ||
</picture> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<div class="col-md-6 col-xs-12"> | ||
<picture class="thumbnail"> | ||
|
||
<source | ||
srcset="/static/status/{{include.name}}-day-dark.png 1x, | ||
/static/status/{{include.name}}[email protected] 2x, | ||
/static/status/{{include.name}}[email protected] 3x, | ||
/static/status/{{include.name}}[email protected] 4x" | ||
srcset="{{ '/static/status/' | append: include.name | append: '-day-dark.png' | relative_url }} 1x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 2x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 3x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 4x" | ||
media="(prefers-color-scheme: dark)" /> | ||
<img class="img-responsive" src="/static/status/{{include.name}}-day.png" | ||
srcset="/static/status/{{include.name}}-day.png 1x, | ||
/static/status/{{include.name}}[email protected] 2x, | ||
/static/status/{{include.name}}[email protected] 3x, | ||
/static/status/{{include.name}}[email protected] 4x" | ||
<img class="img-responsive" src="{{ '/static/status/' | append: include.name | append: '-day.png' | relative_url }}" | ||
srcset="{{ '/static/status/' | append: include.name | append: '-day.png' | relative_url }} 1x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 2x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 3x, | ||
{{ '/static/status/' | append: include.name | append: '[email protected]' | relative_url }} 4x" | ||
/> | ||
</picture> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,9 @@ | |
<h1>{{ site.school }}开源软件镜像站</h1> | ||
<h3>暂时无法提供服务</h3> | ||
<div class="pull-right"> | ||
<img src="/static/img/candle.jpg" | ||
srcset="/static/img/candle.jpg 1x, | ||
/static/img/[email protected] 2x" | ||
<img src="{{ '/static/img/candle.jpg' | relative_url }}" | ||
srcset="{{ '/static/img/candle.jpg' | relative_url }} 1x, | ||
{{ '/static/img/[email protected]' | relative_url }} 2x" | ||
/> | ||
</div> | ||
<div class="clearfix"></div> | ||
|
@@ -107,10 +107,10 @@ <h3 id="mirror-title">{% fa_svg fas.fa-cube %} 镜像列表 </h3> | |
<h4>{% fa_svg fas.fa-bullhorn %} 新闻公告 </h4> | ||
<ul> | ||
{% for news in site.categories.news limit: 3%} | ||
<li><a href="/news/#{{news.slug}}"><strong>{{news.date | date: "%Y-%m-%d"}}</strong> {{news.title}}</a></li> | ||
<li><a href="{{ '/news/#' | append: news.slug | relative_url }}"><strong>{{news.date | date: "%Y-%m-%d"}}</strong> {{news.title}}</a></li> | ||
{% endfor %} | ||
</ul> | ||
<div class="text-right"><a href="/news/"> more {% fa_svg fas.fa-angles-right %} </a></div> | ||
<div class="text-right"><a href="{{ '/news/' | relative_url }}"> more {% fa_svg fas.fa-angles-right %} </a></div> | ||
</div> | ||
<div class="thuhidden {%if site.issue%}col-md-4{%endif%}"> | ||
<h4> {% fa_svg fas.fa-link %} 域名选择 </h4> | ||
|
@@ -144,10 +144,10 @@ <h4> {% fa_svg far.fa-envelope %} 联系我们 </h4> | |
<div {%if site.issue%}class="col-md-2"{%endif%}> | ||
<h4> {% fa_svg fas.fa-arrow-up-right-from-square %} 相关链接 </h4> | ||
<ul> | ||
<li><a href="/help/">使用帮助</a></li> | ||
<li><a href="{{ '/help/' | relative_url }}">使用帮助</a></li> | ||
{% unless site.issue %} | ||
<li><a href="/status/#server-status">服务器状态</a></li> | ||
<li><a href="/status/#syncing-status">同步状态</a></li> | ||
<li><a href="{{ '/status/#server-status' | relative_url }}">服务器状态</a></li> | ||
<li><a href="{{ '/status/#syncing-status' | relative_url }}">同步状态</a></li> | ||
{% endunless %} | ||
<li class="thuhidden"><a href="https://tuna.moe/">清华大学 TUNA 协会</a></li> | ||
<li><a href="https://github.com/tuna/tunasync">镜像管理器源码</a></li> | ||
|
@@ -215,7 +215,7 @@ <h3>{{selected.distro}}</h3> | |
{% raw %} | ||
{% endraw %} | ||
{% unless page.legacy or site.issue %} | ||
<script src="/static/js/index.js?{{ site.data['hash'] }}"></script> | ||
<script src="{{ 'static/js/index.js?' | append: site.data['hash'] | relative_url }}"></script> | ||
{% endunless %} | ||
</html> | ||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters