-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
8,266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,310 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
|
||
<meta name="author" content="Renjie Deng"> | ||
|
||
|
||
<meta name="subtitle" content="Notes on Technology learning"> | ||
|
||
|
||
|
||
|
||
<title>Hello World | DRJ's Blog - 技术学习笔记</title> | ||
|
||
|
||
|
||
<link rel="icon" href="/favicon.ico"> | ||
|
||
|
||
|
||
|
||
<!-- stylesheets list from _config.yml --> | ||
|
||
<link rel="stylesheet" href="/css/style.css"> | ||
|
||
|
||
|
||
|
||
<!-- scripts list from _config.yml --> | ||
|
||
<script src="/js/script.js"></script> | ||
|
||
<script src="/js/jquery.min.js"></script> | ||
|
||
<script src="/js/tocbot.min.js"></script> | ||
|
||
<script src="/js/totop.js"></script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous"> | ||
<meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="DRJ's Blog - 技术学习笔记" type="application/atom+xml"> | ||
</head> | ||
|
||
<body> | ||
<script> | ||
// this function is used to check current theme before page loaded. | ||
(() => { | ||
const currentTheme = window.localStorage && window.localStorage.getItem('theme') || ''; | ||
const isDark = currentTheme === 'dark'; | ||
const pagebody = document.getElementsByTagName('body')[0] | ||
if (isDark) { | ||
pagebody.classList.add('dark-theme'); | ||
// mobile | ||
document.getElementById("mobile-toggle-theme").innerText = "· Dark" | ||
} else { | ||
pagebody.classList.remove('dark-theme'); | ||
// mobile | ||
document.getElementById("mobile-toggle-theme").innerText = "· Light" | ||
} | ||
})(); | ||
</script> | ||
|
||
<div class="wrapper"> | ||
<header> | ||
<nav class="navbar"> | ||
<div class="container"> | ||
<div class="navbar-header header-logo"><a href="/">DRJ's Blog</a></div> | ||
<div class="menu navbar-right"> | ||
|
||
<a class="menu-item" href="/archives">Posts</a> | ||
|
||
<a class="menu-item" href="/projects">Projects</a> | ||
|
||
<a class="menu-item" href="/friends">Friends</a> | ||
|
||
<a class="menu-item" href="/about">About</a> | ||
|
||
<input id="switch_default" type="checkbox" class="switch_default"> | ||
<label for="switch_default" class="toggleBtn"></label> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
|
||
<nav class="navbar-mobile" id="nav-mobile"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<div> | ||
<a href="/">DRJ's Blog</a><a id="mobile-toggle-theme">· Light</a> | ||
</div> | ||
<div class="menu-toggle" onclick="mobileBtn()">☰ Menu</div> | ||
</div> | ||
<div class="menu" id="mobile-menu"> | ||
|
||
<a class="menu-item" href="/archives">Posts</a> | ||
|
||
<a class="menu-item" href="/projects">Projects</a> | ||
|
||
<a class="menu-item" href="/friends">Friends</a> | ||
|
||
<a class="menu-item" href="/about">About</a> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
</header> | ||
<script> | ||
var mobileBtn = function f() { | ||
var toggleMenu = document.getElementsByClassName("menu-toggle")[0]; | ||
var mobileMenu = document.getElementById("mobile-menu"); | ||
if(toggleMenu.classList.contains("active")){ | ||
toggleMenu.classList.remove("active") | ||
mobileMenu.classList.remove("active") | ||
}else{ | ||
toggleMenu.classList.add("active") | ||
mobileMenu.classList.add("active") | ||
} | ||
} | ||
</script> | ||
<div class="main"> | ||
<div class="container"> | ||
|
||
|
||
<div class="post-toc"> | ||
<div class="tocbot-list"> | ||
</div> | ||
<div class="tocbot-list-menu"> | ||
<a class="tocbot-toc-expand" onclick="expand_toc()">Expand all</a> | ||
<a onclick="go_top()">Back to top</a> | ||
<a onclick="go_bottom()">Go to bottom</a> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
var tocbot_timer; | ||
var DEPTH_MAX = 6; // 为 6 时展开所有 | ||
var tocbot_default_config = { | ||
tocSelector: '.tocbot-list', | ||
contentSelector: '.post-content', | ||
headingSelector: 'h1, h2, h3, h4, h5', | ||
orderedList: false, | ||
scrollSmooth: true, | ||
onClick: extend_click, | ||
}; | ||
|
||
function extend_click() { | ||
clearTimeout(tocbot_timer); | ||
tocbot_timer = setTimeout(function() { | ||
tocbot.refresh(obj_merge(tocbot_default_config, { | ||
hasInnerContainers: true | ||
})); | ||
}, 420); // 这个值是由 tocbot 源码里定义的 scrollSmoothDuration 得来的 | ||
} | ||
|
||
document.ready(function() { | ||
tocbot.init(obj_merge(tocbot_default_config, { | ||
collapseDepth: 1 | ||
})); | ||
}); | ||
|
||
function expand_toc() { | ||
var b = document.querySelector('.tocbot-toc-expand'); | ||
var expanded = b.getAttribute('data-expanded'); | ||
expanded ? b.removeAttribute('data-expanded') : b.setAttribute('data-expanded', true); | ||
tocbot.refresh(obj_merge(tocbot_default_config, { | ||
collapseDepth: expanded ? 1 : DEPTH_MAX | ||
})); | ||
b.innerText = expanded ? 'Expand all' : 'Collapse all'; | ||
} | ||
|
||
function go_top() { | ||
window.scrollTo(0, 0); | ||
} | ||
|
||
function go_bottom() { | ||
window.scrollTo(0, document.body.scrollHeight); | ||
} | ||
|
||
function obj_merge(target, source) { | ||
for (var item in source) { | ||
if (source.hasOwnProperty(item)) { | ||
target[item] = source[item]; | ||
} | ||
} | ||
return target; | ||
} | ||
</script> | ||
|
||
|
||
|
||
<article class="post-wrap"> | ||
<header class="post-header"> | ||
<h1 class="post-title">Hello World</h1> | ||
|
||
<div class="post-meta"> | ||
|
||
Author: <a itemprop="author" rel="author" href="/">Renjie Deng</a> | ||
|
||
|
||
|
||
<span class="post-time"> | ||
Date: <a href="#">April 2, 2021 20:56:20</a> | ||
</span> | ||
|
||
|
||
<span class="post-category"> | ||
Category: | ||
|
||
<a href="/categories/Deployment/">Deployment</a> | ||
|
||
</span> | ||
|
||
</div> | ||
|
||
</header> | ||
|
||
<div class="post-content"> | ||
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p> | ||
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure> | ||
|
||
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p> | ||
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure> | ||
|
||
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p> | ||
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure> | ||
|
||
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p> | ||
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure> | ||
|
||
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p> | ||
|
||
</div> | ||
|
||
|
||
<section class="post-copyright"> | ||
|
||
<p class="copyright-item"> | ||
<span>Author:</span> | ||
<span>Renjie Deng</span> | ||
</p> | ||
|
||
|
||
<p class="copyright-item"> | ||
<span>Permalink:</span> | ||
<span><a href="https://www.drjchn.com/2021/04/02/hello-world/">https://www.drjchn.com/2021/04/02/hello-world/</a></span> | ||
</p> | ||
|
||
|
||
|
||
<p class="copyright-item"> | ||
<span>Slogan:</span> | ||
<span>劳逸结合是不错,但也别放松过头</span> | ||
</p> | ||
|
||
|
||
</section> | ||
|
||
<section class="post-tags"> | ||
<div> | ||
<span>Tag(s):</span> | ||
<span class="tag"> | ||
|
||
|
||
<a href="/tags/hexo/">#hexo</a> <span>/</span> | ||
|
||
|
||
</span> | ||
</div> | ||
<div> | ||
<a href="javascript:window.history.back();"><i class="fas fa-arrow-left"></i></a> | ||
<span>· </span> | ||
<a href="/"><i class="fas fa-home"></i></a> | ||
</div> | ||
</section> | ||
<section class="post-nav"> | ||
|
||
<a class="prev" rel="prev" href="/2021/04/04/using-circleci/">使用Travis-CI或Circle-CI构建C++项目</a> | ||
|
||
|
||
</section> | ||
|
||
|
||
</article> | ||
</div> | ||
|
||
</div> | ||
<footer id="footer" class="footer"> | ||
<div class="copyright"> | ||
<span>© 2024 Renjie Deng. All rights reserved. | <a href="http://beian.miit.gov.cn" target="_blank">粤ICP备17050016号-2</a></span> | ||
</div> | ||
</footer> | ||
|
||
</div> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.