Skip to content

Commit

Permalink
使用自动配置和代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Aug 9, 2020
1 parent aee6708 commit 51b9838
Show file tree
Hide file tree
Showing 94 changed files with 1,784 additions and 1,396 deletions.
14 changes: 14 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ publishDir = "docs"

[params]
description = "Personal website of Shixiang Wang; 王诗翔的个人网站"
enableGitalk = true
#disqusURL = "https://shixiangwang.github.io/home/"
customJS = ["js/fix-toc.js", "js/center-img.js", "js/right-quote.js", "js/no-highlight.js", "js/fix-footnote.js", "js/math-code.js", "js/external-link.js", "js/alt-title.js", "js/header-link.js"]
githubContentURL = "https://github.com/ShixiangWang/home/edit/master/content/"
Expand All @@ -151,6 +152,19 @@ publishDir = "docs"
highlightjsTheme = "Xcode"
dateFormat = "2006-01-02" # "2006-01-02, Mon, "

[params.gitalk]
clientID = "eed477936be7b88a8455" # Your client ID
clientSecret = "32b5dde22f3c95c4fad400a31632e34221b07e83" # Your client secret
repo = "home" # The repo to store comments
owner = "ShixiangWang" # Your GitHub ID
admin= "ShixiangWang" # Required. Github repository owner and collaborators. (Users who having write access to this repository)
id= "location.pathname" # The unique id of the page.
labels= "gitalk" # Github issue labels. If you used to use Gitment, you can change it
perPage= 15 # Pagination size, with maximum 100.
pagerDirection= "last" # Comment sorting direction, available values are 'last' and 'first'.
createIssueManually= false # If it is 'false', it is auto to make a Github issue when the administrators login.
distractionFreeMode= false # Enable hot key (cmd|ctrl + enter) submit comment.

[params.footer]
home = "Powered by [Hugo](https://gohugo.io) and [Blogdown](https://bookdown.org/yihui/blogdown/) © [Shixiang Wang](/) 2017 - 2020"
en = "[<i class='far fa-envelope fa-1x'></i>](mailto:[email protected]) &middot; [<i class='fab fa-github fa-1x'></i>](https://github.com/ShixiangWang) &middot; [<i class='fab fa-stack-overflow fa-1x'></i>](https://stackoverflow.com/users/7662327/shixiang-wang) &middot; [<i class='ai ai-google-scholar ai-1x'></i>](https://scholar.google.com/citations?user=FvNp0NkAAAAJ&hl=en) &middot; [<i class='ai ai-orcid ai-1x'></i>](https://orcid.org/0000-0001-9855-7357) &middot; [<i class='ai ai-researchgate ai-1x'></i>](https://www.researchgate.net/profile/Wang_Shixiang4) <br> Powered by [Hugo](https://gohugo.io) and [Blogdown](https://bookdown.org/yihui/blogdown/) &copy; [Shixiang Wang](/) 2017 - 2020"
Expand Down
34 changes: 19 additions & 15 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,26 @@ <h1>404 Page not found</h1>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-08-11-basic-shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,22 +521,26 @@ <h3 id="退出脚本">退出脚本</h3>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-08-11-structural-command-of-shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1041,22 +1041,26 @@ <h3 id="实例">实例</h3>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-08-19-working-with-user-input/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -940,22 +940,26 @@ <h3 id="超时">超时</h3>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-08-22-shell-show-data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -475,22 +475,26 @@ <h2 id="实例">实例</h2>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-09-03-linux-data-analysis-tools/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -747,22 +747,26 @@ <h3 id="命令管道及进程替换">命令管道及进程替换</h3>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-09-04-control_shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -764,22 +764,26 @@ <h4 id="anacron程序">anacron程序</h4>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
34 changes: 19 additions & 15 deletions docs/cn/post/2017-10-09-microarray-data-analysis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -892,22 +892,26 @@ <h2>总结</h2>




<br>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'ShixiangWang.github.io',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: 'gitalk',
distractionFreeMode: false
})
gitalk.render('gitalk-container')
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'eed477936be7b88a8455',
clientSecret: '32b5dde22f3c95c4fad400a31632e34221b07e83',
repo: 'home',
owner: 'ShixiangWang',
admin: ['ShixiangWang'],
id: location.pathname,
distractionFreeMode: false
});
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
return;
}
gitalk.render('gitalk-container');
})();
</script>


Expand Down
Loading

0 comments on commit 51b9838

Please sign in to comment.