Skip to content

Commit c35a122

Browse files
author
shenweiyan
committed
调整信息与样式 1.0
1 parent a2ba40c commit c35a122

File tree

11 files changed

+45
-44
lines changed

11 files changed

+45
-44
lines changed

custom/overrides/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@
239239
<div class="layer__inner | even-columns">
240240
<!-- To change the alignment of the text & image just place the <div class="hero-image"> above "hero-text" -->
241241
<div class="hero-text">
242-
<h1>欢迎使用 Navpage 导航主题</h1>
243-
<p>NavPage-Hugo-Theme 是一个基于 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>
242+
<h1>欢迎使用 NavPage 导航主题</h1>
243+
<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>
244244
<a class="button" href="#">Get started</a> <a class="button" data-type="inverted" href="#">Learn more</a>
245245
</div>
246246
<div class="hero-image">

custom/overrides/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<!--svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.87164855957031 37.858695652173914" fill="none" style="max-height: 500px" width="28.87164855957031" height="37.858695652173914">
2929
<path fill="#fff" d="M88.036 14.02c-.132-.255-.443-.382-.933-.382h-.764l-.184.183v21.303l.183.184h.765c.49 0 .8-.128.933-.383s.199-.617.199-1.086v-6.185c.436.282.884.532 1.346.752a6.116 6.116 0 0 0 2.6.566c.877 0 1.754-.27 2.63-.811.877-.551 1.606-1.408 2.187-2.571.582-1.163.872-2.678.872-4.545 0-1.52-.194-2.857-.581-4.01-.387-1.153-.963-2.05-1.728-2.693-.755-.653-1.688-.98-2.799-.98-.928 0-1.769.189-2.523.566a6.592 6.592 0 0 0-2.004 1.542v-.363c0-.48-.066-.842-.199-1.087Zm.199 3.703v7.93c.362.244.755.493 1.178.748.795.47 1.657.704 2.584.704.622 0 1.219-.204 1.79-.612.57-.418 1.035-1.071 1.391-1.96.368-.887.551-2.05.551-3.488 0-1.388-.158-2.505-.474-3.352-.316-.857-.734-1.48-1.254-1.867-.51-.398-1.056-.597-1.637-.597-.632 0-1.274.164-1.927.49a5.743 5.743 0 0 0-1.743 1.393c-.167.193-.32.396-.459.611ZM3.991 1.698C3.991.76 4.747 0 5.68 0h17.622c2.425 0 4.39 1.977 4.39 4.415v27.17c0 2.438-1.965 4.415-4.39 4.415H1.69C.756 36 0 35.24 0 34.302s.756-1.698 1.689-1.698h21.613c.56 0 1.013-.456 1.013-1.02V4.416c0-.563-.453-1.019-1.013-1.019H5.68c-.933 0-1.689-.76-1.689-1.698Z" clip-rule="evenodd" fill-rule="evenodd"/>
3030
<path fill="#fff" d="M9.456 9.85c0-.939.756-1.7 1.689-1.7h8.78c.933 0 1.688.761 1.688 1.7 0 .937-.755 1.697-1.688 1.697h-8.78c-.933 0-1.69-.76-1.69-1.698ZM2.026 18c0-.938.756-1.698 1.689-1.698h16.21c.933 0 1.688.76 1.688 1.698s-.755 1.698-1.688 1.698H3.715c-.933 0-1.689-.76-1.689-1.698ZM6.079 26.15c0-.937.756-1.697 1.688-1.697h12.158c.933 0 1.688.76 1.688 1.698s-.755 1.698-1.688 1.698H7.767c-.932 0-1.688-.76-1.688-1.698Z" clip-rule="evenodd" fill-rule="evenodd"/>
31-
</svg-->NavPage主题
31+
</svg-->NavPage
3232
</span>
3333
</div>
3434
<!--div class="md-header__topic" data-md-component="header-topic">

docs/.nav.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
nav:
2+
- 主页: index.md
3+
- 快速开始:
4+
- 开始: getting-started.md
5+
- 语法: getting-started/markdown.md
6+
- 提示框: getting-started/admonitions.md
7+
- 代码块: getting-started/codeblocks.md
8+
- 自定义:
9+
- 设置示例: getting-started/setup.md
10+
- 使用 beta 标签: getting-started/tages.md
11+
- 博客: blog
12+
- 示例页面:
13+
- cartographer.md
14+
- FAQ.md
15+
- 教程:
16+
- 创建自定义主页: custom-homepage.md

docs/assets/stylesheets/partials/layout.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
}
6363

