Add option to hide server status

This commit is contained in:
Jiajie Chen 2020-08-05 10:05:45 +08:00
parent 007523f341
commit 0d1ef3c6f6
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ pypi: "pypi.tuna.tsinghua.edu.cn"
homelink: "https://tuna.moe"
hide_navbar: false
hide_download: false
hide_server_status: false
# Build settings
highlighter: rouge

View File

@ -9,6 +9,7 @@ permalink: /status/
<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">
@ -32,6 +33,7 @@ permalink: /status/
{% 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">