From 5abf1f6a87ad7fda15956888d53d9323818d5f34 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 5 Aug 2020 09:55:03 +0800 Subject: [PATCH 1/3] Add config to hide navbar --- _config.yml | 1 + _includes/nav.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/_config.yml b/_config.yml index af55e0c..870280c 100644 --- a/_config.yml +++ b/_config.yml @@ -27,6 +27,7 @@ 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 # Build settings highlighter: rouge diff --git a/_includes/nav.html b/_includes/nav.html index 9161bcc..f6163a9 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -32,12 +32,14 @@
From 007523f3413127f948452c28f0608016777a4697 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 5 Aug 2020 10:03:48 +0800 Subject: [PATCH 2/3] Add option to hide download links --- _config.yml | 1 + _layouts/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 870280c..8bff009 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,7 @@ aur: "aur.tuna.tsinghua.edu.cn" pypi: "pypi.tuna.tsinghua.edu.cn" homelink: "https://tuna.moe" hide_navbar: false +hide_download: false # Build settings highlighter: rouge diff --git a/_layouts/index.html b/_layouts/index.html index cda2449..1b7bb4f 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -100,7 +100,7 @@ {% endif %} - {% unless page.legacy %} + {% unless page.legacy or site.hide_download %}