Skip to content

Commit

Permalink
Site updated: 2023-11-15 01:42:07
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengzna committed Nov 14, 2023
1 parent 1e04a0c commit e099a98
Show file tree
Hide file tree
Showing 118 changed files with 37,494 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pengzna.top
338 changes: 338 additions & 0 deletions about/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
<!DOCTYPE html>
<html lang="en">

<head>
<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="Pengzna,blog" />
<meta name="author" content="Pengzna" />
<meta name="description" content="Pengzna 的博客" />


<title>

关于



</title>


<link rel="apple-touch-icon" href="/images/favicon.png">
<link rel="icon" href="/images/favicon.png">


<!-- Raleway-Font -->
<link href="https://fonts.googleapis.com/css?family=Montserrat|Roboto:400,400italic,600|Roboto+Mono" rel="stylesheet">

<!-- hexo site css -->

<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/iconfont/iconfont.css">






<!-- jquery3.3.1 -->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

<!-- fancybox -->
<link href="https://cdn.bootcss.com/fancybox/3.5.2/jquery.fancybox.min.css" rel="stylesheet">
<script async src="https://cdn.bootcss.com/fancybox/3.5.2/jquery.fancybox.min.js"></script>

<script src="/js/fancybox.js"></script>


<meta name="generator" content="Hexo 7.0.0"><!-- hexo-inject:begin --><!-- hexo-inject:end --></head>


<body>
<!-- hexo-inject:begin --><!-- hexo-inject:end --><div id="app">
<div class="header">
<a href="/">Pengzna's blog</a>
</div>


<p class="links">

<a title="archives" target="" href="/archives/">
<i class="iconfont icon-bookmark"></i>
</a>

<a title="github" target="_blank" href="https://github.com/Pengzna">
<i class="iconfont icon-github"></i>
</a>

<a title="email" target="" href="">
<i class="iconfont icon-envelope"></i>
</a>

<a title="linkedin" target="_blank" href="https://www.linkedin.com/in/pengzna/">
<i class="iconfont icon-linkedin"></i>
</a>

<a title="wechat" target="_blank" href="https://peng-img.oss-cn-shanghai.aliyuncs.com/markdown-img/image-20231115013033249.png">
<i class="iconfont icon-wechat"></i>
</a>

</p>


<div class="main">
<!-- 文章详情页,展示文章具体内容,url形式:https://yoursite/文章标题/ -->
<!-- 同时为「标签tag」,「朋友friend」,「分类categories」,「关于about」页面的承载页面,具体展示取决于page.type -->

<!-- LaTex Display -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
</script>

<div class="post">
<h3 class="date">
Nov 15, 2023
</h3>
<h1>
关于
</h1>
<div class="content markdown-body">
<p>Hi, 我叫 Pengzna,目前是南京大学软件学院大四学生&#x2F;清华大学软件学院 Apache IoTDB 组研0学生</p>

</div>




</div>
<div class="footer">

<div class="footer-more">

<a target="_blank" rel="noopener" href="https://github.com/Pengzna">Copyright © Pengzna 2021-present</a>

</div>

</div>

</div>

<div class="back-to-top hidden">
<a href="javascript: void(0)">
<i class="iconfont icon-chevronup"></i>
</a>
</div>


<script src="/js/backtotop.js"></script>




<div class="search-icon" id="search-icon">
<a href="javascript: void(0)">
<i class="iconfont icon-search"></i>
</a>
</div>

<div class="search-overlay hidden">
<div class="search-content" tabindex="0">
<div class="search-box">
<div class="search-title">
<!-- <span class="search-icon-input">
<a href="javascript: void(0)">
<i class="iconfont icon-search"></i>
</a>
</span> -->

<input type="text" class="search-input" id="search-input" placeholder="搜索">

<span class="search-close-icon" id="search-close-icon">
<a href="javascript: void(0)">
<i class="iconfont icon-close"></i>
</a>
</span>
</div>
<div class="search-result" id="search-result"></div>
</div>
</div>
</div>

<script type="text/javascript">
var inputArea = document.querySelector("#search-input")
var searchOverlayArea = document.querySelector(".search-overlay")

// inputArea.onclick = function() {
// getSearchFile()
// this.onclick = null
// }

inputArea.onkeydown = function() {
if(event.keyCode == 13)
return false
}

