Skip to content

Commit 71f8738

Browse files
author
shenweiyan
committed
修复移动端导航按钮点击无法展开, 更新announce, 调整home内容
1 parent a278dc1 commit 71f8738

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

custom/overrides/home.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@
4949
padding: 0;
5050
}
5151
/* Hide md-main */
52+
/* 会导致移动端顶部导航按钮无法展开 */
53+
/*
5254
.md-main {
5355
display: none;
5456
}
57+
*/
5558

5659

5760
/* Fonts */
@@ -243,7 +246,7 @@
243246
<div class="hero-text">
244247
<h1>欢迎使用 NavPage 导航主题</h1>
245248
<p><b>NavPage-Hugo-Theme</b> 是一个基于 Hugo 的静态响应式网址导航付费主题,它是 <a href="https://github.com/shenweiyan/WebStack-hugo">WebStack-Hugo</a> 的一个 <b>Insiders</b> 版本,相比较开源版本进行了部分<a href="https://github.com/orgs/NavPage/discussions/4">优化与功能更新</a></p>
246-
<a class="button" href="https://bioit.top/">实例站点</a> <a class="button" data-type="inverted" href="https://github.com/orgs/navpage/discussions/2">成为会员</a>
249+
<a class="button" href="https://bioit.top/">示例站点</a> <a class="button" data-type="inverted" href="https://github.com/orgs/navpage/discussions/2">加入会员</a>
247250
</div>
248251
<div class="hero-image">
249252
<img src="../assets/screenshots/illustration.png" alt="hero image">

custom/overrides/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% endblock %}
1414
{% block announce %}
1515
<div class="announce_text">
16-
Some info and updates here! to change this text edit custom/overrides/main.html
16+
欢迎使用 NavPage Insiders 导航主题!
1717
</div>
1818
{% endblock %}
1919
{% block scripts %}

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ theme:
2929

3030
palette:
3131
# Light mode
32-
- media: "(prefers-color-scheme: dark)"
32+
- media: "(prefers-color-scheme: light)"
3333
scheme: default
3434
toggle:
3535
icon: material/toggle-switch
3636
name: Switch to dark mode
3737
# Dark mode
38-
- media: "(prefers-color-scheme: light)"
38+
- media: "(prefers-color-scheme: dark)"
3939
scheme: slate
4040
toggle:
4141
icon: material/toggle-switch-off-outline

0 commit comments

Comments
 (0)