Skip to content

Commit

Permalink
Merge pull request tuna#208 from tuna/more-config-options
Browse files Browse the repository at this point in the history
More config options
  • Loading branch information
xavieryao authored Aug 5, 2020
2 parents 9412322 + 0d1ef3c commit e882c81
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ arch_archive: "arch-archive.tuna.tsinghua.edu.cn"
aur: "aur.tuna.tsinghua.edu.cn"
pypi: "pypi.tuna.tsinghua.edu.cn"
homelink: "https://tuna.moe"
hide_navbar: false
hide_download: false
hide_server_status: false

# Build settings
highlighter: rouge
Expand Down
2 changes: 2 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
</div>
<div class="{% unless page.legacy %}navbar-collapse collapse {% endunless %}navbar-right">
<ul class="nav navbar-nav" role="menubar">
{% unless site.hide_navbar %}
<li role="none"><a role="menuitem" href="{{ site.homelink }}">HOME</a></li>
<li role="none"><a role="menuitem" href="https://tuna.moe/events/">EVENTS</a></li>
<li role="none"><a role="menuitem" href="https://tuna.moe/blog/">BLOG</a></li>
<li role="none"><a role="menuitem" href="https://tuna.moe/feed.xml">RSS</a></li>
<li role="none"><a role="menuitem" href="https://podcast.tuna.moe/">PODCAST</a></li>
<li role="none" class="active"><a role="menuitem" aria-checked="true" href="{{ site.url }}">MIRRORS</a></li>
{% endunless %}
</ul>
</div><!--/.nav-collapse -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h4> <span class="fa fa-link"></span> 域名选择 </h4>
{% endif %}
</ul>
</div>
{% unless page.legacy %}
{% unless page.legacy or site.hide_download %}
<div id="download-link">
<h4><span class="fa fa-file-archive-o"></span> 下载链接 </h4>
<p>常用发行版 iso 和应用工具安装包直接下载</p>
Expand Down
2 changes: 2 additions & 0 deletions status.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<div id="status-page">
<div class="spacing hidden-xs"></div>
<div class="container">
{% unless site.hide_server_status %}
<h3 id="server-status"> # 服务器监控 </h3>
<h4> # 网络流量 </h4>
<div class="row">
Expand All @@ -32,6 +33,7 @@ <h4># CPU / 内存</h4>
{% include status-pic.html name="cpu" %}
{% include status-pic.html name="memory" %}
</div>
{% endunless %}
<h3 id="syncing-status"># 同步状态</h3>
<table class="table table-condensed flat-md">
<thead class="hidden-xs hidden-sm">
Expand Down

0 comments on commit e882c81

Please sign in to comment.