function openOrHideSearchContent() {
let isHidden = searchOverlayArea.classList.contains('hidden')
if (isHidden) {
searchOverlayArea.classList.remove('hidden')
document.body.classList.add('hidden')
inputArea.focus()
getSearchFile()
} else {
searchOverlayArea.classList.add('hidden')
document.body.classList.remove('hidden')
}
}

function blurSearchContent(e) {
if (e.target === searchOverlayArea) {
openOrHideSearchContent()
}
}

document.querySelector("#search-icon").addEventListener("click", openOrHideSearchContent, false)
document.querySelector("#search-close-icon").addEventListener("click", openOrHideSearchContent, false)
searchOverlayArea.addEventListener("click", blurSearchContent, false)

var searchFunc = function (path, search_id, content_id) {
'use strict';
var $input = document.getElementById(search_id);
var $resultContent = document.getElementById(content_id);
$resultContent.innerHTML = "<ul><span class='local-search-empty'><span></ul>";
// $resultContent.innerHTML = "<ul><span class='local-search-empty'>First search, index file loading, please wait...<span></ul>";
$.ajax({
// 0x01. load xml file
url: path,
dataType: "xml",
success: function (xmlResponse) {
// 0x02. parse xml file
var datas = $("entry", xmlResponse).map(function () {
return {
title: $("title", this).text(),
content: $("content", this).text(),
url: $("url", this).text()
};
}).get();
$resultContent.innerHTML = "";

$input.addEventListener('input', function () {
// 0x03. parse query to keywords list
var str = '<ul class=\"search-result-list\">';
var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
$resultContent.innerHTML = "";
if (this.value.trim().length <= 0) {
return;
}
// 0x04. perform local searching
datas.forEach(function (data) {
var isMatch = true;
var content_index = [];
if (!data.title || data.title.trim() === '') {
data.title = "Untitled";
}
var orig_data_title = data.title.trim();
var data_title = orig_data_title.toLowerCase();
var orig_data_content = data.content.trim().replace(/<[^>]+>/g, "");
var data_content = orig_data_content.toLowerCase();
var data_url = data.url;
var index_title = -1;
var index_content = -1;
var first_occur = -1;
// only match artiles with not empty contents
if (data_content !== '') {
keywords.forEach(function (keyword, i) {
index_title = data_title.indexOf(keyword);
index_content = data_content.indexOf(keyword);

if (index_title < 0 && index_content < 0) {
isMatch = false;
} else {
if (index_content < 0) {
index_content = 0;
}
if (i == 0) {
first_occur = index_content;
}
// content_index.push({index_content:index_content, keyword_len:keyword_len});
}
});
} else {
isMatch = false;
}
// 0x05. show search results
if (isMatch) {
str += "<li><a href='" + data_url + "' class='search-result-title'><h2>" + orig_data_title + "</h2></a>";
var content = orig_data_content;
if (first_occur >= 0) {
// cut out 100 characters
var start = first_occur - 20;
var end = first_occur + 80;

if (start < 0) {
start = 0;
}

if (start == 0) {
end = 100;
}

if (end > content.length) {
end = content.length;
}

var match_content = content.substr(start, end);

// highlight all keywords
keywords.forEach(function (keyword) {
var regS = new RegExp(keyword, "gi");
match_content = match_content.replace(regS, "<span class=\"search-keyword\">" + keyword + "</span>");
});

str += "<h3 class=\"search-result-abstract\">" + match_content + "...</h3>"
}
str += "<hr></li>";
}
});
str += "</ul>";
if (str.indexOf('<li>') === -1) {
return $resultContent.innerHTML = "<ul><span class='local-search-empty'>No result<span></ul>";
}
$resultContent.innerHTML = str;
});
},
error: function(xhr, status, error) {
$resultContent.innerHTML = ""
if (xhr.status === 404) {
$resultContent.innerHTML = "<ul><span class='local-search-empty'>The search.xml file was not found, please refer to:<a href='https://github.com/leedom92/hexo-theme-leedom#configuration' target='_black'>configuration</a><span></ul>";
} else {
$resultContent.innerHTML = "<ul><span class='local-search-empty'>The request failed, Try to refresh the page or try again later.<span></ul>";
}
}
});
$(document).on('click', '#search-close-icon', function() {
$('#search-input').val('');
$('#search-result').html('');
});
}

var getSearchFile = function() {
var path = "/search.xml";
searchFunc(path, 'search-input', 'search-result');
}
</script>




</div><!-- hexo-inject:begin --><!-- hexo-inject:end -->
</body>
</html>
Loading

0 comments on commit e099a98

Please sign in to comment.