-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (128 loc) · 14.3 KB
/
index.html
File metadata and controls
160 lines (128 loc) · 14.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html><html class="appearance-auto" lang="en"><head><meta charset="UTF-8"><title>欲's blog</title><meta name="description" content="空山不见人,但闻人语响。返景入深林,复照青苔上"><meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, initial-scale=1"><!-- Google Analytics --><!-- End Google Analytics -->
<!-- Baidu Analytics --><!-- End Baidu Analytics --><link rel="icon" href="./images/favicon.ico"><link rel="stylesheet" href="./style/common/bulma.css"><link rel="stylesheet" href="./style/base.css"><link rel="stylesheet" href="./style/common/helper.css"><script src="./js/common.js"></script><link rel="stylesheet" href="./style/widget-post-list.css"><meta name="generator" content="Hexo 6.3.0"></head><body class="is-flex is-flex-direction-column"><header class="header-widget is-flex-shrink-0 is-hidden-mobile"><div class="container is-fullhd is-flex is-justify-content-space-between is-align-items-center is-full-height"><section class="is-hidden-mobile is-flex-shrink-0"><h2><a href="/">欲's blog</a></h2></section><h3 class="is-hidden-mobile is-family-serif is-full-height is-flex is-align-items-center is-flex-shrink-0"></h3><aside class="is-flex-shrink-0"><h3 class="is-inline-block"><a href="/">Home</a></h3><h3 class="is-inline-block"><a target="_blank" rel="noopener" href="https://space.bilibili.com/674804368?spm_id_from=333.1007.0.0">about me</a></h3><h3 class="is-inline-block"><a href="/archives">Archives</a></h3></aside></div></header><header class="is-flex header-widget is-flex-shrink-0 is-align-items-center is-justify-content-center is-hidden-tablet"><h3 class="is-inline-block"><a href="/">Home</a></h3><h3 class="is-inline-block"><a target="_blank" rel="noopener" href="https://space.bilibili.com/674804368?spm_id_from=333.1007.0.0">about me</a></h3><h3 class="is-inline-block"><a href="/archives">Archives</a></h3></header><main><article class="post-container is-flex is-justify-content-center section container is-max-widescreen pt-4 px-2"><div class="columns is-variable is-1-tablet is-3-desktop-only is-2-widescreen is-full-width"><section class="column"><article class="post-item-card"><header class="is-relative is-flex"><div class="post-cover-backdrop is-hidden"><img src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw" alt="loading.."></div><a class="post-cover-link has-text-centered skeleton" href="/2023/10/08/%E5%AD%A6%E4%BC%9Amd%E8%AF%AD%E6%B3%95/"><img class="post-cover-img js-img-fadeIn" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw" alt="loading.." data-backdrop="true"></a></header><section class="content post-card-content p-4 pb-5"><time class="has-text-grey" datetime="2023-10-08T02:39:26.753Z">2023-10-08</time><p class="is-flex-grow-2 mt-2">@TOC
欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。
新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:
全新的界面设计 ,将会带来全新的写作体验;
在创作中心设置你喜爱的代码高亮样式,Markdown 将代码片显示选择的高亮样式 进行展示;
增加了 图片拖拽 功能,你可以将本地的图片直接拖拽到编辑区域直接展示;
全新的 KaTeX数学公式 语法;
增加了支持甘特图的mermaid语法^1 功能;
增加了 多屏幕编辑 Markdown文章功能;
增加..</p><a class="button is-default mt-2 has-text-weight-semibold" href="/2023/10/08/%E5%AD%A6%E4%BC%9Amd%E8%AF%AD%E6%B3%95/">Read more</a></section></article><article class="post-item-card"><section class="content post-card-content p-4 pb-5"><h2 class="mt-4 mb-0 is-family-serif"><a href="/2023/10/08/hello-world/">Hello World</a></h2><time class="has-text-grey" datetime="2023-10-07T16:07:13.937Z">2023-10-08</time><p class="is-flex-grow-2 mt-2">Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new &quot;My New Post&quot;
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo genera..</p><a class="button is-default mt-2 has-text-weight-semibold" href="/2023/10/08/hello-world/">Read more</a></section></article></section><aside class="column is-hidden-mobile is-4-tablet is-3-widescreen"><style>.search-widget .search-input {
border: none;
outline: none;
background: transparent;
color: var(--second-text-color);
}
.search-widget .search-content {
position: absolute;
left: 0;
top: calc(100% - 3px);
z-index: 2;
width: 100%;
height: 0;
max-height: 550px;
overflow: auto;
box-sizing: border-box;
background: var(--top-bar-bg-color);
backdrop-filter: blur(var(--backdropFilter));
-webkit-backdrop-filter: blur(var(--backdropFilter));
border-bottom-left-radius: var(--borderRadius);
border-bottom-right-radius: var(--borderRadius);
box-shadow: 0 12px 15px rgba(0, 0, 0, 0.08);
}
.search-widget .search-content a:hover h5 {
color: #3273dc!important;
}
</style><main class="aside-card-container search-widget is-relative"><label for="searchInput"><div class="is-flex px-4" id="searchButton"><i class="iconfont icon--search1 mr-1"></i><input class="search-input is-flex-grow-1" id="searchInput" placeholder="Search everything.."></div></label><section class="search-content content" id="searchContent"></section></main><script>var searchDatabase = []
var searchInputEl = document.getElementById('searchInput')
var searchButtonEl = document.getElementById('searchButton')
var searchResultEl = document.getElementById('searchContent')
searchInputEl.oninput = function (evt) {
var searchValue = evt.srcElement.value
var haveSearchValue = Boolean(searchValue.trim())
if (!haveSearchValue) {
searchResultEl.style.height = 0
searchResultEl.innerHTML = null
return
}
var searchResults = searching(searchValue)
if (searchResults.length > 0) {
renderSearchResults(searchResults)
}
}
function renderSearchResults(results) {
searchResultEl.innerHTML = null
var fragment = document.createDocumentFragment()
results.forEach(function (item) {
var link = document.createElement('a')
var title = document.createElement('h5')
var content = document.createElement('p')
title.className = 'mb-1'
title.innerText = item.title
content.innerText = item.content
link.href = item.link
link.appendChild(title)
link.appendChild(content)
link.className = 'p-4 is-block'
fragment.appendChild(link)
})
searchResultEl.appendChild(fragment)
searchResultEl.style.height = 'auto'
}
function searching(inputText) {
var inputTexts = inputText.split(' ')
var searchResults = []
inputTexts.forEach(function (searchKey) {
var haveSearchValue = Boolean(searchKey.trim())
if (!haveSearchValue) return
var key = searchKey.toLowerCase()
for (var entry of searchDatabase) {
var title = entry.getElementsByTagName('title')[0].textContent
var link = entry.getElementsByTagName('link')[0].getAttribute('href')
var contentWithTags = entry.getElementsByTagName('content')[0].textContent
var rawContent = contentWithTags.trim().replace(/<[^>]+>/g, '').toLowerCase()
var LENGTH = 80
var finalContent = ''
var contentLength = rawContent.length
var searchResultIdx = rawContent.indexOf(key)
var startIdx = searchResultIdx - 20,
endIdx = startIdx + LENGTH
if (startIdx < 0) {
startIdx = 0
endIdx = 100
}
endIdx > contentLength && (endIdx = contentLength)
finalContent = rawContent.substring(startIdx, endIdx)
if (title.indexOf(key) > -1 || searchResultIdx > -1) {
searchResults.push({
link: link,
title: title,
content: finalContent
})
}
}
})
return searchResults
}
searchButtonEl.onclick = function () {
if (searchDatabase.length > 0) return;
fetch(window.location.href + '/search.xml').then(res => res.text()).then(res => {
var domparser = new DOMParser
var doc = domparser.parseFromString(res, 'application/xml')
searchDatabase = doc.getElementsByTagName('search')[0].children
})
}</script><main class="aside-card-container profile-widget"><!-- todo: 使用取色工具动态阴影--><section class="is-flex is-flex-direction-column is-justify-content-center is-align-items-center"><section class="is-flex is-justify-content-center avatar is-clipped skeleton"><!-- debug images "https://api.ixiaowai.cn/gqapi/gqapi.php"--><img class="js-img-fadeIn" src="./images/avatar.png" alt="user avatar"></section><h3 class="user-name">欲</h3><blockquote class="has-text-centered is-relative"><span style="margin-bottom: 5px;">空山不见人,但闻人语响。返景入深林,复照青苔上</span></blockquote><address class="has-text-centered has-text-grey"><i class="iconfont icon-location" style="margin-right: 5px;"></i><span class="has-text-grey">In the dust</span></address></section><section class="sns-container is-flex is-justify-content-center is-align-items-center"><a title="twitter" target="_blank" rel="noopener nofollow" href="//twitter.com//"><i class="iconfont icon-twitter"></i></a><!-- Github--><a title="github" target="_blank" rel="noopener nofollow" href="//github.com/欲"><i class="iconfont icon-github"></i></a><!-- Ins--><a title="instagram" target="_blank" rel="noopener nofollow" href="//www.instagram.com//"><i class="iconfont icon-ins"></i></a><!-- RSS--><!-- 知乎--><!-- 领英--><!-- 脸书--><a title="facebook" target="_blank" rel="noopener nofollow" href="//www.facebook.com//"><i class="iconfont icon-tian7_facebook"></i></a></section></main><main class="aside-card-container recent-widget"><h3>Recent</h3><ul><li class="is-flex"><!-- change to element replace image placeholder--><img class="js-img-fadeIn" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw" alt="cover"><!--else--><!-- div.post-img-placeholder--><section class="is-flex-grow-2"><p class="has-text-weight-semibold" style="line-height: 20px; font-size: 14px"><a href="/2023/10/08/%E5%AD%A6%E4%BC%9Amd%E8%AF%AD%E6%B3%95/">Title</a></p><time class="has-text-weight-semibold has-text-grey" datetime="2023-10-08T02:39:26.753Z">2023-10-08</time></section></li><li class="is-flex"><!-- change to element replace image placeholder--><img class="js-img-fadeIn" src="https://ui-avatars.com/api/?background=f5f5f5&name=He" alt="cover"><!--else--><!-- div.post-img-placeholder--><section class="is-flex-grow-2"><p class="has-text-weight-semibold" style="line-height: 20px; font-size: 14px"><a href="/2023/10/08/hello-world/">Hello World</a></p><time class="has-text-weight-semibold has-text-grey" datetime="2023-10-07T16:07:13.937Z">2023-10-08</time></section></li></ul></main><main class="aside-card-container archives-widget"><h3>Archives</h3><section><ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/10/">October 2023</a><span class="archive-list-count">2</span></li></ul></section></main><main class="aside-card-container friend-widget"><h3>Friends</h3><section><a target="_blank" rel="noopener" href="https://space.bilibili.com/674804368?spm_id_from=333.1007.0.0"><span class="tag post-item-tag" style="margin-bottom: 5px;">bilibili</span></a><a target="_blank" rel="noopener" href="https://gitee.com/desire-to-meet"><span class="tag post-item-tag" style="margin-bottom: 5px;">Gitee</span></a><a target="_blank" rel="noopener" href="https://blog.csdn.net/emmmmmmmmmemmmmm?spm=1000.2115.3001.5343"><span class="tag post-item-tag" style="margin-bottom: 5px;">CSDN</span></a><a target="_blank" rel="noopener" href="https://github.com/dashboard"><span class="tag post-item-tag" style="margin-bottom: 5px;">Github</span></a></section></main></aside></div></article><script>$claudia.fadeInImage(null, $claudia.blurBackdropImg)
window.addEventListener('resize', $claudia.throttle(function () {
var images = document.querySelectorAll('.js-img-fadeIn')
images.forEach($claudia.blurBackdropImg)
}, 150))</script></main><footer class="is-flex is-flex-direction-column is-align-items-center is-flex-shrink-0 is-family-serif"><section class="sns-container"><a title="twitter" target="_blank" rel="noopener nofollow" href="//twitter.com//"><i class="iconfont icon-twitter"></i></a><!-- Github--><a title="github" target="_blank" rel="noopener nofollow" href="//github.com/欲"><i class="iconfont icon-github"></i></a><!-- Ins--><a title="instagram" target="_blank" rel="noopener nofollow" href="//www.instagram.com//"><i class="iconfont icon-ins"></i></a><!-- RSS--><!-- 知乎--><!-- 领英--><!-- 脸书--><a title="facebook" target="_blank" rel="noopener nofollow" href="//www.facebook.com//"><i class="iconfont icon-tian7_facebook"></i></a></section><p><span>Copyright ©</span><span> 欲 2023</span></p><div class="is-flex is-justify-content-center is-flex-wrap-wrap"><p>Powered by Hexo | </p><p class="is-flex is-justify-content-center"><a title="Hexo theme author" target="_blank" rel="noopener" href="//github.com/haojen">Theme by Haojen </a></p><div style="margin-top: 2px"><a class="github-button" title="github-button" target="_blank" rel="noopener" href="https://github.com/haojen/hexo-theme-Claudia" data-color-scheme="no-preference: light; light: light; dark: dark;" data-show-count="true"></a></div></div><div><span></span></div></footer><script async defer src="https://buttons.github.io/buttons.js"></script><script>$claudia.fadeInImage(null, $claudia.blurBackdropImg)
window.addEventListener('resize', $claudia.throttle(function () {
var images = document.querySelectorAll('.js-img-fadeIn')
images.forEach($claudia.blurBackdropImg)
}, 150))</script></body></html>