Skip to content

Commit be0ec8b

Browse files
committed
minor fix
1 parent 8bf5706 commit be0ec8b

16 files changed

Lines changed: 52 additions & 42 deletions

File tree

_config.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ url : https://young-lord.github.io # the base hostname & protocol for your s
2323
permanent_url: https://young-lord.github.io # 目前用于在多域名间共享评论区
2424
baseurl : "" # 假如你的博客是建在某个目录下的,请在这里加上目录名,并且下面配置的所有链接里的`/public`前也要加,即`/your_baseurl/public`。这一项结尾不要有'/'
2525
title : LY 的博客
26-
description: "" # > # this means to ignore newlines until "Language & timezone"
27-
# Write sth here!
26+
title_description: ""
27+
website_meta_description: "LY 的博客 - 首页"
2828

2929
webmaster_verifications: # <https://jekyll.github.io/jekyll-seo-tag/usage/>
3030
google: jzW0S1BoNl_qNI4hmL8Gp6b5JuxqDu_G4gw6w0z1Ytc
@@ -44,10 +44,11 @@ timezone: Asia/Shanghai # see https://en.wikipedia.org/wiki/List_of_tz_database_
4444
author:
4545
type : person # "person" (default), "organization"
4646
name : LY
47-
url : https://github.com/Young-Lord
48-
avatar : https://avatars.githubusercontent.com/Young-Lord # path or url of avatar image (square)
47+
url : &github_profile_url https://github.com/Young-Lord
48+
# avatar : https://avatars.githubusercontent.com/Young-Lord # path or url of avatar image (square)
4949
bio : ""
50-
email : ly-niko@qq.com # 下面 sidebar 那里还有一个要改
50+
email : ly-niko@qq.com
51+
email_url : &mailto_url mailto:ly-niko@qq.com
5152
github : Young-Lord
5253

5354

@@ -62,12 +63,11 @@ repository_tree: master
6263
paths: # 注意,这里改了是没有用的,这里只是做一个标识
6364
root : "/" # title link url, "/" (default)
6465
home : "/" # home layout url, "/" (default)
65-
archive : "/archive.html" # "/archive.html" (default)
66-
rss : "/feed.xml" # rss feed link , "/feed.xml" (default)
66+
archive : &archive_path "/archive" # "/archive.html" (default)
67+
rss : &feed_path "/feed.xml" # rss feed link , "/feed.xml" (default)
6768

6869
feed:
69-
path: "/feed.xml"
70-
70+
path: *feed_path
7171

7272
## => Post
7373
##############################
@@ -205,23 +205,23 @@ sidebar:
205205
#description: '<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=280 height=210 src="//music.163.com/outchain/player?type=0&id=932740311&auto=0&height=430"></iframe>'
206206
social:
207207
- title: Mail
208-
href: mailto:ly-niko@qq.com
208+
href: *mailto_url
209209
class: 'fas fa-envelope'
210210
- title: rss
211-
href: /feed.xml
211+
href: *feed_path
212212
class: 'fas fa-rss'
213213
- title: HitGub
214-
href: //github.com/Young-Lord
214+
href: *github_profile_url
215215
class: 'fab fa-github'
216216
nav:
217217
- title: '<i class="fas fa-home fa-fw"></i> 首页'
218218
href: /
219219
- title: '<i class="fab fa-readme fa-fw"></i> 关于 & 友链'
220220
href: /about
221221
- title: '<i class="fas fa-archive fa-fw"></i> 归档'
222-
href: /archive
222+
href: *archive_path
223223
jekyll_table_of_contents:
224-
enable: true
224+
enable: false
225225
autoloader: /assets/js/jekyll_table_of_contents.js
226226
busuanzi:
227227
enable: true

_includes/head.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<title>{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
77
<meta property="og:title" content="{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}" />
88

9-
<meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
10-
<meta property="og:description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
11-
<meta property="twitter:description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
9+
<meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.website_meta_description }}{%- endif -%}">
10+
<meta property="og:description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.website_meta_description }}{%- endif -%}">
11+
<meta property="twitter:description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.website_meta_description }}{%- endif -%}">
1212

1313
<link rel="canonical" href="{%- include snippets/page-url.html -%}">
1414