6464
.md-header__topic {
65-
font-family: "Encode Sans", serif;
65+
/*font-family: "Encode Sans", serif;*/
66+
font-family: var(--md-text-font-family);
6667
overflow-wrap: break-word;
6768
font-weight: 500;
6869
letter-spacing: -0.01em;
@@ -150,7 +151,8 @@ li.md-tabs__item {
150151
/* Nav titles */
151152
.md-nav__item--section > .md-nav__link,
152153
.md-nav__title {
153-
font-family: "Inter", "Encode Sans", serif;
154+
/*font-family: "Inter", "Encode Sans", serif;*/
155+
font-family: var(--md-text-font-family);
154156
color: var(--md-title-color);
155157
font-weight: var(--fw-semibold);
156158
margin-bottom: 0.1rem;
@@ -195,7 +197,7 @@ label.md-nav__link + nav label.md-nav__link {
195197

196198
/* --- Title styling */
197199
.md-nav--primary ul:first-of-type .md-nav__item--section label.md-nav__link {
198-
font-family: "Inter", "Encode Sans", serif;
200+
font-family: var(--md-text-font-family);
199201
}
200202

201203
[data-md-color-scheme="default"] .md-nav--primary .md-nav__title,
@@ -347,4 +349,4 @@ details > p {
347349

348350
[data-md-color-scheme="slate"] .md-footer__inner a:hover {
349351
color: var(--base-black);
350-
}
352+
}

docs/custom-homepage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: Creating a custom homepage
32
hide:
43
- footer
54
beta: true
65
---
76

7+
# Creating a custom homepage
8+
89
## Understanding theme extending
910

1011
In order to create your custom homepage it's important to know how theme extending and partials works.

docs/getting-started.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
---
2-
title: Getting started
3-
---
4-
1+
# Getting started
52

63
In this category i will mention some necessary and quality of life features.
74

docs/getting-started/codeblocks.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## Codeblocks
1+
---
2+
status: deprecated
3+
---
4+
5+
# Codeblocks
26

37

48
### Adding annotations
@@ -176,4 +180,4 @@ In order to show a filename as title you set up the following:
176180
std::cout << "Hello world!" << std::endl;
177181
return 0;
178182
}
179-
```
183+
```

docs/getting-started/markdown.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
title: Markdown examples
32
hide:
43
- footer
54
status: new
65
---
76

8-
# Markdown
7+
# Markdown Example
98

109
## Setting up markdown files with custom meta
1110

@@ -26,7 +25,6 @@ hide:
2625

2726
For more info on any markdown options, because i havent covered everything (such as buttons, content tabs, math, diagrams etc) follow the guides on [material for Mkdocs](https://squidfunk.github.io/mkdocs-material/reference/).
2827

29-
# H1
3028
## H2
3129
### H3
3230
#### H4
@@ -275,4 +273,4 @@ Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit.[^2] (example of the
275273

276274

277275
[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
278-
[^2]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
276+
[^2]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

docs/getting-started/setup.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: Setup Example
32
hide:
43
- toc
54
- footer
65
---
76

7+
# Setup Example
8+
89
## Creating step by step page using custom markdown
910

1011
This is a custom option made for SimpleAF to create a step by step ordered list with markdown for visually easier readability.
@@ -86,4 +87,4 @@ _(take note of the indents ++tab++ and white-lines ++enter++ )_
8687
rutrum. Pellentesque aliquet quam enim, eu volutpat urna rutrum a.
8788
8889
--!steps--
89-
```
90+
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Using beta tags
32
hide:
43
- footer
54
beta: true
65
---
76

7+
# Using beta tags
88

99
Do you notice the `beta` tag? That's custom you can enable it by adding the following to the top of your .md files:
1010
```
@@ -13,4 +13,4 @@ beta: true
1313
---
1414
```
1515

16-
If needed these can be created for more options, if you need any just open a suggestion.
16+
If needed these can be created for more options, if you need any just open a suggestion.

mkdocs.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ plugins:
8282
draft: true
8383
post_url_format: "{slug}"
8484
- search:
85-
lang: en
85+
lang:
86+
- en
87+
- zh
8688
separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
8789
- tags
90+
- awesome-nav
8891

8992
# INSIDERS=1 mkdocs build
9093
- group:
@@ -94,7 +97,6 @@ plugins:
9497
- social
9598
- typeset
9699

97-
98100
extra:
99101
status:
100102
<identifier>: <description>
@@ -143,25 +145,5 @@ markdown_extensions:
143145
- pymdownx.tasklist:
144146
custom_checkbox: true
145147

146-
# Page tree
147-
nav:
148-
- 主页: index.md
149-
- 快速开始:
150-
- getting-started.md
151-
- Markdown: getting-started/markdown.md
152-
- Admonitions: getting-started/admonitions.md
153-
- Codeblocks: getting-started/codeblocks.md
154-
- Custom:
155-
- Setup example: getting-started/setup.md
156-
- Using beta tags: getting-started/test.md
157-
- 博客:
158-
- blog/index.md
159-
- 示例页面:
160-
- cartographer.md
161-
- FAQ.md
162-
- 教程:
163-
- custom-homepage.md
164-
165-
166148
hooks:
167149
- copyright.py

0 commit comments

Comments
 (0)