1616 < h1 > {{ site.school }}开源软件镜像站</ h1 >
1717 < h3 > 暂时无法提供服务</ h3 >
1818 < div class ="pull-right ">
19- < img src ="/static/img/candle.jpg "
20- srcset ="/static/img/candle.jpg 1x,
21- 19+ < img src ="{{ ' /static/img/candle.jpg' | relative_url }} "
20+ srcset ="{{ ' /static/img/candle.jpg' | relative_url }} 1x,
21+ {{ ' /static/img/[email protected] ' | relative_url }} 2x "
2222 />
2323 </ div >
2424 < div class ="clearfix "> </ div >
@@ -51,14 +51,14 @@ <h3 id="mirror-title">{% fa_svg fas.fa-cube %} 镜像列表 </h3>
5151 {{mirs}}
5252 < tr class ="row status-{{status}} ">
5353 < td >
54- < a class ="mirror-item-label " href ="{{url}} " title ="{{description}} ">
54+ < a class ="mirror-item-label " href ="{{ url | relative_url }} " title ="{{description}} ">
5555 {{name}}
5656 </ a >
5757 {{if is_new}}
5858 < span class ="label label-new "> new</ span >
5959 {{/if}}
6060 {{if help_url}}
61- < a href ="{{help_url}} "> < i aria-hidden ="true " class ="question-circle " title ="Help "> {% endraw %}{% fa_svg fas.fa-circle-question %}{% raw %}</ i > < span class ="sr-only "> [Help]</ span > </ a >
61+ < a href ="{{ help_url | relative_url }} "> < i aria-hidden ="true " class ="question-circle " title ="Help "> {% endraw %}{% fa_svg fas.fa-circle-question %}{% raw %}</ i > < span class ="sr-only "> [Help]</ span > </ a >
6262 {{/if}}
6363 </ td >
6464 < td >
@@ -68,16 +68,18 @@ <h3 id="mirror-title">{% fa_svg fas.fa-cube %} 镜像列表 </h3>
6868 {{/mirs}}
6969 {% endraw %}
7070 {% else %}
71- {% raw %}
7271 < tr v-for ="mir in filteredMirrorList " :class ="['row', 'status-'+mir.status] " :key ="mir.name ">
7372 < td class ="col-md-8 ">
7473 < a class ="mirror-item-label " data-toggle ="popover " data-trigger ="hover " data-placement ="right "
75- :data-content ="mir.description " :href ="getURL(mir) " :aria-label ="mir.name + ', ' + mir.description ">
76- {{mir.name}}
74+ :data-content ="mir.description " :href ="'{{ site.baseurl }}' + getURL(mir) " :aria-label ="mir.name + ', ' + mir.description ">
75+ {% raw %}
76+ {{mir.name}}
77+ {% endraw %}
7778 < span class ="label label-new " v-if ='mir.is_new '> new</ span >
78- < a v-if ='mir.help_url ' :href ="mir.help_url "> < i aria-hidden ="true " class ="question-circle " title ="Help "> {% endraw %}{% fa_svg fas.fa-circle-question %}{% raw %}</ i > < span class ="sr-only "> [Help]</ span > </ a >
79- < a v-if ='mir.github_release ' href ="javascript:void(0) "> < i aria-hidden ="true " title ="GitHub Release "> {% endraw %}{% fa_svg fab.fa-github %}{% raw %}</ i > < span class ="sr-only "> [GitHub Release]</ span > </ a >
80- </ td >
79+ < a v-if ='mir.help_url ' :href ="'{{ site.baseurl }}' + mir.help_url "> < i aria-hidden ="true " class ="question-circle " title ="Help "> {% fa_svg fas.fa-circle-question %}</ i > < span class ="sr-only "> [Help]</ span > </ a >
80+ < a v-if ='mir.github_release ' href ="javascript:void(0) "> < i aria-hidden ="true " title ="GitHub Release "> {% fa_svg fab.fa-github %}</ i > < span class ="sr-only "> [GitHub Release]</ span > </ a >
81+ </ td >
82+ {% raw %}
8183 < td class ="col-md-4 ">
8284 {{mir.last_update}}< span v-if ="mir.show_status " :class ="['label', 'label-status', mir.label, 'hidden-xs'] "> {{mir.status}}</ span >
8385 </ td >
@@ -107,10 +109,10 @@ <h3 id="mirror-title">{% fa_svg fas.fa-cube %} 镜像列表 </h3>
107109 < h4 > {% fa_svg fas.fa-bullhorn %} 新闻公告 </ h4 >
108110 < ul >
109111 {% for news in site.categories.news limit: 3%}
110- < li > < a href ="/news/#{{ news.slug}} "> < strong > {{news.date | date: "%Y-%m-%d"}}</ strong > {{news.title}}</ a > </ li >
112+ < li > < a href ="{{ ' /news/#' | append: news.slug | relative_url }} "> < strong > {{news.date | date: "%Y-%m-%d"}}</ strong > {{news.title}}</ a > </ li >
111113 {% endfor %}
112114 </ ul >
113- < div class ="text-right "> < a href ="/news/ "> more {% fa_svg fas.fa-angles-right %} </ a > </ div >
115+ < div class ="text-right "> < a href ="{{ ' /news/' | relative_url }} "> more {% fa_svg fas.fa-angles-right %} </ a > </ div >
114116 </ div >
115117 < div class ="thuhidden {%if site.issue%}col-md-4{%endif%} ">
116118 < h4 > {% fa_svg fas.fa-link %} 域名选择 </ h4 >
@@ -144,10 +146,10 @@ <h4> {% fa_svg far.fa-envelope %} 联系我们 </h4>
144146 < div {%if site.issue%}class ="col-md-2 "{%endif%} >
145147 < h4 > {% fa_svg fas.fa-arrow-up-right-from-square %} 相关链接 </ h4 >
146148 < ul >
147- < li > < a href ="/help/ "> 使用帮助</ a > </ li >
149+ < li > < a href ="{{ ' /help/' | relative_url }} "> 使用帮助</ a > </ li >
148150 {% unless site.issue %}
149- < li > < a href ="/status/#server-status "> 服务器状态</ a > </ li >
150- < li > < a href ="/status/#syncing-status "> 同步状态</ a > </ li >
151+ < li > < a href ="{{ ' /status/#server-status' | relative_url }} "> 服务器状态</ a > </ li >
152+ < li > < a href ="{{ ' /status/#syncing-status' | relative_url }} "> 同步状态</ a > </ li >
151153 {% endunless %}
152154 < li class ="thuhidden "> < a href ="https://tuna.moe/ "> 清华大学 TUNA 协会</ a > </ li >
153155 < li > < a href ="https://github.com/tuna/tunasync "> 镜像管理器源码</ a > </ li >
@@ -215,7 +217,7 @@ <h3>{{selected.distro}}</h3>
215217 {% raw %}
216218 {% endraw %}
217219 {% unless page.legacy or site.issue %}
218- < script src ="/ static/js/index.js?{{ site.data['hash'] }} "> </ script >
220+ < script src ="{{ ' static/js/index.js?' | append: site.data['hash'] | relative_url }} "> </ script >
219221 {% endunless %}
220222</ html >
221223<!--
0 commit comments