_includes/head/custom.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!-- start custom head snippets -->
2-
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" rel="stylesheet">
3-
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js"></script>
2+
<link rel="preload" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
3+
<noscript><link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"></noscript>
4+
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js" defer async></script>
45
<link rel="stylesheet" href="/assets/css/lanyon/poole.min.css">
56
<link rel="stylesheet" href="/assets/css/lanyon/syntax.min.css">
67
<link rel="stylesheet" href="/assets/css/lanyon/lanyon.min.css">

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{%- assign _pan_gu_zhi_bai = __return -%}
1313
{%- if _pan_gu_zhi_bai -%}
1414
<div>
15-
<script src="/assets/js/text_autospace_include.js" defer></script>
15+
<script src="/assets/js/text_autospace_include.js" async defer></script>
1616
</div>
1717
{%- endif -%}
1818
<div class="main">
@@ -22,7 +22,7 @@
2222
{%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
2323
{%- include snippets/get-nav-url.html path=_paths_root -%}
2424
{%- if site.title -%}
25-
<a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
25+
<a title="{%- if site.title_description -%}{{ site.title_description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
2626
{%- endif -%}
2727
</div>
2828
{%- if site.search.provider -%}
@@ -45,7 +45,7 @@
4545
{%- endif -%}
4646
{%- endfor -%}
4747
{%- if site.search.provider -%}
48-
<li><button class="button button--secondary button--circle search-button js-search-toggle" title="搜索"><i class="fas fa-search"></i></button></li>
48+
<li><button type="button" class="button button--secondary button--circle search-button js-search-toggle" title="搜索"><i class="fas fa-search"></i></button></li>
4949
{%- endif -%}
5050
</ul>
5151
</nav>

_includes/scripts/article.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
});
1515
$articleContent.find('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
1616
$this = $(this);
17-
$this.append($('<a class="anchor d-print-none" aria-hidden="true" href="javascript:void(0);"></a>').html('<i class="fas fa-anchor"></i>'));
17+
$this.append($('<button type="button" class="anchor d-print-none" aria-hidden="true"></button>').html('<i class="fas fa-anchor"></i>'));
1818
});
1919
$articleContent.on('click', '.anchor', function() {
2020
$scroll.scrollToAnchor('#' + $(this).parent().attr('id'), 400);

_includes/search-providers/default/search.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
<div class="search-box__icon-search"><i class="fas fa-search"></i></div>
77
<input type="text" title="搜索博文-输入框"/>
88
<div class="search-box__icon-clear js-icon-clear">
9-
<a><i class="fas fa-times"></i></a>
9+
<button type="button" title="清除搜索框"><i class="fas fa-times"></i></button>
1010
</div>
1111
</div>
12-
<button class="button button--theme-dark button--pill search__cancel js-search-toggle">
13-
{{ _locale_cancel }}</button>
12+
<button class="button button--theme-dark button--pill search__cancel js-search-toggle" type="button">{{ _locale_cancel }}</button>
1413
</div>
1514
<div class="search-result js-search-result"></div>
1615
</div>

_layouts/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{{ site.sidebar.busuanzi.site_uv.alert }}
7878
<span id="busuanzi_value_site_uv"></span>{{ site.sidebar.busuanzi.site_uv.unit }}
7979
</div>
80-
<script src="{{ site.sidebar.busuanzi.src }}"></script>
80+
<script src="{{ site.sidebar.busuanzi.src }}" defer async></script>
8181
{% endif %}
8282
{% if site.sidebar.last_edit.enable %}
8383
<div>

_posts/2023-07-02-开始使用Bootstrap.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ last_modified_at: 2023-7-2
2222
</div>
2323

2424
<div class="alert alert-primary d-flex align-items-center" role="alert" markdown='1'>
25-
<i class="fas fa-info"></i> An example notice alert with an icon
25+
<i class="fa-fw fas fa-info"></i> An example notice alert with an icon
2626
</div>
2727
<div class="alert alert-primary d-flex align-items-center" role="alert" markdown='1'>
28-
<i class="fas fa-question"></i> An example notice question with an icon
28+
<i class="fa-fw fas fa-question"></i> An example notice question with an icon
2929
</div>
3030
<div class="alert alert-danger d-flex align-items-center" role="alert" markdown='1'>
31-
<i class="fas fa-exclamation"></i> An example danger alert with an icon
31+
<i class="fa-fw fas fa-exclamation"></i> An example danger alert with an icon
3232
</div>
3333
<div class="alert alert-warning d-flex align-items-center" role="alert" markdown='1'>
34-
<i class="fas fa-times"></i> An example error alert with an icon
34+
<i class="fa-fw fas fa-times"></i> An example error alert with an icon
3535
</div>
3636

3737
```html
3838
<div class="alert alert-success" role="alert" markdown='1'>
39-
<h3 class="alert-heading"><i class="fas fa-check"></i> Well done!</h3>
39+
<h3 class="alert-heading"><i class="fa-fw fas fa-check"></i> Well done!</h3>
4040

4141
*Great!* Here comes [a link](#).
4242

0 commit comments

Comments
 (0)